openbao: role base (install, unit, raft, TLS, validation) #536

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

Part of #535

Parent

#535 (spec). Decisions: #533.

What to build

A consumer runs the new public openbao role's main entry point and gets a running OpenBao server on integrated raft storage, listening on TLS they supplied, left uninitialised and sealed. The role installs the pinned release tarball checked against a sha256 pinned in its defaults, creates its own system user (no shell), data directory, config and sandboxed systemd unit (Type=notify, SIGINT stop, MemorySwapMax=0, no mlock settings, ExecReload sending SIGHUP), and sets node id, cluster_addr and api_addr. TLS certificate, key and CA file paths are required unless openbao_tls_disable: true, which warns. The role reads its own seal status over https://127.0.0.1 with certificate validation against the CA file. This ticket adds the role to the Collection: README with the required headings, changelog fragment, README and galaxy role lists, Molecule timeout entry, and removal of openbao from the README Roadmap.

Acceptance criteria

  • The role has the Collection's standard layout, argument_specs for main with every optional input defaulted in defaults and in the spec, and validate.yml imported first with tags: always.
  • The tarball download is verified by get_url against the pinned sha256; version and checksum are inputs.
  • Missing TLS inputs fail in validation before any change, with a clear message; openbao_tls_disable: true passes with a warning.
  • Molecule default scenario on noble and resolute: prepare builds a CA and a server certificate covering 127.0.0.1 with the openssl CLI and applies the container sandboxing drop-in; --check runs before and after converge; converge is idempotent.
  • Verify asserts the service is active and that seal status over TLS on loopback reports uninitialised and sealed.
  • Negative tests for each validation match the expected error message.
  • meta/main.yml declares noble and resolute; the README has an "Untested platforms" line for trixie, the proxy re-encryption note, the 127.0.0.1 SAN requirement and an "Idempotent: yes" line.
  • A minor_changes fragment, README role list and release status line, galaxy description, Molecule timeout entry and Roadmap removal are in the same change.
  • pre-commit run --all-files passes.

Assisted-by: Claude Code

Part of #535 ## Parent #535 (spec). Decisions: #533. ## What to build A consumer runs the new public `openbao` role's `main` entry point and gets a running OpenBao server on integrated raft storage, listening on TLS they supplied, left uninitialised and sealed. The role installs the pinned release tarball checked against a sha256 pinned in its defaults, creates its own system user (no shell), data directory, config and sandboxed systemd unit (`Type=notify`, SIGINT stop, `MemorySwapMax=0`, no mlock settings, `ExecReload` sending SIGHUP), and sets node id, `cluster_addr` and `api_addr`. TLS certificate, key and CA file paths are required unless `openbao_tls_disable: true`, which warns. The role reads its own seal status over `https://127.0.0.1` with certificate validation against the CA file. This ticket adds the role to the Collection: README with the required headings, changelog fragment, README and galaxy role lists, Molecule timeout entry, and removal of `openbao` from the README Roadmap. ## Acceptance criteria - [ ] The role has the Collection's standard layout, argument_specs for `main` with every optional input defaulted in defaults and in the spec, and `validate.yml` imported first with `tags: always`. - [ ] The tarball download is verified by `get_url` against the pinned sha256; version and checksum are inputs. - [ ] Missing TLS inputs fail in validation before any change, with a clear message; `openbao_tls_disable: true` passes with a warning. - [ ] Molecule default scenario on noble and resolute: prepare builds a CA and a server certificate covering `127.0.0.1` with the `openssl` CLI and applies the container sandboxing drop-in; `--check` runs before and after converge; converge is idempotent. - [ ] Verify asserts the service is active and that seal status over TLS on loopback reports uninitialised and sealed. - [ ] Negative tests for each validation match the expected error message. - [ ] `meta/main.yml` declares `noble` and `resolute`; the README has an "Untested platforms" line for `trixie`, the proxy re-encryption note, the `127.0.0.1` SAN requirement and an "Idempotent: yes" line. - [ ] A `minor_changes` fragment, README role list and release status line, galaxy description, Molecule timeout entry and Roadmap removal are in the same change. - [ ] `pre-commit run --all-files` passes. Assisted-by: Claude Code
Claude added the Kind/Feature
Status
Ready for Agent
labels 2026-12-06 20:38:14 +00:00
Claude added a new dependency 2026-12-06 20:38:49 +00:00
Claude added this to the openbao role milestone 2026-12-06 20:42:13 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Kamino#536