Fix two bootstrap failures found by rehearsing it against a CT snapshot - #29
Merged
Merged
Conversation
The admin password came from `tr < /dev/urandom | head`, which dies of SIGPIPE
under pipefail: the first rehearsal exited 141 straight after preflight. It is
now `openssl rand -hex 24`, with no pipe.
OpenBao 2.x refuses `bao audit enable` ("use declarative, config-based audit
device management"), so the configure step failed after init. The audit device
is now declared in openbao.hcl by the provisioner, and the bootstrap no longer
tries to create it.
With both fixed, the full rehearsal passed every post-condition (sealed after
restart, 2-of-3, old root 403, admin login 200, no plaintext, SAN set) and was
rolled back.
Superproject #609.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V2afcTcowT1YVBwLzrJFtH
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rehearsed
tools/openbao-bootstrap.sh --test-no-bitwardenagainst a CT 3007 snapshot, then rolled it back. Two failures, both fixed:tr < /dev/urandom | head -c 32underpipefailexited 141 right after preflight. Nowopenssl rand -hex 24.cannot enable audit device via API; use declarative, config-based audit device management). The provisioner now declares it inopenbao.hcl(companion superproject PR), so the bootstrap no longer callsaudit enable.Final rehearsal: sealed after restart ✅, 2-of-3 ✅, old root 403 ✅, admin login 200 ✅, plaintext lines 0 ✅, SAN
openbao.devops.chrison.internal+10.10.30.7✅. Provisioner verdict on that state:hardened, 2-of-3 seal, unsealed. Rolled back afterwards; the rehearsal shares are destroyed.Superproject Chrison-Homelab/Homelab#609.
🤖 Generated with Claude Code
https://claude.ai/code/session_01V2afcTcowT1YVBwLzrJFtH