openbao: auto-unseal (transit, static or KMS seal) #529

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

Problem

Follow-up of the planned openbao role (a single-node OpenBao server: tarball install, raft storage, consumer-supplied TLS, an opt-in init entry point returning a no_log fact, optional Shamir unseal from vaulted keys, an update entry point and a declarative file audit device). With Shamir only, every restart needs unseal keys supplied by an operator or kept in the inventory's vault. Auto-unseal is also a prerequisite for OpenBao's declarative self-initialization, which the role cannot offer today.

Out of scope: multi-node HA (separate issue); running the KMS or transit server that does the unsealing.

Proposal

Add an optional seal stanza to the server configuration, with a consumer-chosen type (transit, static key, or a cloud KMS) and its settings. OpenBao 2.7 moved many seal providers out of the binary into plugins: first check which seal types ship in the binary the role installs, and support only those, or document how a plugin seal is installed. Secrets the seal needs (tokens, keys) come from the consumer's vaulted variables and stay under no_log. Once auto-unseal works, evaluate whether the role should expose declarative self-initialization.

Acceptance criteria

  • The supported seal types are listed in the README, each checked against the installed OpenBao version.
  • A Molecule scenario starts a server with the static seal (needs no outside service), restarts it, and verify shows it unsealed without a Shamir key.
  • Without a seal setting the role renders the same configuration as before (default scenario passes unchanged).
  • No seal secret appears in task output (no_log on every task that handles it).
  • A changelog fragment in minor_changes.

Assisted-by: Claude Code

### Problem Follow-up of the planned `openbao` role (a single-node OpenBao server: tarball install, raft storage, consumer-supplied TLS, an opt-in `init` entry point returning a `no_log` fact, optional Shamir unseal from vaulted keys, an `update` entry point and a declarative file audit device). With Shamir only, every restart needs unseal keys supplied by an operator or kept in the inventory's vault. Auto-unseal is also a prerequisite for OpenBao's declarative self-initialization, which the role cannot offer today. Out of scope: multi-node HA (separate issue); running the KMS or transit server that does the unsealing. ### Proposal Add an optional `seal` stanza to the server configuration, with a consumer-chosen type (transit, static key, or a cloud KMS) and its settings. OpenBao 2.7 moved many seal providers out of the binary into plugins: first check which seal types ship in the binary the role installs, and support only those, or document how a plugin seal is installed. Secrets the seal needs (tokens, keys) come from the consumer's vaulted variables and stay under `no_log`. Once auto-unseal works, evaluate whether the role should expose declarative self-initialization. ### Acceptance criteria - [ ] The supported seal types are listed in the README, each checked against the installed OpenBao version. - [ ] A Molecule scenario starts a server with the static seal (needs no outside service), restarts it, and verify shows it unsealed without a Shamir key. - [ ] Without a `seal` setting the role renders the same configuration as before (default scenario passes unchanged). - [ ] No seal secret appears in task output (`no_log` on every task that handles it). - [ ] A changelog fragment in `minor_changes`. Assisted-by: Claude Code
Claude added the
Status
Needs Triage
label 2026-12-06 20:16:11 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Kamino#529