Manifest env defaults shadow operator-set context secrets at service spawn #151
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_proc#151
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When a service declares an env var in its service.toml env block, lab resolves the value at registration time (shell env first, then the manifest default) and bakes it into the stored service definition. At spawn, hero_proc_server builds the child environment as context secrets first and then appends the stored spec env after them (run_job in supervisor/executor.rs), so the baked default always overrides a secret of the same name that an operator later sets in the service's context. Practical effect:
hero_proc secret set --context core SOME_VAR valuesilently does nothing for any var declared with a default in the manifest, and the only working path is re-registering with the var exported in the shell (SOME_VAR=value lab service <name> --start), which then silently reverts to the default on the next plain re-registration. Suggest either letting context secrets win over the spec env at spawn, or re-resolving declared env vars against the secret store at spawn time. Hit live while configuring COCKPIT_MACHINE_ROLE for the cockpit machine profile.Signed-by: mik-tf mik-tf@noreply.invalid