Simplify Workload Identity configuration
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
- 62/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- azure, go
- Lĩnh vực
- authentication, cloud
Hướng nghiên cứu
Bắt đầu với việc xử lý thông tin xác thực của Workload Identity và ví dụ trong example/secrets/azure-workload-identity-creds.yaml. Kiểm tra cách hàm hiện lấy federatedTokenFile và cách DeploymentRuntimeConfig được sử dụng. Hoàn thành khi giá trị được phân giải từ AZURE_FEDERATED_TOKEN_FILE và có thể loại bỏ cấu hình không cần thiết mà không làm hỏng thiết lập ví dụ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What problem are you facing?
The current Workload Identity configuration requires a few unnecessary configurations.
Specifying the federatedTokenFile value in the azure-workload-identity-creds.yaml is unnecessary as this value can be retrieved using the AZURE_FEDERATED_TOKEN_FILE env var which is automatically injected into Pods when we enable Workload Identity.
Example Pod:
apiVersion: v1
kind: Pod
metadata:
labels:
azure.workload.identity/use: "true"
spec:
containers:
- env:
- name: AZURE_FEDERATED_TOKEN_FILE
value: /var/run/secrets/azure/tokens/azure-identity-token
Specifying the volume details in the DeploymentRuntimeConfig is also unnecessary as this automatically injected into Pods when we enable Workload Identity. The following config should be sufficient.
apiVersion: pkg.crossplane.io/v1beta1
kind: DeploymentRuntimeConfig
metadata:
name: function-msgraph
spec:
deploymentTemplate:
spec:
replicas: 1
selector: {}
template:
metadata:
labels:
azure.workload.identity/use: "true"
spec:
serviceAccountName: function-msgraph
containers:
- name: package-runtime
serviceAccountTemplate:
metadata:
annotations:
azure.workload.identity/client-id: "your-client-id"
name: function-msgraph
How could this Function help solve your problem?
The function should resolve this value from the env var instead of expecting users to provide it.
- Ngôn ngữ chính
- Go
- Star
- 4
- Fork
- 6
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
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 upbound/function-msgraph
-
Dependency DashboardĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
Tất cả issue của upbound/function-msgraph
Issue tương tự
-
goose sub-agent runs are never indexed: blame finds no session for any file a `delegate` child wroteĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
wakatime/wakatime-cli#1649 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
PathBuffer.Pop corrupts later error locations when a key contains "." or "["Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
danielgtaylor/huma#1135 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
stacklok/toolhive-catalog#1734 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Docs: how to get more careful answers (Effort, reasoning models, Reasoning level, Deliberate)Đang mởdocumentation priority:p1
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
yeixio/toskar-core#697 ·
Maintainer thường phản hồi trong vòng 1 ngày