Implement Service Identity

Aperta
#38 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
20/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
azure, kubernetes, rust

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
Rust
Stelle
3
Fork
2
Merge medio
3g 57m
PR unite (30g)
17

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di hyperlight-dev/lampyr

Tutte le issue di hyperlight-dev/lampyr

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.