Define provider-neutral Service Identity in lampyr.yaml

Abierto
#23 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
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
kubernetes, rust, yaml

Línea de trabajo

Start by reading the project loading and immutable artifact metadata paths, then trace how ly deploy, status, and delete invoke provider lifecycle operations. Coordinate with issues #24–#27 and #31 because this contract depends on their protocol and integration work. Done means the manifest envelope and structural bounds are validated, opaque config values survive loading and metadata storage, and the specified lifecycle and rejection cases are covered without changing behavior when identity is omitted.

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

Descripción

Part of the Service Identity work (#38), feature 1 in its inventory.

Goal

Let a Service declare a provider-managed identity in lampyr.yaml without putting cloud-specific interpretation in Lampyr core.

This is general product functionality, not a sample-specific API.

Proposed manifest contract
identity:
  name: tool-identity
  providerName: azure
  config:
    resourceGroup: tool-resources
    createResourceGroup: true
    roleAssignments:
      - role: Reader
  • name is a logical identity key, not an instruction to infer roles, resources, or privileges.
  • providerName selects the installed infrastructure provider. Fail clearly if it differs from the installation or identity support is unavailable.
  • config is an opaque provider-owned mapping. Preserve its values and pass it to the provider; core must not interpret Azure fields, role names, scopes, or defaults.
  • Core validates the envelope, names, and structural resource bounds before mutation.
  • Proposed bounds from the prior specification: 32 KiB serialized config, maximum depth 16, 2,048 value nodes, 1,024 scalars, 4 KiB per serialized scalar, and keys at most 256 bytes without NUL. Keep Rust/Go consumers consistent.
  • Configuration and stored metadata contain no credentials or projected token contents.
  • No identity declaration means no implicit application cloud identity or role assignment.
Integration and acceptance
  • Carry the declaration through project loading and immutable artifact metadata without provider-specific transformations.
  • ly deploy invokes the selected provider identity lifecycle; status/delete use the corresponding saved identity and ownership context.
  • Reject unsupported identity capability before creating partial resources.
  • Cover malformed names, unknown envelope fields, non-object config, oversize/deep inputs, provider mismatch, and opaque nested-value round trips.
  • Do not silently change existing Services' identity behavior when this feature is omitted.
Design boundaries

Coordinate with provider protocol #24, Azure implementation #25, inventory #31, RBAC #27, and runtime projection #26. Runtime Pod/Grant wiring is deliberately separate so the contract can be implemented around the upcoming Fiberd overhaul.

An earlier exploratory prototype contains the previous specification, not an accepted implementation to transplant.

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.