openbao: update entry point with data copy and rollback #540
Notifications
Due Date
No due date set.
Depends on
#538 openbao: unseal in main from vaulted keys
Mortis/Kamino
Reference: Mortis/Kamino#540
Reference in new issue
Block a user
Part of #535
Parent
#535 (spec). Decisions: #533.
What to build
A consumer moves an OpenBao server to a new pinned version with the role's
updateentry point. The role validates, stops the service, copies the raft data directory to<path>.pre-<old version>, stages the sha256-verified new binary next to the live one and swaps it through the internal_binary_updaterole. If the new version fails to start or reports the wrong version, both the binary and the data copy are restored before the old binary starts, because OpenBao does not support downgrades. Afterwards the role unseals withopenbao_unseal_keyswhen given, or warns loudly that the server is sealed. Old data copies are left for the consumer.Acceptance criteria
updatehas its own argument_specs key, validation before any change, and an "Entry points" README entry._binary_updateis included by FQCN at task level;metadependencies stay empty.updateat the already-installed version changes nothing.--checkpreviewsupdatewithout changing the host.updateagainst afile://stand-in for the next version (traefik's pattern) and asserts the new version, the data copy and the unsealed state; it asserts the rollback path with a stand-in that fails to start.Assisted-by: Claude Code