Define provider-neutral Service Identity in lampyr.yaml

Aperta
#23 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
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
kubernetes, rust, yaml

Direzione di ricerca

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.

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

Descrizione

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.

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.