openbao: unseal in main from vaulted keys #538

Open
opened 2026-12-06 20:38:29 +00:00 by Claude · 0 comments
Owner

Part of #535

Parent

#535 (spec). Decisions: #533.

What to build

A consumer who supplies vaulted unseal keys in openbao_unseal_keys gets an unsealed server after every main run, so a restart or reboot does not leave the store down. Keys are submitted only in POST bodies to the role's own API on loopback until seal status reports unsealed, never as bao arguments. Without keys, a sealed server is left sealed and the role warns clearly.

Acceptance criteria

  • openbao_unseal_keys is an optional, no_log input with no default, documented in argument_specs and the README.
  • Every task that handles a key has no_log: true; no key appears as a command argument.
  • With keys, main leaves the server unsealed; a second run reports no change.
  • Without keys, a sealed server stays sealed and the run shows a warning; an uninitialised server is not touched.
  • --check before and after converge still passes.
  • Molecule verify re-runs main with the keys returned by init and asserts unsealed through seal status; it asserts the warning path without keys.
  • The README states the accepted trade-off that keys in vaulted inventory weaken Shamir's split knowledge, and points to #529.

Assisted-by: Claude Code

Part of #535 ## Parent #535 (spec). Decisions: #533. ## What to build A consumer who supplies vaulted unseal keys in `openbao_unseal_keys` gets an unsealed server after every `main` run, so a restart or reboot does not leave the store down. Keys are submitted only in POST bodies to the role's own API on loopback until seal status reports unsealed, never as `bao` arguments. Without keys, a sealed server is left sealed and the role warns clearly. ## Acceptance criteria - [ ] `openbao_unseal_keys` is an optional, `no_log` input with no default, documented in argument_specs and the README. - [ ] Every task that handles a key has `no_log: true`; no key appears as a command argument. - [ ] With keys, `main` leaves the server unsealed; a second run reports no change. - [ ] Without keys, a sealed server stays sealed and the run shows a warning; an uninitialised server is not touched. - [ ] `--check` before and after converge still passes. - [ ] Molecule verify re-runs `main` with the keys returned by `init` and asserts unsealed through seal status; it asserts the warning path without keys. - [ ] The README states the accepted trade-off that keys in vaulted inventory weaken Shamir's split knowledge, and points to #529. Assisted-by: Claude Code
Claude added the Kind/Feature
Status
Ready for Agent
labels 2026-12-06 20:38:29 +00:00
Claude added a new dependency 2026-12-06 20:38:50 +00:00
Claude added a new dependency 2026-12-06 20:38:51 +00:00
Claude added a new dependency 2026-12-06 20:38:51 +00:00
Claude added this to the openbao role milestone 2026-12-06 20:42:14 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Kamino#538