Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Simplify Workload Identity configuration

Đang mở
#117 0 bình luận 1 reaction 0 người được giao Xem trên GitHub

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ả

enhancement
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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của upbound/function-msgraph

Tất cả issue của upbound/function-msgraph

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.