IronicRunbook: allow step args to be loaded from a Secret via valueFrom.secretKeyRef
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- kubernetes, python
- Área
- backend, infrastructure, security
Línea de trabajo
Start in plugins/ironic/runbooks/reconcile.py and trace how IronicRunbook step args are copied and how cloudCredentialsRef Secrets are read. Inspect the CRD definition and existing reconcile tests or entry points to determine schema and error-handling conventions. Done means malformed or missing references fail clearly without exposing values, while valid references reach Ironic and the documented drift, rotation, and logging behavior is covered.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
IronicRunbook step args are copied verbatim into the Ironic runbook
(plugins/ironic/runbooks/reconcile.py). Some steps need a sensitive value,
such as a token or password. Today the only way to provide one is to put it
in plain text in the CR spec, which means it ends up in git and anywhere the
manifest is rendered or displayed.
The CRD already references a Secret for cloudCredentialsRef, but nothing
equivalent exists for step arguments.
Proposal
Allow a step argument to be loaded from a Kubernetes Secret in the CR's
namespace, using the familiar valueFrom.secretKeyRef shape:
spec:
steps:
- interface: management
step: some_step
order: 1
args:
plain_arg: value
sensitive_arg:
valueFrom:
secretKeyRef:
name: my-secret
key: some-key
At reconcile time the operator resolves each reference and sends the
resolved value to Ironic. The Secret itself can be populated by any means,
for example an ExternalSecret, so the sensitive value never needs to live
in the manifest.
Things to consider
- Schema / CRD:
argsis currently free-form
(x-kubernetes-preserve-unknown-fields). Decide whether to recognise
valueFromanywhere inargs(including nested values) or only on
top-level arguments, and reject avalueFromthat is malformed. - Missing Secret or key: fail the reconcile with a clear status
condition and message rather than sending a partial runbook. - RBAC: the operator needs
geton Secrets in the namespaces it
reconciles. It already reads thecloudCredentialsRefSecret, so this may
already be covered. - Rotation: the hook only watches the
IronicRunbookkind, so a changed
Secret is only picked up by the scheduled resync. Consider also binding on
referenced Secrets, or document the resync interval as the propagation
delay. - Drift detection: Ironic masks sensitive-looking values (for example
keys containingtokenorpassword) as******when it returns runbook
steps, so they never compare equal to the desired value and/stepsis
PATCHed on every reconcile. That already happens for literal values today
(see the note inreconcile.py), but resolved secrets will make it more
common. Comparing a hash of the resolved steps, stored in the ownership
markers inextra, would avoid needless rewrites. - Logging and status: never write resolved values into operator logs,
status messages or events. - Docs: note that the resolved value is still stored in Ironic's
database as part of the runbook, so this protects the manifest, not
Ironic.
- Lenguaje dominante
- Python
- Estrellas
- 13
- Forks
- 11
- Merge medio
- 1 d 2 h
- PR fusionados (30 d)
- 103
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de rackerlabs/understack
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
rackerlabs/understack#2193 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
rackerlabs/understack#2346 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
rackerlabs/understack#2343 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 68/100
rackerlabs/understack#2342 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 72/100
rackerlabs/understack#2335 ·
Los mantenedores suelen responder en 1 día
Todos los issues de rackerlabs/understack
Issues similares
-
Atomic append fails to create a missing filePosiblemente ocupada @harbinresearcher la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
fabiocaccamo/python-fsutil#201 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
task
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
danparshall/claude_researcher#87 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
GhostManager/Ghostwriter#998 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
datajoint/datajoint-python#1586 ·
Los mantenedores suelen responder en 1 día