Implement Service Identity

未关闭
#38 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 4 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
20/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
azure, kubernetes, rust

调研方向

Start with linked issues #23 and #24 for the manifest and provider lifecycle contracts, then review #25–#31 for the implementation boundaries and dependencies. The payload does not name source files or tests; first inspect those issues and the current Fiberd runtime wiring. Done means the acceptance checks pass, including federated login, resource-group-scoped access, token rotation, policy enforcement, and cleanup.

由索引模型根据 Issue 内容生成。

描述

Implement provider-neutral Service Identity, with Azure as the first provider. The feature inventory and reliability checklist below came from the original tracking issue.

Suggested order:

  1. Define the manifest contract (#23), then the provider lifecycle and runtime binding (#24). Agree on ownership/inventory (#31) alongside these contracts, before resource creation.
  2. Implement recoverable inventory and cleanup (#31), then Azure identity, federation, and explicit resource-group-scoped roles (#25).
  3. Add core-owned, least-privilege Kubernetes permissions (#27), then project approved identity tokens into Fibers at execution time (#26). Keep token contents out of snapshots and stored metadata.
  4. Wire identity and outbound-policy readiness into deploy/status (#28), then prove federated login, token rotation, access denial outside the allowed scope, and cleanup end to end.

Azure infrastructure work and core runtime preparation can proceed in parallel once the contracts are agreed. Keep cloud-specific interpretation in the provider and Kubernetes operations in core. Adapt runtime wiring to the current Fiberd model.

Cluster-local visibility is already supported and is not part of this work. Outbound network policy is tracked primarily by #19, which is the parent of the shared readiness (#28) and inventory/cleanup (#31) issues. Their identity requirements remain part of this work and follow the order above; coordinate their outbound-policy portions with #19 rather than duplicating them.

Feature inventory

Other issues refer to these feature numbers.

# Feature Tracking
1 Provider-neutral Service Identity declaration #23
2 Provider identity apply/status/delete protocol #24
3 Azure OIDC, Workload Identity, federation, managed identity and scoped RBAC #25
4 Project identity into Fibers #26
5, 10 Outbound policy contract and Kubernetes/Cilium enforcement #19
6 Direct cluster-local Service calls done
7 Cluster-local visibility configuration done
8 Least-privilege generated identity ServiceAccount permissions #27
9 Identity/policy readiness reporting #28
11 Azure ACNS network security independent of Eventing #29
12 Restricted registry/data-endpoint egress #30
13 Identity/policy ownership, inventory and cleanup #31
14 Correct public/internal URL reporting #32
15 Bundle upstream bootstrap manifests #20
Reliability checklist

Problems seen while building the Azure CLI workload-identity sample. Reproduce and fix each on the current architecture; tick a box only with a focused test.

  • 16. Remote snapshot transfer integrity: detect truncated or corrupt uploaded inputs before execution, bound retries, verify transfers and clean up builder Pods.
  • 17. Knative deploy idempotency: redeploying the same immutable Revision tolerates Knative's defaulted fields instead of failing on a readiness-probe change.
  • 18. Registry mirror composition: combine the provider's and the runtime/service mirror configuration consistently, keep provider-free local clusters working, and define which wins on conflict.
  • 19. CLI deadline policy: tell long preparation from a stalled command, honour cancellation, and report the stage that is slow, rather than raising a timeout.
  • 20. Moved Grant CRD source: don't fail install when an upstream repository or path disappears (with #20).
  • 21. AppArmor target mismatch: profile metadata targets the actual container and stays correct after a rename.
  • 22. Home reconciliation: safely reconcile changed host configuration, missing Pods and stale readiness; check which cases main already fixes.
  • 23. JWKS startup ordering: a transient issuer or key-cache failure at startup must not leave a valid Grant unadmitted for good; invalid tokens are still rejected.
  • 24. Restricted DNS search: handle ndots/search expansion under an exact DNS policy without falling back to broad DNS or egress.
  • 25. Artifact pull authentication: public registry pulls never use an application's projected Azure identity or need unrelated RBAC (see #13).
  • 26. Large artifacts: preparation handles supported large inputs, stops on cancellation, reports truncated transfers and redirect denial correctly, and doesn't misreport a missing kernel or metadata.
  • 27. Provider metadata validation: protocol loaders, packaging and snapshot publication agree on which identity operations and manifest returns are allowed.
  • 28. Provider state-key limits: generated identity state keys fit the host storage contract and stay deterministic and collision-resistant.
Acceptance
  • Both sample Services run in Fibers, and federated login works with no workstation credentials.
  • Create/list/delete work in the assigned resource group and are denied outside it.
  • Outbound policy is enforced at the Fiber and host boundaries.
  • Token rotation, malformed projection, ownership collisions, partial failure, cancellation, retry and cleanup are tested, and test cloud resources are cleaned up.
主要语言
Rust
星标
3
派生
2
平均合并
3 天 57 分钟
30 天内合并 PR
17

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

hyperlight-dev/lampyr 的其他 Issue

查看 hyperlight-dev/lampyr 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。