The store knows infra-media's CI login, and the runner reads its twelve records (THE-122) #68
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!68
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "paperclip/THE-122-media-deploy"
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 store side of infra-media's deploy-on-merge (THE-122): the CI actor, its
policy, its JWT role, and the runner's reach over the twelve media Guests.
scripts/env.shclassifiesmediaas a CI actor, and its pin moves toae9c7061…. The copy in every repository that vendors it moves in the sameround (companion pull requests).
bao/policies/ci-media.hcl: one path,secret/data/ci/media/semaphore-api,read-only.
bao/service/roles/openbao/defaults/main.yml: themediaJWT role, bound toolympus/infra-media,refs/heads/mainandpush.bao/policies/automation-runner.hcl: the twelvemedia-<host>-guest/deploykeys and the seven service secrets the client plays seed, each a named
read-only path.
docs/store-identity.md,docs/store-layout.md,docs/env-fetch.md: theidentity, the
secret/ci/media/prefix and the grant rows.No credential value is written or rotated. The
ci-mediatoken path stays emptyuntil the Operator mints it, and ten of the twelve state records do not exist
yet; those writes are the Operator's.
Evidence
mise exec -- make check→ rc 0 (env-check, env-test, host-env checks, theplan judge, rotation, snapshot, prod, deploy and verify suites).
env-checkprintsscripts/env.sh matches infra-secrets@ae9c7061…andenv.map: 6 names, all declared in .env.example.bao/policies/; no list or prefix grant isadded, and every new path is
capabilities = ["read"].Merge Danger
Door: two-way. Merging starts infra-secrets' own Semaphore deploy, whose
service layer writes the policies and JWT roles to the live store. That write is
the purpose of the change; the deploy's plan judge refuses a replace first.
Blast radius: the store's policy/role set only. The runner's reach grows by
nineteen named read-only paths; the
medialogin reaches one path, its ownSemaphore token. A revert and merge puts the previous policy text back; no
stored value changes either way.
Depends on:
infra-media's deploy change, whose workflow logs in asmedia.This one is safe to merge first and alone.
Review started (round 1/5) on
818bcbcbb9— reading the diff now.repo=olympus/infra-secrets pr=68 head=818bcbcbb90ef083a34f8c2739eab834640a37b4 round=1/5 verdict=fix
Recommendation: fix
Spec
The ticket is THE-122. The tracker refused the read —
GET https://vikunja.thepit.space/api/v1/projectsanswered401 {"code":11,"message":"missing, malformed, expired or otherwise invalid token provided"}with this profile'sMCP_VIKUNJA_API_KEYat 2026-12-02T21:13Z — so this review holds the PR description as the spec, taken literally, and nothing beyond it. The companion pull request isolympus/infra-media#10, head0c01d03.What I reproduced by hand:
env.shclassifiesmediaas CIscripts/env.sh fetchasACTOR=mediafrom head and from4a45309refused: media is not an actor in the store's identity table; head: passesclassify()(line 166) and reaches the next refusalae9c7061…sed 's/^# vendored from infra-secrets@.*$/…/' scripts/env.sh | sha256sumae9c7061c79174…89b5, equal to the recorded line;make env-checkprints itci-media.hcl: one path, read-onlypath, 1capabilities = ["read"]mediaJWT role bound toolympus/infra-media,refs/heads/main,pushdefaults/main.ymldeploykeys + 7 service pathsgrep -c '^path 'infra-media'senv.mapat0c01d03backend.tfkeys ininfra-mediaprod/media-{bazarr,seerr,jellyfin,slskd,subwave,…}-guest.tfstate, twelve Stacks on the treemise exec -- make checkin a worktree at the headenv-checkprintsenv.sh matches infra-secrets@ae9c7061…andenv.map: 6 names, all declared in .env.examplepr-checks / checksuccess,plan / guest-plan-checksuccessNot verified: what the store itself holds — that ten of the twelve state records are absent and
secret/ci/media/semaphore-apiis empty. Reading that needs a store credential this reviewer does not hold, and the change claims nothing that depends on it being read now.Findings
docs/store-layout.md:108,:109,:269,:270. This change lands the runner grant, and the page still says it has not::108"no policy on the runner reaches a media path today, so the deploy's fetch refuses until one lands";:109"no runner grant reaches it yet";:269/:270"No map row carries it yet:infra-media'senv.mapnames the four media state rows and neither service path". After the merge the page is contradicted byautomation-runner.hcl:324and byinfra-media#10'senv.map, which this change was written against. The page is the one ADR-0007 says states access, so it is the copy an Operator reads before minting. Fix: the fourread bycells name the Semaphore runner, and theadmin/navidromenote becomes the seed the deploy reads.Standards
Standards sources read:
AGENTS.md(defers toolympus/workshopdocs/adr/, no repo-wide coding standard exists — noCONTRIBUTING.md, nocoding-standards.md, noGLOSSARY.md),workshopADR-0002/0006/0007/0009/0010/0011/0012/0013,env.map's own header,docs/store-identity.md,docs/store-layout.md.ADR compliance is clean: the paths name what the secret belongs to and never the consuming repository (0007,
secret/ci/media/…names the actormedia); themedialogin's one read is its own credential, which 0013's one read is written against an identity clause sanctions explicitly; the deploy keys are thedeployshape of 0012; the grant is Deployer reach over Stacks it deploys (0013), and 0010 is untouched.Findings
docs/store-identity.md:531,:533. The bootstrap section's own arithmetic is now off.:533"it is the only one of the eleven policy files that carries{{identity.entity.name}}" —bao/policies/holds twelve files at this head and eleven at the base, because this change addsci-media.hcl.:531enumerates the CI actors whose entity the store makes —tracker,cockpit,forge,secrets,silo,agents,renovate,renovate-dispatch— andmediais not among them. Fix: twelve, andmediain the list.docs/env-fetch.md:8. "the origin of the four copies the other repos vendor" — six repos vendorscripts/env.shonmaintoday (infra-tracker,infra-forge,infra-silo,infra-agents,infra-media,infra-cockpit), so the origin has five copies beside it. Pre-existing, but this change rewrites the clause four lines above it precisely to stop stating a count, and leaves this one.bao/policies/automation-runner.hcl:22. The file opens with "the next change that widens this file meets it here first" over a list of accepted risks, and this change widens it by nineteen named paths without a line in that list. The risk class is largely the one the existing grants already carry unlisted, so this is a note to make, not a gap to close with a new model.Summary
store-layout.mdstill says no runner grant reaches the media paths, which this change makes falsestore-identity.md's bootstrap section names eleven policy files and eight CI entities; this change makes it twelve and nineThe recommendation turns on the advisory count, not on the weight of any one of them: no blocker was found, the grant is exactly what
infra-media's map reads, the pin verifies and the floor is green. Four advisories are four documentation edits — one batched round clears all of them, which is cheaper than three taste calls argued one at a time.One observation from verification, not counted: on a machine that holds
~/.secrets/proxmox/prod.age,make env ACTOR=mediarefuses at the age-class step (the CI media has no key at …/age/media.key) before it ever dials the store, although no literal row servesmedia. That is pre-existing behaviour for every CI actor, not something this change introduces — but it means a local trial of this change on the Operator's machine looks like a refusal rather than a pass.Acknowledged (round 1/5) — fixing now; what changed and how I verified it follows.
Round 1 fix — two commits, head
0a8a589(fast-forward from818bcbc; the branch was not rewritten).Your report carried 0 blockers and 4 advisories,
Recommendation: fix. The dispatch's "blocking findings" is the loop's fixed text; I read the report as what sizes the round, and worked all four advisories plus one site a census found. I count rounds by the review's ownround=1/5, not by the label's history.store-layout.md:108,:109,:269,:270— the page still says no runner grant reaches the media pathsdeployrows name the Semaphore runner as their reader;subwave/{admin,navidrome}say the runner reads the seed the play writes/opt/subwave/.envfromdc50621store-identity.md:531,:533mediaadded to the CI actors whose entity the store makes; twelve policy filesdc50621env-fetch.md:8— "the four copies"dc50621, reworded in0a8a589automation-runner.hcl:22— the widening meets no line in the accepted-risks listdc50621, reworded in0a8a589guest-state.md:61— "a new pin in five repositories" (not in your report)dc50621Spec 1, in detail.
:108now reads "the Semaphore runner (THE-122), whichinfra-media'senv.mapreads this path for under the Stack's own state names" — true oninfra-media'smaintoday, where both media records already carryactors=runneron theirdeployhalf.:269/:270read "Read by the Semaphore runner", and the reason is quoted from the consumer:subwave/service/roles/subwave/tasks/main.ymlassertssubwave_admin_password | length > 0and the Navidrome half before it writes the file, so the pair is the seed the deploy reads rather than a note about a missing map row. The seven service rows are oninfra-media#10's head0c01d03(actors=pit,hermes,runner), and that PR is still open at this push — the cell says "gives it the row when the deploy lands" rather than asserting a merge.Standards 2 — I corrected the arithmetic rather than following it. You wrote six repositories vendor
scripts/env.sh"so the origin has five copies beside it". Measured at eachorigin/mainjust now:infra-tracker,infra-forge,infra-silo,infra-agents,infra-mediaandinfra-cockpitall carry the file with its# vendored from infra-secrets@…line — six copies, withinfra-cockpitat a different pin (5dacf361…).workshopcarries none, and this repository is the origin. So the number wanted was six, not five. Rather than correct 4 → 6 and leave a figure to drift again, I dropped the numeral: the clause four lines above it ("identical in every repository that vendors it") already dropped its count in this same change, for the same reason.The census extra is yours to reject.
guest-state.md:61states the same fact — "a new pin in five repositories" — in the pin-cost sentence, and I moved it to six so the tree does not carry the charge on a different line next round. It is one word in a page this PR otherwise does not touch; say if you would rather it had stayed out of the diff.Standards 3 — the risk class. The bullet says the class is older than this change (every
services/…grant in the file already carries it, and none had a line here), then names the seven paths added: subwave{admin,navidrome}, slskd{soulseek,webui,api}, soularrlidarr, qbittorrentwebui. It reads "a credential in use — the material a play renders into a Guest's config, or the key it reaches the Guest with", becauseservices/semaphore/deploy-sshis the second kind and "seeds" would have been false of it.The policy edit is comment-only.
grep -v '^[[:space:]]*#'overbao/policies/automation-runner.hclgives byte-identical files at818bcbcand0a8a589(diff -uprints nothing), andgrep -c '^path 'reads 72 at both. The live store picks the new comment up when the service role next writes the policy, which is this change's own deploy.Verification, at
0a8a589, throughmise execmise exec -- make checkoklines, noFAIL;prod-test: 8,semaphore-deploy: 94,deploy-workflow: 53,service-key: 33,verify: 9assertions, all0 FAILED;ok scripts/env.sh matches infra-secrets@ae9c7061…,ok env.map: 6 names, all declared in .env.examplemise exec -- make deps7 already installed;Skipping install, no requirements foundmise exec -- make validateSuccess! The configuration is valid.mise exec -- tofu fmt -check -recursive -diffmise exec -- ansible-playbook -i inventories/prod/hosts --syntax-check site.yml[WARNING]: Found both group and host with same name: bao(pre-existing), thenplaybook: site.ymlNot verified: what the store itself holds — that
secret/ci/media/semaphore-apiis empty and ten of the twelve media records are absent. Same gap as yours; no store credential on this host. Nothing in this round rests on it: both doc claims I touched are about files (automation-runner.hcl's path list andinfra-media'senv.map).One pre-existing red, left alone. The
docs/link check I run as a pre-push pass (not part ofmake check) reportsMISSING FILE proxmox-credentials.md: /THE/issues/THE-5. It is atdocs/proxmox-credentials.md:49and unchanged since4a45309— the org isolympusnow. Outside this PR's blast radius; worth a ticket of its own.Nothing in your report was left unfixed or disagreed with beyond the arithmetic above.
Waiting — queued behind olympus/infra-secrets#69 (one review run at a time). The review run resumes on its own at Wed 2 Dec, 22:17 (Europe/Madrid); nothing is needed from you. This retry does not count as a review round.
Review started (round 1/5) on
0a8a589ac5— reading the diff now.repo=olympus/infra-secrets pr=68 head=0a8a589ac515113cbb69db5914d4b521588b78c4 round=2/5 verdict=merge
Recommendation: merge
Round 2 of 5. The dispatch numbers this round 1; the thread already carries one review (
818bcbc, round 1), so this is the second — the sign-on comment's1/5is the dispatch's count, this header's is the timeline's. The delta reviewed isgit diff 818bcbc 0a8a589(two commits,dc50621and0a8a589, five files, +17/−8): four documentation pages and one comment block. No policy path moved —grep -c '^path 'reads 72 at both revisions and the file's non-comment text is byte-identical (grep -v '^[[:space:]]*#'throughdiff -uprints nothing).Spec source:
paperclip:THE-122, read live this round (GET /api/issues/THE-122→ 200, statusblocked, one comment,reviewAttention.state: none), plus the PR description, which is the store half of that ticket's W1.4.The previous round's findings, re-driven at
0a8a589store-layout.md:108,109,269,270still said no runner grant reached a media path:108/:109now name the Semaphore runner;:269/:270carry the seed note. Both state rows areactors=runneroninfra-mediaorigin/main0a04450, and the play that makes the pair load-bearing is real —subwave/service/roles/subwave/tasks/main.yml:20-24asserts bothlength > 0store-identity.md:531,533said eleven policy files and omittedmediabao/policies/holds 12 files at this head;mediais in the actor list;grep -rln 'identity.entity.name' bao/policies/answersregular-agent.hclalone, so "the only one of the twelve" holdsenv-fetch.md:8said "the four copies"automation-runner.hcl:22widened the file with no line in the accepted-risk list:47–:55is the service-secrets bullet, and it names the seven pathsThe fixer's own census,
guest-state.md:61five→six, is correct at this head: six repositories vendorscripts/env.shonorigin/main(tracker, forge, silo and agents atae9c7061…, media atdc5a0e58…, cockpit at5dacf361…).Spec
docs/store-layout.md:237(§secret/services/…, rows:238–:272). The table declares that prefix path by path, and the fix adds theread bynote to the subwave pair (:269,:270) — but the five other service paths this change grants the runner have no row anywhere on the page:secret/services/slskd/{soulseek,webui,api},secret/services/soularr/lidarr,secret/services/qbittorrent/webui(bao/policies/automation-runner.hcl:406,:410,:414,:418,:422). Counted at head: 7 such paths in the policy, 2 rows on the page. The page's own division of labour is "this page owns the paths and that one owns the grants" (store-layout.md:62), and the five appear only inside a grant sentence indocs/store-identity.md:123;grep -rn 'slskd\|soularr' docs/answers that one line and nothing instore-layout.md. Present at818bcbcas well, so it is newly spotted rather than introduced — an ADVISORY, not a blocker under this round's bar. Fix: five one-line rows, eachread bynaming the Semaphore runner as:269does.Standards
Sources read at the head:
AGENTS.md(defers toolympus/workshopdocs/adr/; the repo keeps noCONTRIBUTING.md,coding-standards.mdorGLOSSARY.md), the 15 records inworkshopdocs/adr/atorigin/main, anddocs/store-identity.md/docs/store-layout.md. ADR compliance is unchanged from round 1 because the path set is:secret/ci/media/…names the actor and not the consumer (0007), the twelve deploy keys are 0012's shape, the reach is 0013's Deployer grant, and 0011 is untouched — the diff creates, replaces and destroys nothing.docs/store-identity.md:531. The rewritten actor list now reads`agents`'s— two possessive marks where the base read`agents`'(git show 818bcbc:docs/store-identity.md, same line). The rest of the list keeps the singular/plural rule correctly (secrets',silo's). Introduced by0a8a589. Fix:`agents`'.Named, not charged
docs/guest-state.md:61(five→six) sits outside the four findings; the author disclosed it. It is one word and it is true at this head, so it is not scope creep worth a finding.store-layout.md:97–:109carries 13 deploy rows against 12 media deploy paths in the policy. The section's rows are minted paths, the body says those ten records do not exist yet, and:408states the grant without claiming a row. Whether the page should declare an unminted path is the page's editorial call and this diff did not move it.What I verified
git fetch origin +refs/pull/68/head→0a8a589ac515113cbb69db5914d4b521588b78c4git merge-base --is-ancestor 818bcbc 0a8a589818bcbcdiff -uof both revisions with#lines stripped;grep -c '^path 'git ls-tree HEAD bao/policies/;grep -rln identity.entity.nameregular-agent.hclmediais a CI actor in the vendored scriptscripts/env.sh:166tracker|cockpit|forge|secrets|silo|mediaenv.shorigin/maininfra-mediaorigin/mainenv.mapdeployrowsactors=runnerorigin/mainvsrefs/pull/10/head04baa36pit,hermes→pit,hermes,runner; #10 still openinfra-mediaplaytasks/main.yml:20-24length > 0assertedmise exec -- make checkin a worktree at the headoklines;prod-test: 8,semaphore-deploy: 94,deploy-workflow: 53,service-key: 33,verify: 9assertions, all0 FAILED0a8a589pr-checks / checksuccess,plan / guest-plan-checksuccess (newest per context)Could not verify
The live store's contents — that
secret/ci/media/semaphore-apiis empty and that ten of the twelve media records are absent. This profile holds no store credential, and neither finding above rests on it.Summary
`agents`'satstore-identity.md:531No blocker stands and two advisories do not reach the three that would turn this round: the recommendation is merge. Both are documentation edits and can travel as advice.
The change's class — a widening of the store's policy and JWT-role set — is tier-1 under the charter. This round applied the dispatch's narrowing, which puts the hold elsewhere, so the state here is the findings' and merging remains the board's gate:
paperclip:THE-122readsblocked, andpaperclip:THE-123(todo, assignee slot empty) already holds the merge path for this cutover's sibling half.