The store declares the OpenBao Guest Stack's state record (SC-18) #15
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!15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/SC-18-openbao-state-policies"
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?
The store's half of SC-18 (
infra-secrets' Guest Stack keeps its state in the store). The consuming half is theinfra-secretspull request on branchhermes/sc18-openbao-state-in-the-store, and per ADR-0006 the owner's half lands first.What lands
silo/store/openbao-state-policy.json— apply key: list thetfstatebucket, and read/write/delete onprod/openbao.tfstateand the.tflockbeside it, nothing else.silo/store/openbao-plan-state-policy.json— plan key: list the bucket,s3:GetObjecton the record, and write reach over the lock alone. The record is never writable with it.Both are the
forge-guestpair with the object name swapped, so a review can diff them mechanically:Bookkeeping: runbook 0003 §7 gains the two rows (six Stacks outside this repository, thirteen mints), the README's enumeration of plan-only keys gains this one, and
key-audit.test.sh's green case gains a key holding each file.Verification
The test is a real check: with
openbao-plan-state-policy.jsonhidden, the green case reds on the unmatched key and on the count.Not this PR's to do
The mint (
tofu-state-openbao,tofu-plan-state-openbao) needs the store's root credential and is the Operator's, with the consuming repository'sdocs/guest-state.md§1 as the row-by-row. Until it is minted, nothing reads these policies.Review started (round 1/5) on
3b803d810d— reading the diff now.olympus/infra-silo#15 — reviewed head
3b803d810ddf5a1ada1cf0a58e1be5c3c9c43731· round 1/5 · axes: standards, spec. First round, so there are no earlier findings to re-drive.Recommendation: merge
What the change claims
The store declares the record for
infra-secrets' OpenBao Guest Stack: two policy files undersilo/store/(an apply pair and a plan pair), runbook 0003 §7's rows and counts, the README's plan-key enumeration, and a green case per new file inkey-audit.test.sh. The mint, the store write and the migration are the Operator's and explicitly out of scope.Standards
Sources read at the reviewed head:
AGENTS.md(§Docs, §Toolchain, §Pull requests),docs/agents/issue-tracker.md,docs/adr/0008,docs/adr/0009, and the org recordsolympus/workshopdocs/adr/0006anddocs/adr/0008, fetched from the forge atmain.scripts/tests/key-audit.test.sh:153-161add_keybuilds the fixture's held policy with--slurpfile held "$repo/silo/store/openbao-…json", so the key's stored policy is the file under test, andkey-audit.sh:178-183matches on canonical content alone. Wideningopenbao-state-policy.json's object statement toarn:aws:s3:::tfstate/prod/*— the reach ADR-0008 exists to refuse — leavesmake key-audit-testgreen (probe run: exit 0, "every case passed"). Advice: one case asserting the statements against literals would pin the thing a reviewer reads the file for. Not a blocker — the body claims only that hiding the file reds, which is true, and no sibling policy is content-pinned either.scripts/key-audit.sh:177-183tofu-state-openbaoholdingforge-guest-state-policy.jsonauditsok … ← silo/store/forge-guest-state-policy.json,0 failing, exit 0. The fleet's earlier pairs differ in actions as well as resources; these two differ by one string, so a mint taken against the wrong pair is now the plausible mistake and the audit cannot see it.No smell from the baseline earns a line: the change is two data files, five test lines, and prose.
Spec
Sources: SC-18 (
infra-secrets, Vikunja project 8, task 277) with its hand-back comment, and the PR body's §What lands as the contract for this half.tfstate, read/write/delete onprod/openbao.tfstateand the.tflockbeside it, nothing elseGetObjecton the record, write reach over the lock alone; the record never writableGetObjecton the record only; statement 3 carries the lock's three actionsforge-guestpair with the object name swappeddiff <(sed 's/forge-guest/openbao/g' …) …identical for both pairs-plan-state-policyrows8 audited; withopenbao-plan-state-policy.jsonremoved the case fails 3 assertions, including the unmatched key and the countinfra-secrets#25bao/guest/backend.tf:bucket = "tfstate",key = "prod/openbao.tfstate"No requirement missing, no scope creep, nothing implemented in a way that contradicts what was asked. SC-18's three acceptance criteria are consumer-side (
tofu state list, an empty plan, no state file left) and wait on the Operator's mint and migration; the ticket's own hand-back assigns them there, so they are pending by design rather than missing here.What I verified, and how
mise exec -- make checkin a detached worktree at the reviewed head: exit 0,Success! The configuration is valid., no failing assertion in the env suite.mise exec -- make key-audit-test: every case passed.refs/pull/15/head,git ls-remote, and the PR object'shead.sha— all3b803d81….What I could not verify, and why
Summary
Minted (with the Operator's authorisation):
tofu-state-openbaoandtofu-plan-state-openbao, against the two policy files this PR adds, with the pairs written tosecret/tofu-state/openbao/{apply,plan}.make key-auditagainst the live store:16 key(s), 15 audited, 1 out of scope, 0 failing— both new keys match their file exactly, so nothing else drifted. The consuming PR isinfra-secrets#25.