Declare the OpenBao record's deploy state key (SL-27) #26
No reviewers
Labels
No labels
needs-info
needs-triage
ready-for-agent
ready-for-human
review
merge-ready
review
needs-fix
review
needs-human
review
needs-operator
review
needs-review
review
waiting
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
olympus/infra-silo!26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/sl27-openbao-deploy-key"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
SL-27
Summary
The OpenBao Guest Stack's record (
prod/openbao.tfstate) gets its third key shape: the deploy key the Semaphore runner will apply infra-secrets with (workshop ADR 0012).The policy is
forge-edge-deploy-state-policy.jsonwith only the two object ARNs changed. Docs: runbook 0003 §7 row and deploy-shape paragraph, ADR 0010 / runbook 0001 / README counts (25 declared, 27 across the fleet; counted with the key-mint parse).Evidence
mise exec -- make check: exit 0,key-audit-test: every case passed,key-mint-test: every case passed,Success! The configuration is valid.ok AKDEPLOYBAO00000001 tofu-deploy-state-openbao <- silo/store/openbao-deploy-state-policy.json. Before (red): with the deploy file given the apply file's content, the case fails and the deploy key matches the deploy file only by accident of content. After: passes; 11 audited, 0 failing.ok tofu-deploy-state-openbao belongs at secret/tofu-state/openbao/deploy.make fmtleavesgit status --porcelainempty.make store-plan,make key-audit, the mint. Those are the live half (below).Merge Danger
Door: two-way
The live half: write the pair at
secret/tofu-state/openbao/deploy, thenmake key-mint KEY=tofu-deploy-state-openbaofrom this branch. Merging before the mint is harmless:make storefrom main would plan a create, andscripts/store-plan-guard.shrefuses it. Merge soon after the mint: until thenmake storefrom main plans a destroy of the minted key, andprevent_destroyrefuses it.Blast Radius: store-half
Nothing reads the new path yet. infra-secrets' runner grant (SC-25) and env.map row (SC-36) consume it, and are blocked on this ticket.
Review started (round 1/5) on
259d61e0aa— reading the diff now.repo: olympus/infra-silo · PR: #26 · reviewed head:
259d61e0aa· round 1/5 (the thread carries no earlier review, so the round is one; it matches the dispatch) · verdict: APPROVE, 0 blockers, 1 advisoryRecommendation: merge
Spec source: SL-27, "The OpenBao deploy key is declared in the store half and minted" (Vikunja project 7, task id 336), read live; the PR body links it as
SL-27. The ticket's own comment (bot-telesphoros) says the live half waits on the Operator. Standards source:AGENTS.md(§Code comments, §Toolchain, §Docs),docs/adr/0010, runbook 0003 §7, and the workshop ADRs atorigin/main(0006, 0007, 0012). Fixed point:origin/main673c97ais an ancestor of the head, so the whole PR delta isgit diff origin/main HEAD: 8 files, +43/−10, two commits.Standards
No findings. The diff follows the rules the repo keeps and the neighbours that already do this.
AGENTS.md§Docs: no new link, no new page, no glossary change. Every changed sentence sits in a page that already carries the claim.AGENTS.md§Code comments: the 3-line comment atsilo/store/variables.tf:103-105repeats the shape of the sibling blocks at:61-63and:74-, so it follows the map's own practice.s3:DeleteObjecton the.tfstate.silo/store/openbao-deploy-state-policy.jsondiffers fromforge-edge-deploy-state-policy.jsonin the two object ARNs and nothing else (diffrc 1, exactly the two lines).Spec
ADVISORY —
scripts/tests/key-audit.test.sh:167: the new assertion's message claims more than the case proves. It is named "the openbao deploy key matches its own file, not the apply file that deletes the record". I gave the deploy policy file the apply file's content in a scratch copy of the head tree, which is the PR body's own "Before (red)" mutation. The suite does go red, but the failing assertion is the neighbouring, pre-existing:163("the openbao apply key matches its own file"). The new:167assertion staysokunder that mutation: the two files are identical, so the deploy key matches its file trivially. The new assertion does fail when the file is deleted (audit-notok=3) and when it is scoped to the wrong record (prod/forge-edge.tfstate→not okon:167). So the case is real, and the body's "the case fails" lands on the apply-key assertion, not this one. Clearing change, optional: drop "not the apply file that deletes the record" from the message, or say in the body which assertion goes red.Claims reproduced
diffagainstforge-edge-deploy-state-policy.jsonjqover every*-deploy-state-policy.jsonat headtofu-deploy-state-openbaois 25 characters${#name}tofu-deploy-state-forge-runner, is 30secret/tofu-state/openbao/deploykey-mint.sh's owncaseon the file name, copied and runshape=deploy record=openbao→secret/tofu-state/openbao/deploykey-mint.sh's map read (sed -nE) on the headvariables.tfopenbao-deploy-state-policy.jsoncomm -3of map policies againstsilo/store/*-policy.jsonprovisioner-policy.json,silo-plan-state-policy.json,state-policy.jsonunmapped, identical to basedeployrows: forge 3, tracker 2, semaphore 1, runner 1, projects 1, openbao 1; ordinals walked through the paragraphgit grepover README, docs, scripts, silo for the count wordsmake checkmise exec -- make checkat the head worktreeSuccess! The configuration is valid.; CIpr-checks / check (pull_request)issuccesson this SHAfmtleaves the tree cleanfmt-checkinsidemake check(green), thengit status --porcelainin the head worktreemake fmtitselfMutation wave (each in a fresh
git archivecopy of the head, the repo's two suites run directly under the mise toolchain PATH)::163apply-key assertion)does not declare 'tofu-deploy-state-openbao')forge-edgerecord:167)DeleteObjecton the recordThe mutation rows show what the added test lines buy: they pin the key's name, its file, its map entry and its store path. They do not pin the action set (see below). The base tests do not notice the wrong-record fault (last row), so the added lines are the guard for it.
Named, not charged
DeleteObjecton the record (mutation row 5, both suites green). That holds for the eight sibling deploy policies, and workshop ADR 0012's last Consequence says what it buys is "a shape, not a check". Pre-existing; the PR claims only the diff against the sibling, which holds.make store-planreads No changes after the import,make key-audit0 failing against the live store, the pair refusedprod/silo.tfstateand the delete of its own record) need the store's root credential and the mint, which is the Operator's act. The review profile's.envcarries no store, AWS or MinIO names, so I could not attempt them. The offline half of the second criterion is covered bykey-audit-test.silo/store/state-keys.tf:29carriesprevent_destroy, andmake storepipes its plan throughscripts/store-plan-guard.sh(Makefilestore:recipe). Both agree with the body's ordering advice. I did not run a plan.{apply,plan}for the OpenBao record (infra-secretsdocs/store-layout.md:142,docs/guest-state.md:29atorigin/main). The body assigns that repo's side to SC-25 / SC-36; the ticket does not list it for this one.Summary
scripts/tests/key-audit.test.sh:167, the assertion message overclaims against the body's red/green evidenceBlockers: 0, so the state is APPROVE. Advisories: 1, below the volume threshold of three, so the recommendation is
merge. Merge after the Operator's mint is the body's own ordering, and it holds.