Support Azure Service Identity with resource-group-scoped RBAC
维护者通常 4 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- azure, kubernetes, rust
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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, androleAssignments. createResourceGroup: truerequests an installation-owned dedicated group; false uses a validated existing group without adopting ownership of it.roleAssignmentsis 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
scopemeans 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;
lyapplies 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.
- 主要语言
- Rust
- 星标
- 3
- 派生
- 2
- 平均合并
- 3 天 57 分钟
- 30 天内合并 PR
- 17
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
hyperlight-dev/lampyr 的其他 Issue
-
a-needs-info dependencies
难度 2/5 1-3 小时 新手友好度 72/100
hyperlight-dev/lampyr#49 ·
维护者通常 4 天内回复
-
a-needs-info
难度 2/5 1-3 小时 新手友好度 68/100
hyperlight-dev/lampyr#34 ·
维护者通常 4 天内回复
-
Provision production AKS ingress DNS and TLS可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 5/5 一周以上 新手友好度 25/100
hyperlight-dev/lampyr#76 ·
维护者通常 4 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
hyperlight-dev/lampyr#75 ·
维护者通常 4 天内回复
-
a-needs-info enhancement
难度 4/5 3-5 天 新手友好度 48/100
hyperlight-dev/lampyr#55 ·
维护者通常 4 天内回复
查看 hyperlight-dev/lampyr 的全部 Issue
相似的 Issue
-
bug P2: medium
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 86/100
-
tests
难度 2/5 1-3 小时 新手友好度 70/100
vfarcic/dot-agent-deck#2512 ·
维护者通常 1 天内回复