Manage owned Service Identity and network policy inventory and cleanup

Aperta
#31 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
kubernetes, rust

Direzione di ricerca

Start by reading the related issues #19, #24, #27, #28, and #38 to understand the provider lifecycle, RBAC, readiness, and shared inventory work. The issue does not name source files or tests, so locate the existing Service Identity and outbound-policy entry points and their tests before defining the storage and reconciliation adapter. Done means the partial-failure, retry, ownership, drift, cleanup, and uninstall cases in Acceptance have focused tests, with foreign resources preserved and required manual cleanup reported.

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

Descrizione

Part of the outbound-policy work (#19), feature 13 in the #38 inventory. Shared identity work coordinates with #38.

Goal

Give Service Identity and outbound policies durable, provider-neutral ownership/inventory and a recoverable lifecycle.

Infrastructure and Kubernetes resource ownership must remain distinct.

Contract and lifecycle
  • Persist installation/provider, Service/namespace/identity context, validated runtime binding, cloud inventory, and identities of approved owned Kubernetes resources.
  • Never persist token bytes, cloud credentials, or auth-cache contents in the record.
  • Use deterministic bounded names and a versioned, bounded record format; reject malformed/foreign records.
  • Apply is idempotent and can resume after interruption without adopting unrelated resources.
  • Preflight resource ownership/capability before cloud mutation when possible.
  • On newly created identity apply failure, compensate only resources created by that operation.
  • On an existing identity update failure, preserve pre-existing resources; never over-delete the existing identity.
  • Handle failures after cloud creation, Kubernetes apply, and record persistence explicitly.
  • Status detects actual cloud/cluster drift. A later apply/reconciliation can repair missing owned objects safely.
  • Delete and cluster uninstall use saved inventory, validate ownership, and remove identity/policy resources in safe dependency order.
  • Never delete external resource groups, foreign role assignments, or customer data. Surface required manual cleanup instead of reporting success.
Acceptance

Focused failure-injection tests for each partial phase, retry, collision, missing resource, role update, malformed inventory, provider unavailability, and uninstall. Verify deterministic cleanup and diagnostic errors.

Define the storage/reconciliation adapter for the future Fiberd architecture; a specific ConfigMap layout or custom new public API is not required. Coordinate with readiness #28, provider lifecycle #24, RBAC #27, and #19.

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.