How to provide secrets with authConfig
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- java, kubernetes
- Lĩnh vực
- authentication, infrastructure
Hướng nghiên cứu
Start by tracing the Function spec entries for pulsar.authConfig, authSecret, and secretsMap, using the supplied Kubernetes YAML as the reproduction. Compare how genericAuth and the secret-backed environment variables are handled for the Java function; done means clientAuthenticationParameters and clientAuthenticationPlugin remain secret-backed while authentication succeeds.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hi,
I'm trying to use authentication for a java function with the common use of Secrets to store the JWT token needed to access pulsar.
authSecret works
As I understand, the authSecret is legacy.
apiVersion: compute.functionmesh.io/v1alpha1
kind: Function
metadata:
name: test
namespace: test
spec:
className: com.test.Test
image: streamnative/pulsar-functions-java-runner:2.11.2.9
forwardSourceMessageProperty: true
maxPendingAsyncRequests: 1000
replicas: 1
maxReplicas: 3
#logTopic: persistent://test/functions.log
input:
topics:
- persistent://test/test
resources:
requests:
cpu: "100m"
memory: "1G"
limits:
cpu: "2"
memory: "2G"
pulsar:
pulsarConfig: "pulsar-config"
authSecret: "pulsar-auth"
---
apiVersion: v1
kind: ConfigMap
metadata:
namespace: test
name: pulsar-config
data:
webServiceURL: https://test:8443
brokerServiceURL: pulsar+ssl://test:6651
---
apiVersion: v1
data:
clientAuthenticationParameters: XXX # org.apache.pulsar.client.impl.auth.AuthenticationToken
clientAuthenticationPlugin: XXX # "token:eyJ..."
kind: Secret
type: Opaque
authConfig doesn't work
either combination of the approaches:
as environment variables
pulsar:
pulsarConfig: "pulsar-config"
secretsMap:
"clientAuthenticationParameters":
path: "pulsar-auth"
key: "clientAuthenticationParameters"
"clientAuthenticationPlugin":
path: "pulsar-auth"
key: "clientAuthenticationPlugin"
authConfig
pulsar:
pulsarConfig: "pulsar-config"
authConfig:
genericAuth: "pulsar-auth"
apiVersion: compute.functionmesh.io/v1alpha1
kind: Function
metadata:
name: test
namespace: test
spec:
className: com.test.Test
image: streamnative/pulsar-functions-java-runner:2.11.2.9
forwardSourceMessageProperty: true
maxPendingAsyncRequests: 1000
replicas: 1
maxReplicas: 3
#logTopic: persistent://test/functions.log
input:
topics:
- persistent://test/test
resources:
requests:
cpu: "100m"
memory: "1G"
limits:
cpu: "2"
memory: "2G"
pulsar:
pulsarConfig: "pulsar-config"
secretsMap:
"clientAuthenticationParameters":
path: "pulsar-auth"
key: "clientAuthenticationParameters"
"clientAuthenticationPlugin":
path: "pulsar-auth"
key: "clientAuthenticationPlugin"
---
apiVersion: v1
kind: ConfigMap
metadata:
namespace: test
name: pulsar-config
data:
webServiceURL: https://test:8443
brokerServiceURL: pulsar+ssl://test:6651
---
apiVersion: v1
data:
clientAuthenticationParameters: XXX # org.apache.pulsar.client.impl.auth.AuthenticationToken
clientAuthenticationPlugin: XXX # "token:eyJ..."
kind: Secret
type: Opaque
I don't want to put the Auth Token into a configmap. How is the correct approach for supplying clientAuthenticationParameters as environment variable from a secret in combination with "authConfig"?
- Ngôn ngữ chính
- Go
- Star
- 228
- Fork
- 30
- Merge trung bình
- 2 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 2
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của streamnative/function-mesh
-
streamnative/function-mesh#811 · 1 người được giao ·
-
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 45/100
streamnative/function-mesh#806 ·
-
streamnative/function-mesh#801 · 1 người được giao ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
streamnative/function-mesh#796 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
streamnative/function-mesh#769 ·
Tất cả issue của streamnative/function-mesh
Issue tương tự
-
kind/bug needs-triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
matrixorigin/matrixone#29223 ·
-
needs-acceptance wg/data-plane-networking
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
vllm-project/semantic-router#4024 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
alexgorbatchev/dotfiles#107 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100