Support Azure Service Identity with resource-group-scoped RBAC

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

Maintainer thường phản hồi trong vòng 4 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
azure, kubernetes, rust

Hướng nghiên cứu

Start with the provider-neutral manifest contract in issue #23 and provider lifecycle contract in #24, then coordinate with runtime projection #26, RBAC #27, status #28, and inventory #31. The issue describes the Azure resources, scoping rules, ownership, and acceptance checks, but requires cross-issue contract work and live Azure proof. Done means the specified identity, federation, scoped roles, binding, lifecycle, and cleanup behavior are implemented and validated.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Part of the Service Identity work (#38), feature 3 in its inventory.

Goal

Implement Azure Service Identity using AKS OIDC federation and explicitly scoped Azure RBAC, independently of Eventing.

Depends on the provider-neutral manifest #23 and provider lifecycle #24 contracts. Coordinate with runtime projection #26, RBAC #27, status #28 and inventory #31.

Cluster capability

Expose an Azure provider setting that enables the AKS OIDC issuer and Workload Identity without installing Knative Eventing or Event Grid infrastructure. Confirm the observed issuer and enabled capabilities before identity mutation.

Azure-owned configuration
identity:
  name: tool-identity
  providerName: azure
  config:
    resourceGroup: tool-resources
    createResourceGroup: true
    roleAssignments:
      - role: Contributor
  • Only the Azure provider validates/interprets resourceGroup, createResourceGroup, and roleAssignments.
  • createResourceGroup: true requests an installation-owned dedicated group; false uses a validated existing group without adopting ownership of it.
  • roleAssignments is optional and defaults to empty. Authentication setup must not imply authorization.
  • Initially allow Reader and Contributor built-in roles. Resolve IDs in the Azure provider, not core. Contributor does not imply permission to assign roles.
  • Assign each explicit role only at the configured resource group's exact ARM scope. Omitted per-assignment scope means that group; an explicit scope must equal it. No subscription-wide roles.
  • Validate names, duplicate assignments, role allowlist, tenant/subscription/installation context, and scope before mutating infrastructure. Proposed maximum: 16 assignments.
  • Never infer privileges or cloud resources from identity.name.
Resources and binding

Create/reconcile a user-assigned managed identity, a federated identity credential, only the requested role assignments, and a generated annotated ServiceAccount manifest.

  • Federation subject is exactly system:serviceaccount:NAMESPACE:SERVICE_ACCOUNT.
  • Use the observed AKS HTTPS OIDC issuer and audience api://AzureADTokenExchange.
  • Annotate the ServiceAccount with the Azure client ID and return required workload-identity metadata plus a provider-neutral binding.
  • Permitted guest names: AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_FEDERATED_TOKEN_FILE; token root /var/run/secrets/azure/tokens.
  • Provider performs Azure operations; ly applies Kubernetes resources.
  • Save owned resource IDs, identity/federation facts, exact role inventory, config, and ownership context, but no credentials or token bytes.
Lifecycle and acceptance
  • Idempotent apply and explicit drift/not-ready reporting for missing or foreign resources.
  • Reconcile requested role changes without deleting unrecorded/foreign grants.
  • Delete only recorded owned roles, federation, identity, and an owned dedicated group. Never delete an externally owned group.
  • Refuse destructive group deletion if unrelated/customer resources remain.
  • Empty role configuration authenticates but cannot read protected resources.
  • Live proof: allowed operations inside one group, denial outside it, token rotation, repeated apply/status, and cleanup.
  • Cover partial creation, retry, ownership collision, unsupported roles/scopes, and eventual RBAC propagation.

Adapt the runtime binding after the Fiberd overhaul. The infrastructure contract itself is provider work.

Ngôn ngữ chính
Rust
Star
3
Fork
2
Merge trung bình
3 ngày 57 phút
Pull request đã merge (30 ngày)
17

Chuẩn bị môi trường

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 hyperlight-dev/lampyr

Tất cả issue của hyperlight-dev/lampyr

Issue tương tự

Thêm issue về Rust

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.