Add provider Service Identity lifecycle operations and runtime binding
维护者通常 4 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- kubernetes, rust
调研方向
Start by reading the related manifest contract #23 and the provider protocol, validator, packaging, and lifecycle code; the issue names no specific files. Trace how existing providers handle apply, status, and delete, then review the linked inventory/cleanup #31 and runtime projection #26 work. Done means the identity operations validate requests and bindings, return owned inventory and approved manifests, and pass the listed fake-provider lifecycle and failure cases.
由索引模型根据 Issue 内容生成。
描述
Part of the Service Identity work (#38), feature 2 in its inventory.
Goal
Add infrastructure-only provider lifecycle operations for per-Service identities.
This protocol must work independently of the Azure sample and of the exact Fiberd Home architecture.
Operations and request context
Advertise and implement identity-apply, identity-status, and identity-delete as a coherent capability. Extend every provider artifact/protocol/packaging validator consistently.
Requests carry:
- installation identity and installed-provider context;
- Service name and namespace;
- the logical identity name and provider name;
- opaque provider-owned
identity.configfor apply; - saved infrastructure inventory for reconciliation/status/delete.
Validate capabilities and request shapes before mutation. An identity-aware deployment must not silently proceed with an older provider that lacks support.
Provider result contract
Return owned infrastructure inventory, optional approved Kubernetes manifests, and a validated provider-neutral runtime binding:
{
"serviceAccountName": "generated-service-account",
"namespace": "default",
"homePod": {"labels": {}, "annotations": {}},
"guestEnvironment": ["CLIENT_ID", "TENANT_ID", "TOKEN_FILE"],
"tokenFileEnvironment": "TOKEN_FILE",
"allowedTokenRoot": "/var/run/secrets/provider/tokens"
}
- Environment entries are allowed variable names, never secret values.
tokenFileEnvironmentmust name one permitted variable.- The token root must be a normalized, bounded, dedicated projected-token directory; reject traversal and broad mounts.
- Metadata cannot override Lampyr ownership/security fields.
- Fail deploy if infrastructure apply succeeds without a usable binding.
- The exact adapter into the future Fiberd architecture is a separate concern; do not make a particular CapacityGrant layout part of the cloud-provider protocol.
Authority boundaries
- Provider code performs cloud infrastructure operations only; it receives no Kubernetes credentials or unrestricted cluster client.
lyvalidates, claims, approves as appropriate, and applies returned Kubernetes resources.- Initial supported identity manifest is the generated ServiceAccount; core owns any necessary Home permissions. Do not allow arbitrary provider-generated RBAC.
- Scope manifest-return capability to identity apply and the existing legitimate lifecycle operations; do not widen all provider operations.
- Authentication cache contents remain outside artifacts, snapshots, requests, inventory, and logs.
Acceptance
- Exercise apply, repeated apply, status, role/config updates, and inventory-driven delete with a fake provider.
- Explicit readiness and terminal errors; never return success-shaped defaults.
- Cover missing capabilities, invalid bindings/manifests, ownership collisions, interrupted operations, and compensation for newly created resources.
- Preserve compatibility for providers without identity functionality when no identity is requested.
- Document operation schemas, result semantics, limits, and ownership guarantees.
Coordinate with manifest contract #23, Azure implementation #25, inventory/cleanup #31 and runtime projection #26.
- 主要语言
- 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 天内回复