The runner reads OpenBao's deploy record and infra-silo's four paths (SC-25) #34
No reviewers
Labels
No labels
ready-for-agent
review
merge-ready
review
needs-fix
review
needs-human
review
needs-review
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-secrets!34
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "sc-25/runner-openbao-silo"
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?
Implements SC-25.
Summary
automation-runnergains the five paths SC-25 names:secret/tofu-state/openbao/deploy,secret/silo/{root,provisioner,service-account}andsecret/tofu-state/silo/apply. Nothing reads them yet — the fetch row is SC-36's. Both accepted risks are in the policy comment and instore-identity.md: the state (MinIO root, provisioner and a record apply key; recovery is 150's nightly image) and the store's root (the deploy runs as root on 144 and can read the init file; recovery is 144's nightly image and a re-seal).store-layout.mddeclares the OpenBao record's deploy key (the prefix goes to 27 paths, 82 in the tally),guest-state.mdrecords its third key shape, andenv.mapandenv-fetch.mdname SC-36 for the runner's fetch row.Evidence
mise exec -- make check: exit 0, every case passed.bao policy fmt: parses, rewrites nothing. 25 path blocks, matching the identity page.Not yet applied
After the merge, from
main:make service-check(expect one write: policyautomation-runner),make service,make service-check(expectchanged=0). Then a runner login on 145 reads the five and is refusedopenbao/{apply,plan},silo/plan, every other record's apply and plan key,secret/ci/*and Semaphore's own paths; the token is revoked. Results go on SC-25.Merge Danger
Door: two-way. The merge changes nothing live; the policy reaches the store only through the service run above.
Blast Radius: medium. After the apply the runner holds the store's state and root on 144 — both recorded as accepted risks. Until then the five paths are only a file.
Outside this ticket: the runner's Proxmox token still has no
/vms/144, and I found no open ticket carrying that grant (SC-30 carries/vms/150); SC-19 needs it. And SC-25's first criterion says the login is refused the silo records' apply and plan keys while the build list grantssilo/apply; this follows the build list and reads the criterion as every other record's keys plussilo/plan. The ticket wording needs amending.automation-runner gains secret/tofu-state/openbao/deploy, and secret/silo/{root,provisioner,service-account} and secret/tofu-state/silo/apply. The policy's comment and the identity page record the two accepted risks the grants carry: the runner can read or delete every Stack's state through the MinIO root password, and it is root on 144, so it can read the store's init file and act as the store's root. The layout declares the OpenBao record's deploy key, read by the runner.Review started (round 1/5) on
a7ae0d1153— reading the diff now.a7ae0d1153e048fd2712repo: olympus/infra-secrets · pr: 34 · head:
a7ae0d1153· round: 1/5 · state: REQUEST_CHANGESRecommendation: fix
Two blockers, both in the record this change ships. The policy itself is right: the five paths are the five SC-25 names, the file parses,
make checkis green, and the merge changes nothing live. What does not hold is what the record says about how those paths will be read, and one count it leaves behind.Spec
S1 — BLOCKER —
bao/policies/automation-runner.hcl:167-170The comment says the fetch will read this path "once SC-36 scopes the
openbao/applyrow to it". Five lines above, the same comment says "The record's apply and plan keys are not reachable from here", and the PR body's own verification asserts the runner "is refusedsecret/tofu-state/openbao/{apply,plan}".env.map:39is the row in question:Scoping that row to
runnermakes the runner readsecret/tofu-state/openbao/apply— the path this policy refuses — so the fetch 403s at the store and the deploy key granted here is read by nothing.docs/env-fetch.md:202("The Semaphore runner's name joins the row") andenv.map:32-33plan the same thing, so the sentence is not a slip in one file: it is a stale plan carried into the file that now contradicts it.Smallest fix: name the path the row must carry — "…once SC-36 adds the runner's row on
secret/tofu-state/openbao/deploy, carrying this path's field names; the row the Operator reads (openbao/apply) is not this one." Then correctdocs/env-fetch.md:202andenv.map:32-33in the same pass, or say on SC-36 that they are its to fix.S2 — BLOCKER —
docs/store-layout.md:72The heading reads "
secret/tofu-state/<record>/{apply,plan,deploy}— twenty-six paths". It is twenty-seven now. This section's own tables: 9deploykeys (rows 93-101,openbaoone of them) + 16 apply-and-plan (8 records × 2) + 2 plan-only = 27; it was 8 + 16 + 2 = 26 before this PR, which is why the heading said 26. The page contradicts itself directly below its own new table row.Smallest fix:
twenty-six→twenty-seven.Standards
Standards used:
AGENTS.md(§Checks, §Domain docs),docs/store-identity.md(the identity table is the single source of the grants; the policy file's comment carries the accepted risks),docs/store-layout.md(owns the paths; its counts are the audit instrument),docs/store-identity.md:100("Never a prefix with an exception… each named path"). The five grants are named paths withreadonly, and both accepted risks are written beside the grants as SC-25 asks — that part passes.A1 — ADVISORY —
docs/guest-state.md:23-37This is the page that owns the openbao record ("## 1. The record, and its key"), and
store-layout.md:145-147now says the record "carries all three shapes". The table atguest-state.md:23-30still listssecret/tofu-state/openbao/{apply,plan}and two key names, with nodeployrow, no SL-27 mint and no reader. A change that adds the record's third key should add its line here; the page is linked from the layout as the record's own document.A2 — ADVISORY —
bao/policies/ci-secrets.hcl:6"its
deploykey goes to the runner when SC-25 grants it" — SC-25 is this change. The conditional is discharged and the sentence still reads as future tense in a policy comment whose job is to state the reach truthfully.A3 — ADVISORY —
bao/policies/automation-runner.hcl:4-6The header states the staging rule — "this reach is staged: it grows by one repository in the change that automates that repository (CP-17)" — and then lists SC-25 as an instance of it. SC-25 is not that change: nothing reads these five paths until SC-36, which the policy comment itself says. Either say the exception out loud (the reach is granted ahead of its reader, on SC-25) or leave SC-25 out of that sentence until SC-36 lands.
A4 — ADVISORY (pre-existing) —
docs/env-fetch.md:195-203,env.map:32-33The same wrong plan as S1, in two files this change does not touch: both say the map's one store path is
secret/tofu-state/openbao/applyand that the runner "joins the row". SC-25 is the change that makes this false. Pre-existing, so advisory, but it is the sentence SC-36 will implement from.Verified
mise exec -- make check→ exit 0,env fetch: every case passed.mise exec -- bao policy fmton a copy → exit 0,NO REWRITE(the PR's claim reproduced; the file is already formatted and parses).grep -c '^path "' bao/policies/automation-runner.hcl→ 25, matchingstore-identity.md:305's "twenty-five named paths" and the 25 paths counted in the identity table'srunnerrow.store-layout.md:91-101and:135-142.env.maphas norunner-scoped row for any of them; the only openbao row is:39, onopenbao/apply./etc/openbao/openbao-init.jsonis the role's path (bao/service/roles/openbao/defaults/main.yml:28), the prod inventory runs asroot(bao/service/inventories/prod/hosts), and the nightly image of 150 is the store's own backup (docs/store-backup.md:23).make service(defaults/main.yml:60,89); nothing applies on merge.git diff 3e25596...a7ae0d1 --checkclean; one commit, three files, all accounted for.Not verified
/tasks/325is unreachable from this session — the configured API token answers401on/api/v1/userand/api/v1/tasks/325. The spec used is the PR description, which names the five paths and both risks explicitly; scope creep against the ticket's own wording is therefore unchecked.tofu-deploy-state-openbaowas created with the ADR-0012 policy embedded, and whether its fields really areOPENBAO_STATE_*. The store was not queried; the claim rests onstore-layout.md:104("adeploypath carries the same field names as itsrecord'sapplypath").Summary. Spec: 2 findings, both blockers — worst is S1, the fetch-row sentence the runner's deploy would be built from. Standards: 4 advisories, no blocker — worst is A1, the record's own page still documenting two keys. The recommendation rests on S1 and S2; the advisory count alone would not have turned it.
repo: olympus/infra-secrets · pr: 34 · head:
e048fd2712· round: 1/5 · state: APPROVEDRecommendation: merge
This supersedes the REQUEST_CHANGES entry above: the branch amended from
a7ae0d1toe048fd2while that review was running, so its two blockers judged bytes no longer on the branch. Both are fixed ine048fd2, and I re-verified the fixes rather than taking them on trust:a7ae0d1e048fd2hcl:168scoped theopenbao/applyrow for the runnerhcl:166("apply and plan keys are not reachable")store-layout.md:72said twenty-six pathsguest-state.mddocumented two keysenv.map:32-33andenv-fetch.md:202planned the apply rowmake checkgreenSpec
No findings. Checked against the description, which is the spec used (see Not verified):
secret/tofu-state/openbao/deploy,secret/silo/{root,provisioner,service-account},secret/tofu-state/silo/apply— each a named path withreadonly, no prefix, nolist(hcl:171-206). 25 path blocks, matchingstore-identity.md:306's "twenty-five".hcl:31-43) and instore-identity.md's runner bullets (:179-192), as SC-25 asks. Both are grounded: the prod inventory runs asrooton 144 (bao/service/inventories/prod/hosts) and/etc/openbao/openbao-init.jsonis the role's path (roles/openbao/defaults/main.yml:28); the store's own recovery is the nightly image of 144 (store-backup.md:11-13), the state's is 150.env.maphas no runner-scoped row for these paths, and policies reach the store only throughmake service(roles/openbao/defaults/main.yml:60,89). The "two-way door" holds.store-layout.md:72), 82 in the tally (:447), 25 in the policy.Standards
Standards used:
AGENTS.md§Checks;docs/store-identity.md:100("Never a prefix with an exception… each named path");docs/store-layout.md(owns the paths, its counts are the audit instrument); the repo's convention that a policy comment states the reach truthfully and carries the accepted risks. The change follows them; two advisories, neither blocking.A1 — ADVISORY —
bao/policies/automation-runner.hcl:4-6. The header states the staging rule — "this reach is staged: it grows by one repository in the change that automates that repository (CP-17)" — and then lists SC-25 as an instance of it. SC-25 does not automate: nothing reads these five paths until SC-36, as the file itself says at:166-169. Either state the exception (the reach is granted ahead of its reader, on SC-25) or leave this repository and infra-silo out of that sentence until SC-36 lands. One line.A2 — ADVISORY —
bao/policies/ci-secrets.hcl:6. "itsdeploykey goes to the runner when SC-25 grants it" — SC-25 is this change. The conditional is discharged and the sentence still reads as future tense, in a comment whose job is to state the reach truthfully. One line.Two advisories do not turn the verdict; they travel as advice.
Verified
mise exec -- make checkone048fd2→ exit 0,env fetch: every case passed.bao policy fmton a copy → exit 0, no rewrite; the file parses and is already formatted.grep -c '^path "'→ 25; 27 in the prefix by the layout's own tables (store-layout.md:91-101,:135-142); 82 in the tally; nothing reads the five paths (env.map).git diff 3e25596...e048fd2 --checkclean; six files, every one accounted for.Not verified
/tasks/325answers401to this session's token, so the description is the spec; scope creep against the ticket's wording is unchecked, and the description itself records an open conflict between SC-25's first criterion and the build list (it follows the build list forsilo/apply).tofu-deploy-state-openbaowas created with the ADR-0012 policy embedded and whose fields areOPENBAO_STATE_*; the store was not queried. The claim rests onstore-layout.md:104.Summary. Spec: 0 findings — the change does what it says, at the counts it claims. Standards: 2 advisories, no blocker — worst is A1, the header's staging sentence now claiming a change that automates what SC-36 will. Merge on the blockers alone; the two advisories are advice.