policy: the runner reads the twelve plan keys the drift audit plans (paperclip:THE-11) #63
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
olympus/infra-secrets!63
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/THE-11-plan-keys"
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?
Summary
THE-11's scheduled drift check (
scripts/drift.shin infra-cockpit) runs on the Semaphore runner asrunner: it clones each repository atmainand plans it against PROD's record. The runner held onlydeploykeys, so every plan read would have been refused.This adds the
planhalf of the twelve records the check plans. Nothing else moves: no value written, no key minted, no identity added.secret/tofu-state/tracker-guest/planprod/tracker-guest.tfstate(142)secret/tofu-state/tracker-edge/planprod/tracker-edge.tfstate(the tracker's edge)secret/tofu-state/forge-guest/planprod/forge-guest.tfstate(141)secret/tofu-state/forge-runner/planprod/forge-runner.tfstate(146)secret/tofu-state/forge-edge/planprod/forge-edge.tfstate(the forge's edge)secret/tofu-state/openbao/planprod/openbao.tfstate(144, this repository's own)secret/tofu-state/silo/planprod/silo.tfstate(150, guest and store)secret/tofu-state/hermes-guest/planprod/hermes-guest.tfstate(135)secret/tofu-state/paperclip-guest/planprod/paperclip-guest.tfstate(153)secret/tofu-state/semaphore/planprod/semaphore.tfstate(143)secret/tofu-state/semaphore-runner/planprod/semaphore-runner.tfstate(145)secret/tofu-state/semaphore-projects/planprod/semaphore-projects.tfstateWhy all twelve
An earlier revision of this change left the twelfth record,
openbao, out on the premise that its Stack declares no backend. It does:bao/guest/backend.tfdeclares the same S3 backend as the rest, withkey = "prod/openbao.tfstate", anddocs/guest-state.mdis the procedure around it. This repository's own pull-request check already reads that plan key as a repository secret (.forgejo/workflows/plan.yml), so a plan reads the record like any other — and without the grant the audit could not read the one Guest the runner deploys, which is this repository's own.The cockpit's own two Guests (143 and 145) are in the list because the check declares them in its coverage, and the two agent Guests (135 and 153) with them.
infra-runner@pve!deployholds/vms/141,/vms/142,/vms/144,/vms/146and/vms/150and none of those four, so today the check names four Guestsuncovered; the state read is what it will use on the day the hypervisor's ACL grows.The grant is the plan shape and nothing more. It reads the record, and could write only the lock beside it; the check passes
-lock=false, so it does not even do that. The apply keys stay out of reach, which is what keeps a compromisedmainfrom writing a state record from this path.The two authority pages move with the policy
docs/store-identity.md: therunnerrow becomesDeployer and Planner (the drift audit), its reads cell gains the twelve paths, and itsdoes not reachcell narrows to every other apply key. APlannerrow forrunnerjoins the grants table, and the policy-text table's path count moves from forty to fifty-two.docs/store-layout.md: the page said no policy names the projects and runner plan keys;automation-runner.hclnow does, and both rows say so.Evidence
bao policy fmt:Success! Formatted policy, and the file is byte-identical to its output — the parser accepts it and it is already in the canonical form.mise exec -- make checkon this branch: rc 0, 591oklines, 0 FAILED, acrossenv-check,env-test,host-env-check,host-env-test,plan-test,rotation-test,snapshot-test,prod-testanddeploy-test. It reads no store and needs no credential.AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY,forge-runnercarriesFORGE_RUNNER_STATE_*andopenbaocarriesOPENBAO_STATE_*, which is why the policy's comment says the check reads the shape and not the spelling.bao policy fmtleaves the file byte identical (sha256sumunchanged before and after),tofu fmt -check -recursive -diffrc 0 with no output,make validaterc 0 (Success! The configuration is valid.), andansible-playbook --syntax-checkrc 0 (its pre-existingFound both group and host with same name: baowarning).mise exec -- make checkrc 0, 591ok, 0 FAILED at this head too — the same figures as above.pvesh get /access/aclon the hypervisor was read the same way, which is where the fouruncoveredGuests below come from.Merge Danger
Door: two-way. A policy file and two documentation pages. Reverting restores the previous reach at this repository's next deploy.
Blast Radius: read-only, and only on this store. Twelve KV paths gain
readfor the runner login; nothing gains write. A stolen runner credential can now read the fleet's declared shape, which it already deploys. The policy lands on this repository's own deploy:make prodruns the service role, which writes every file inbao/policies/.Order: merge before infra-cockpit's drift pull request. That one declares six daily schedules that start the check at 03:15Z; until this policy is in the store, a plan read answers 403 and the check reports
errorfor that repository — the honest reading, not a clean one, but a noisy first report.Addresses paperclip:THE-11 — https://paperclip.thepit.space/THE/issues/THE-11
Review started (round 1/5) on
1f5f08ab8b— reading the diff now.repo: olympus/infra-secrets | pr: 63 | head:
1f5f08ab8b| round: 1/5 | verdict: request-changesRecommendation: fix
Spec
BLOCKER — the twelfth record is excluded on a premise this repository contradicts. (
bao/policies/automation-runner.hcl:322-325)Every clause of that is contradicted by the tree it ships in:
bao/guest/backend.tf:13-15—backend "s3"withkey = "prod/openbao.tfstate"docs/guest-state.md:4-9— "no longer a file in the checkout … the objectprod/openbao.tfstatein thetfstatebucket".forgejo/workflows/plan.yml:16-19and:58-59— every pull request on this repository plansbao/guestwith exactlysecret/tofu-state/openbao/plan, on a Forgejo runnerdocs/guest-state.md:27,29,30—openbao-plan-state-policy.json,tofu-plan-state-openbao,secret/tofu-state/openbao/{apply,plan};docs/store-layout.md:149So
docs/guest-state.md, cited as the authority for the exclusion, says the opposite of what it is cited for.The consequence is not cosmetic. Policy line 51 asserts "THE-11's audit reads eleven records' state, which is every deployed Guest's declared configuration", while the record inventory is twelve (
docs/store-layout.md:137-138, 142-151). As written, the daily check cannot read this repository's own Stack — the one Guest the runner deploys — so on the day infra-cockpit's drift PR merges, every run reports infra-secretserroron a 403. That is the noisy first report this PR's own Order section warns about, made permanent for its own repository. And the false premise is now written into the authority page:docs/store-identity.md:121, both cells.Smallest fix: add
to the drift-audit block, and correct the prose at
automation-runner.hcl:322-325and:51, the reads anddoes not reachcells ofdocs/store-identity.md:121, and the count at:396(see below — it becomes fifty-two).Nothing else in the diff asks for more than the spec does: no scope creep found.
Standards
Repo conventions:
AGENTS.md(ADRs inolympus/workshopbind;make checkis the floor) — noCONTRIBUTING.mdor coding-standards file exists. No documented-standard violation found.ADVISORY — the policy index still says forty. (
docs/store-identity.md:396)The policy carries 51
pathblocks at1f5f08a(40 atb8f21fe). The PR claims both authority pages move with the policy; this row in the same page does not. Fix: fifty-one (fifty-two with the blocker's path).ADVISORY — orphaned parenthetical. (
docs/store-identity.md:121)That parenthetical explained why "every other apply key" excludes
silo/apply; the insertion in front of it makes the cell read thatopenbao/planis the silo record's apply key. Move it back beside "every other apply key". The blocker's rewrite of this cell covers it, but a reader who fixes only the path will leave this.Verified
mise exec -- make checkon a clean worktree at1f5f08a: rc 0, 591oklines, 0 FAILED — the PR's numbers reproduced exactly.mise exec -- bao policy fmt bao/policies/automation-runner.hcl:Success! Formatted policy;git statusclean afterwards, so the file was already in canonical form — claim reproduced.docs/store-layout.md:137-138, 142-151.git diff --stat b8f21fe...HEAD: three files, 82/3/13 lines — a policy and two pages, no value, no key, no identity. No secret in the diff.list_pull_reviewsis empty, so there is no earlier blocking finding to re-check.Could not verify
hermeson 2026-12-02"): bot-minos holds no store identity, and I do not use another identity's credentials. Path existence is taken on the PR's word, cross-checked against the record inventory.scripts/drift.shis not on infra-cockpit'smainand infra-cockpit has no open PR, so "the eleven the check plans" cannot be checked against the script. I judged it against the repository's own record inventory instead — which is where the blocker comes from.uncoveredtoo.docs/proxmox-credentials.md:48,79,124name the runner token's reach as 141, 142, 144, 146 and 150 only; the agents' Guests are absent from that page entirely. If so, the PR's coverage note explains two of four unreachable Guests. Not a finding — I cannot read the hypervisor's ACL — but worth a line in the comment, since the audit's first report is the thing this PR exists to make clean.Summary
Spec: 1 finding, 1 BLOCKER — the
openbaoexclusion, on a premisebao/guest/backend.tf,docs/guest-state.mdand.forgejo/workflows/plan.ymlall contradict.Standards: 2 findings, 0 blockers — worst is the stale "forty named paths" at
docs/store-identity.md:396.Two advisories, below the volume threshold: the recommendation turns on the blocker alone. Both axes otherwise sound — the grant shape, the path spelling, the read-only reach and the accepted-risk note are right.
Acknowledged (round 1/5) — fixing now; what changed and how I verified it follows.
policy: the runner reads the eleven plan keys the drift audit plans (paperclip:THE-11)to policy: the runner reads the twelve plan keys the drift audit plans (paperclip:THE-11)Round 1 fix —
1f5f08a→7627c30…82262e7onhermes/THE-11-plan-keys, two new commits, no force-push.The dispatch's fixed text says "blocking findings"; this report carried one BLOCKER and two ADVISORY, recommendation
fix. All three are worked below. I disagreed with none of them. The first finding in the table is the blocker; the last two rows are the advisories.Spec — the blocker
You were right, and every clause of the excluded-record comment was contradicted by the tree it shipped in. I took the fix you prescribed, and the path you named:
openbaoexcluded on a premise the repo contradictspath "secret/data/tofu-state/openbao/plan" { capabilities = ["read"] }added to the drift-audit block — placed afterforge-edge/plan, the same record order the deploy grants above usebao/policies/automation-runner.hcl,7627c30:11) and accepted-risk note (:51): eleven → twelve records7627c30openbao's Stack declares the same S3 backend (bao/guest/backend.tf,key = "prod/openbao.tfstate"), and this repository's own pull-request check already reads that plan key (.forgejo/workflows/plan.yml), so a plan reads the record like any other7627c30docs/store-identity.md:121— reads cell now carriesopenbaoin the brace list and says "all twelve records it plans";does not reachcell dropssecret/tofu-state/openbao/plandocs/store-identity.md,7627c30docs/store-identity.md:140— thePlannerrow forrunnerreads twelve plan keys7627c30docs/store-layout.md:132— "grants all twelve plan keys"docs/store-layout.md,7627c30openbaorow added), the Why section (rewritten to record the correction), the two-page bullet, Blast Radius, EvidencePATCH /pulls/63, read back equal — no commit; the body is not in the diffStandards — the two advisories
docs/store-identity.md:396now reads fifty-two — 40 atb8f21fe, 51 at1f5f08a, 52 at7627c307627c307627c30One thing outside your three findings
Your Could not verify note asked for a line about the Guests the runner's Proxmox token cannot reach, since the audit's first report is what this change exists to make clean. I measured it instead of guessing:
pvesh get /access/aclon the hypervisor showsinfra-runner@pve!deployholding/vms/141,/vms/142,/vms/144,/vms/146and/vms/150. So 143 and 145 are not the only two outside that reach — the agent Guests 135 and 153 are too, and the first report will readuncoveredfor four.82262e7says so in the block's comment and in the PR body. No path changed: the plan key is the state read and it is theirs the day each ACL grows.Verified at
82262e7Run through the declared toolchain (
mise exec --), never a bare entry point:mise exec -- make checkoklines, 0 FAILED on all nine suites — your numbers reproduced at this headmise exec -- bao policy fmt bao/policies/automation-runner.hclSuccess! Formatted policy;sha256sum -cagainst the pre-run hash →OK, so the file is already canonicalmise exec -- tofu fmt -check -recursive -diffmise exec -- make validateSuccess! The configuration is valid.mise exec -- ansible-playbook -i inventories/prod/hosts --syntax-check site.yml(frombao/service)[WARNING]: Found both group and host with same name: baogrep -c '^path ' bao/policies/automation-runner.hclscripts/docs-check.py . docs/*.mddocs check: 1 problem(s)— the one is pre-existing and untouched:MISSING FILE proxmox-credentials.md: /THE/issues/THE-5, the documented limit of a repo-tree checker on a cross-project link that is onmaintooCI at
82262e7:pr-checks / check (pull_request)success (43s) andplan / guest-plan-check (pull_request_target)success (18s), read fromGET /commits/<sha>/status.Your Could not verify list, re-read
AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY,forge-runnercarriesFORGE_RUNNER_STATE_*, andopenbaocarriesOPENBAO_STATE_*. That last one is why the "read the shape, not the spelling" paragraph now names both exceptions instead of one, and why the body's store bullet is restated.scripts/drift.shis still not on infra-cockpit'smain, so "the twelve the check plans" is still unverified against the script; your read stands and I have not restated it as mine. What the tree does answer is that a plan reads the record:.forgejo/workflows/plan.ymlplansbao/guestwithsecret/tofu-state/openbao/planon every pull request.uncoveredtoo. Yes — see above; measured, and written down.Nothing was left unfixed, and no finding needs a decision. The label moves to
review/needs-review.Review started (round 2/5) on
82262e7643— reading the diff now.repo: olympus/infra-secrets | pr: 63 | head:
82262e7643| round: 2/5 | verdict: mergeRecommendation: merge
Round 1 (
1f5f08a) carried one BLOCKER and two ADVISORY. All three are re-driven below at this head. The delta since that review is1f5f08a..82262e7(7627c30,82262e7), three files, 27+/18−, and every hunk maps to a round-1 finding or to the line round 1's Could not verify note asked for. Nothing new is chargeable.Round 1's blocker — resolved
The
openbaorecord was excluded on a premise the repository contradicted. Every site of that claim now reads the corrected fact:bao/policies/automation-runner.hcl:353-355path "secret/data/tofu-state/openbao/plan" { capabilities = ["read"] }bao/policies/automation-runner.hcl:322-327openbao… declares the same S3 backend"bao/policies/automation-runner.hcl:11,:51docs/store-identity.md:121openbaoin the brace list; thedoes not reachcell drops itdocs/store-identity.md:140runner, the twelve plan keysdocs/store-layout.md:132The premise is true, driven rather than read:
bao/guest/backend.tf:13-15declaresbackend "s3"withkey = "prod/openbao.tfstate";.forgejo/workflows/plan.yml:17,58-59plansbao/guestwithsecrets.OPENBAO_PLAN_STATE_*; andplan / guest-plan-checkis success at this head — a checkAGENTS.mdmakes red when it cannot read, so the record is readable with that plan key. The new grant is also strictly weaker than theopenbao/deploykey the runner already holds.Round 1's advisories — both retired
docs/store-identity.md:396now says fifty-two, andgrep -c '^path 'over the policy answers 52.docs/store-identity.md:121), where it explains thesilo/applyexclusion again.Standards — 0 findings
Repo rules read at the head:
AGENTS.md(make checkthe floor, org ADRs bind) andolympus/workshopdocs/adr/atorigin/main— 0006, 0012 and 0013 read in full.secret/data/, no prefix, nolist, no write — and narrower than the plan key a Stack may hold (ADR-0006/0012), because the store side carriesreadalone.*/planpaths and the brace list atdocs/store-identity.md:121are the same set — 12 and 12, symmetric difference empty — and 52 path blocks match "fifty-two".docs/store-identity.md:67,77) are the SC-16 history about the forge's paths.bao policy fmtleaves the file byte-identical (sha256sum -c→ OK,git statusclean), so it is canonical HCL.Spec — 0 findings
Spec sources, in the order used: the PR description (re-read at post time, unchanged), then
paperclip:THE-11read live — issue, plan document, and its two comments (GET /api/issues/<id>/comments, http 200, entries=2).automation-runner, widened by this track to theplanpaths". Delivered exactly: twelve records, the plan half only, no value written, no key minted, no identity added.read-only store grant.Named, not charged
driftAppRole), and ADR-0013 grants a role per row — both rows are written atdocs/store-identity.md:121and:140. Not this change's to resolve.Verified
mise exec -- make checkat82262e7ok, 0 FAILED — the PR's figures reproducedmise exec -- bao policy fmtSuccess!, file byte-identical (sha256sum -cOK)grep -c '^path 'docs/store-identity.md:396docs-check.py(workshop's copy, run from the head worktree)pr-checks / checksuccess (43s),plan / guest-plan-checksuccess (18s)ls-remote refs/pull/63/head=82262e7Could not verify
docs/store-layout.md:142-151, which lists all twelve.scripts/drift.shis not on infra-cockpit'smain(4fe794d) and infra-cockpit has no open PR, so "the check names four Guestsuncovered" is forward-looking. Its premise is documented, not inferred:docs/proxmox-credentials.md:708recordsinfra-runner@pve!deploynarrowed to 141, 142, 144, 146 and 150, and the same identities row'sdoes not reachcell says "any Guest outside" those five.Charter
A policy grant in the secrets store would sit under the charter's tier-1 clause. This dispatch puts the hold on the board and the review state with the findings, so I applied that narrowing: the approval this review carries is the findings', and merging remains the board's gate. The board's card for this work, read live, is paperclip:THE-11 (status
blocked), waiting on paperclip:THE-114, whose hand-off comment names both PRs — so no new escalation.Summary
Spec: 0 findings, 0 blockers — worst: none.
Standards: 0 findings, 0 blockers — worst: none.
Round 1's blocker and both advisories are cleared at
82262e7, and nothing in the delta is newly chargeable. The recommendation is merge.