policy: the runner reads the control plane's own pair (THE-98) #58
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!58
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/the98-paperclip-credentials"
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?
What this is
The
infra-secretshalf of THE-98:infra-agents'paperclip/servicewrites 153's/opt/paperclip-ai/.envwhole, and two of its thirteen values can only come from the store — the database password the role sets on thepapercliprole, andBETTER_AUTH_SECRET, the secret the app's auth layer signs with. The runner's policy grows by two named paths, one per value, read-only.Companion:
olympus/infra-agents#4.The two paths
secret/services/paperclip/dbPAPERCLIP_DB_PASSWORDsecret/services/paperclip/authPAPERCLIP_BETTER_AUTH_SECRETTwo
pathblocks, not a prefix: the pair rotates apart from each other, andsecret/services/paperclip/*is not a subtree this policy should grant blind. The policy's comment carries the cost — a runner login can read the board's database password and the secret its auth layer signs with, so it can reach the database and mint a session. That is the machine the same policy already deploys, and the alternative is a role that cannot rebuild the board.The pages
docs/store-layout.md'ssecret/services/…table gains both paths, marked declared here and not yet seeded.docs/store-identity.md'srunnerrow names the pair in infra-agents' reach, and the grants table's count moves from thirty-eight to forty — read back against the policy itself, which now carries fortypathblocks.Evidence
mise exec -- make checkbao policy fmton a copygrep -c '^path "' bao/policies/automation-runner.hclNot run: applying the policy to the live store.
bao policy writeis the store's own act and this session holds no token; the store's service role appliesbao/policies/on its next run, or the Operator writes it by hand.Merge Danger
Door: none — the policy only widens a read set by two paths.
Order matters. Both paths must hold a value before
infra-agents#4's first credential guard passes, and seeding them is the Operator's: the database password is the one the role will set on thepapercliprole (the deploy moves the role and the renderedDATABASE_URLtogether), andBETTER_AUTH_SECRETis the value already in 153's live.env. Until both are written,make env ACTOR=runnerrefuses by name and the deploy stops before it touches the machine.Blast radius: the runner can now read the control plane's own pair. That is an increase in what a stolen runner credential reaches, stated in the policy's comment as the price of the grant.
Review started (round 1/5) on
312615af47— reading the diff now.olympus/infra-secrets#58 ·
policy: the runner reads the control plane's own pair (THE-98)· head312615af· round 1/5 · reviewerbot-minos· verdict mergeRecommendation: merge
What this is, and the contract I judged it against
The spec is the PR body — which is also the
infra-secretshalf ofpaperclip:THE-98, read live this round — together witholympus/infra-agents#4's Merge Danger and What this change does not do sections, which state the split between the two repositories: #58 grants the runner read onsecret/services/paperclip/dband…/auth; #4'senv.mapmaps those two paths toPAPERCLIP_DB_PASSWORDandPAPERCLIP_BETTER_AUTH_SECRET. Three files carry it: the twopathblocks and the header comment inbao/policies/automation-runner.hcl, the runner row and the grants count indocs/store-identity.md, and the two layout rows indocs/store-layout.md.Standards — 1 advisory
A1 · ADVISORY ·
bao/policies/automation-runner.hcl:7-8— the header comment's reach sentence has a punctuation slip and a stale pointer, both from this diff's own edit.The edited line now reads
its two Guests' state records; — from THE-97 —: a bare semicolon immediately before an em-dash, where the same list's third item reads; and — from THE-98 —. The base readstate records, and — from THE-97 —, so the change moved the comma and dropped the conjunction. One pass fixes both:, — from THE-97 —(or; and — from THE-97 —).The line beneath still says the ten THE-97 paths are
named at the end of this file. The last of them ends at:283and the file now closes with the THE-98 pair at:296-302, so the pointer sends a reader to the wrong block;named belowwould hold. Neither slip is functional —bao policy fmtparses the file and reproduces it byte-identically — so this is one finding: one editing pass, two slips.No documented standard is broken.
docs/store-layout.md:1-40(ADR-0007's layout rules) holds: one credential per path, two paths each holding one value,readonly, no prefix, nolist. The policy's accepted-risks block and the new block's own paragraph carry the cost in the shape THE-97 used.Spec — 1 advisory
Every requirement in the body is present: both named
pathblocks, read-only (bao/policies/automation-runner.hcl:296,:300); the twosecret/services/…rows (docs/store-layout.md:252-253); the pair named in the runner's reach (docs/store-identity.md:121); the grants count moved (:387). Nothing in the diff is unasked for — no extra path, no prefix, no capability beyondread.S1 · ADVISORY ·
docs/store-layout.md:252-253— "not in the store yet" is asserted without the read-back its neighbours carry.The page's own rule is that a path's writtenness is the ticket's claim, not the page's (
:26-30), and where its rows do state a store fact they name the read that proves it:secret/hermes/api-server,…/providers/ollama,…/telegram/bot,…/webhook,…/dashboardandsecret/paperclip/api/hermesall say(answers 404 on 2026-11-12)(:259-263,:274). These two rows state it bare, and this PR's evidence table records no store read (Not run: applying the policy to the live store). Drop the claim, or give it the same read-back as its neighbours — one clause per row.Verified
pathblocks, eachcapabilities = ["read"]grep -c '^path "'→ 40 at head, 38 at base566cebf; 40capabilities = ["read"]linesby name:cell, expanded every{a,b}group, normalised tosecret/…: 40 unique, set-equal to the policy — nothing in the row the policy lacks, nothing the other waydocs/store-identity.md:387at head vs566cebf:docs/store-identity.md:387("thirty-eight")bao policy fmtaccepted, unchangeddiffagainst the head file empty, sha25675aad867…; worktree clean afterwardsmise exec -- make checkgreenoklines endingrotation tests: all passed; the six targets are thecheckprerequisites atMakefile:349(env-check, env-test, host-env-check, host-env-test, plan-test, rotation-test)pr-checks / check (pull_request)success, run 140;plan / guest-plan-check (pull_request_target)success, run 139 — both at312615afolympus/infra-agents@688cefbenv.map:75-76—actors=pit,hermes,runner secret/services/paperclip/db PAPERCLIP_DB_PASSWORDand theauth/PAPERCLIP_BETTER_AUTH_SECRETrowCould not verify
bao policy writeis the store's service role's act; the author did not run it and neither did I, which the PR states plainly rather than implying otherwise.Named, not charged
docs/store-identity.md's The grants table still dates the runner's grant2026-11-05, grown 2026-11-09 and with SC-25. The diff does not touch that line, and THE-97 left it as it stood. Pre-existing.docs/store-layout.mdmaps the WR-27 inventory, which does not carry these two values, so its row accounting is unchanged; thesecret/services/…table states no total, so no arithmetic elsewhere moves.Summary
Standards 1 advisory, Spec 1 advisory, 0 blockers. Worst per axis: A1 — prose in a policy header that ships with the file it documents; S1 — a store-state claim with no read-back. Two counted advisories do not reach the volume trip, so the recommendation is merge; both are advice, and both fix in one pass.
Class and the board's gate. This is a tier-1 change under the reviewer charter: the secrets store's access policy, widening what the runner reads on .153, up to the board's database password and its session-signing secret. The dispatch puts that hold outside this review and ties the state to the findings, so the state above is the findings'. The board's gate is
paperclip:THE-102, created this round and read back (todo, assignee the Board's agent, no parent), which citespaperclip:THE-100— the same class one ticket earlier on #57, stillin_reviewwith the board's decision card unanswered. Merging remains the board's call, and the policy's own comment states the price of the grant.