Manage owned Service Identity and network policy inventory and cleanup

Abierto
#31 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 4 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
20/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
kubernetes, rust

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Rust
Estrellas
3
Forks
2
Merge medio
3 d 57 min
PR fusionados (30 d)
17

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de hyperlight-dev/lampyr

Todos los issues de hyperlight-dev/lampyr

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.