feat: infra-cockpit's deploy gets a CI login and its own Proxmox token (SC-14) #24
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!24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/sc14-cockpit-ci-login"
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-14: infra-cockpit's Forgejo Actions deploy gets a CI login to the store and its own Proxmox token. This is the repository half, and it is live: the policy, the CI role and the Proxmox token were applied on 2026-11-04, and the tree now records what the store and the cluster hold. What stays the Operator's is minting the three Semaphore secrets and the runner record's
deploystate key, which remain declared and unminted; the semaphore record'sdeploykey was minted on 2026-11-04 and the tree records it.Summary
The role's one JWT role becomes a list, and
cockpitjoins it:store.yml7e reads each role back and writes only the ones that differ, the same way the AppRole roles are handled.ci-cockpitreads nine named paths, read-only, with no list:Two changes from the ticket text, both decided by the Operator in the session:
secret/services/semaphore/*. The spec puts the Semaphore runner's SSH key atservices/semaphore/deploy-ssh, root on 141, 142, 144, 146 and 150. The prefix would hand it to cockpit, and ADR-0007 forbids a prefix with an exception.…/deploy. The ticket names no path. ADR-0012, Accepted 2026-11-04, adds thedeployshape to the two ADR-0006 counted, so the third shape is the workshop's record and not a departure the docs make ahead of it: the semaphore record's key is minted (2026-11-04), the runner's is not.Docs:
store-identity.md: thecockpitrow, its policy row, and the paragraph saying both are in the live store.store-layout.md: the new paths, and the counts they move.proxmox-credentials.md: theinfra-actions@pve!deploymint, its check and its revocation — the commands that ran.env-fetch.md: the actor table and the CI paragraph say the role is in the store; both samples of the fetch's pin move with the repin.Evidence
Applied, and read back. The store and the cluster carry the change as of 2026-11-04.
bao policy read ci-cockpit→sha256sumagainstbao/policies/ci-cockpit.hclfc0de6d2…, 61 lines on both sidesbao read -format=json auth/jwt/role/{tracker,cockpit}tracker→ci-tracker, 600 / 1200,olympus/infra-tracker·refs/heads/main·push;cockpit→ci-cockpit, 600 / 1200, the same three claims forolympus/infra-cockpitpvesh get /access/users/infra-actions@pve/tokendeploy,privsep: 1,expire: 0, commentSC-14: cockpit deploy of 143 and 145Rehearsed before applying. Against a throwaway OpenBao 2.7.1 dev server with a local stand-in for Forgejo's OIDC issuer: the role's own
store.ymlran, then forged Forgejo-shaped tokens logged in.Before (this repo's
main):After:
Upgrade. On a store built by
main's role, this branch's check run names exactly two writes, sotrackeris not rewritten:Floor. Re-run at this head, after the
mainmerge:mise exec -- make checkrc 0 (env fetch: every case passed.),mise exec -- make validate→Success! The configuration is valid.,mise exec -- tofu fmt -check -recursive -diffrc 0 and silent, andmise exec -- ansible-playbook -i inventories/prod/hosts --syntax-check site.ymlinbao/servicerc 0 (itsFound both group and host with same name: baowarning is pre-existing).Not verified: the consumer's end to end.
infra-cockpitat3d5be46(main) does carry anenv.mapand a workflow — the map sourcessecret/services/semaphore/{config,admin}andsecret/tofu-state/semaphore/applyfor any actor, andpr-checksrunsmake checkand reads no store. Neither is the deploy: the map carries nocockpitrow, and the row that mapssecret/tofu-state/semaphore/applyis outsideci-cockpit's nine paths, so acockpitfetch there refuses on that row until the map names the deploy's own reach. Also unverified: the four declared-but-unminted paths, and a real cockpit login, which no run has made.Merge Danger
Door: two-way
Merging changes no live system. The store already holds
ci-cockpitandauth/jwt/role/cockpit, written on 2026-11-04 from this repository's files, so the nextmake servicewrites neither — a check run there reports nothing to write. To undo them, runbao delete auth/jwt/role/cockpitandbao policy delete ci-cockpit, then revert this PR.Blast Radius: tracker's CI login
tracker's role moves into a list. It is in the store unchanged (ci-tracker, 600 / 1200, the same three claims), andstore.yml7e writes only the roles that differ. A typo there would still surface as tracker's push-to-main jobs failing atlogin.Review started (round 1/5) on
7809f3b762— reading the diff now.7809f3b762e7c1ea6474Applied live, 2026-11-04, from this branch's files. The store and the cluster now carry the change; the repo says so.
Store (written by hand from
bao/policies/ci-cockpit.hcland this branch's defaults, with the root token on the guest):ci-cockpitpolicy uploaded;bao policy read ci-cockpitis byte-identical to the file.auth/jwt/role/cockpitcreated: TTLs 600/1200,token_policies [ci-cockpit],bound_audiences [openbao], claims{repository: olympus/infra-cockpit, ref: refs/heads/main, event_name: push},user_claim sub.trackeruntouched.store.ymlagainst the live store afterwards:changed=0, both CI roles read back, "what a real run would write" skipped — no pending writes. The repo and the store agree.Policy reach, as a token holding it (minted with
-policy=ci-cockpit -no-default-policy, then revoked):smtp,watchdog-token,runner-registration,ci/tracker/ssh-keyandhomelab/proxmoxdo not exist in the store, so their probes answer 404, not 403; the policy grants the three Semaphore ones by name, as written.Proxmox —
TofuGuestInPlace(created),infra-actions@pve, tokendeploy(privsep 1, no expiry), ACLs on user and token:/vms/143and/vms/145TofuGuestInPlacepropagate 0;/storage/synologyTofuDatastoreAuditand/sdn/zonesTofuSdnUse, propagate 1. The value went from the mint intosecret/ci/cockpit/proxmox-tokenin one pipe, never through a shell argument or a file I kept; the store read-back matched by digest; the node's copy was shredded. The first mint's value was lost to a parser slip and that token was deleted before re-minting.Proof with the token's own header:
Two corrections the live read forced on this branch's docs (committed as
e7c1ea6):/sdn/zonespropagate 1, not/sdn/zones/localnetwork/vmbr1. The cluster has no SDN zones (/cluster/sdn/zonesis[]), and every working credential here uses/sdn/zones.TofuDatastoreAuditandTofuSdnUseare propagate 1, matching the existing credentials; only the/vms/<id>rows are propagate 0.Deploy SSH key: an ed25519 key, public half in 143's
/root/.ssh/authorized_keysunder the commentsc14-cockpit-deploy, private half atsecret/ci/cockpit/deploy-sshfieldCI_SSH_KEY. Proved from this workstation with the ssh config bypassed: 143 answers, 142 and 144 refuse. The local private key was shredded. Remove with:sed -i '/sc14-cockpit-deploy/d' /root/.ssh/authorized_keyson 143.Not done, and why:
deploystate keys are not minted. No repo declares adeploy-shape Silo policy file;semaphore/guest/state-policy.jsonin infra-cockpit is anapplyshape, and minting a key against a policy no file declares is the drift the audit exists to catch. Unblocked by that file in the repo that owns the record.cockpitentity is not named: the store makes it on the first real login, and no real Forgejo token has been issued yet.env.mapstill mapssecret/tofu-state/semaphore/applyand has nocockpitrow; until it does, its fetch ascockpitwill 403 on that row.olympus/infra-secrets · PR #24 · head
e7c1ea6· round 1/5Dispatch named
7809f3b; the head moved toe7c1ea6while I was reading it. The delta (git diff 7809f3b e7c1ea6) is docs only —bao/andscripts/are byte-identical — and every finding below is re-derived againste7c1ea6.Recommendation: fix
No BLOCKER on either axis. Four ADVISORY findings; the recommendation turns on their count, not on their weight (see the close).
What I verified
trackeris untouchedtasks/store.ymldriven directly: check, real, real again, checkpolicy ci-cockpit,jwt/role/cockpit; the real run wrote them; the next runchanged=0; check mode afterwards reported nothing to writebao read auth/jwt/role/{tracker,cockpit}on that storeci-tracker/ci-cockpit,[openbao], ttl 600 · max 1200, claimsrepository/ref/event_nameas specifiedPOST /v1/auth/jwt/login[ci-cockpit, default];pull_request,pull_request_target,refs/heads/feature, another repository, wrong audience, unknown role → 400ci-cockpitreads its nine paths and nothing elseservices/semaphore/{deploy-ssh,webhook,config-extra},homelab/proxmox/runner-token,tofu-state/*/{apply,plan},silo/*,ci/tracker/*→ 403; list 403; write 403tracker's login is unchanged[ci-tracker, default]; reads its own path, 403 on cockpit'smake check;mise exec -- ansible-playbook … --syntax-checkpvesh get /access/{users,acls,roles}andpveum user token permissionsinfra-actions@pve, tokendeployprivsep 1 expire 0;TofuGuestInPlace= the seven privileges, noVM.Monitor; ACL rows/vms/143,/vms/145propagate 0,/storage/synology,/sdn/zonespropagate 1, on user and token; the permissions table reads exactly the page's "want" linepct exec 143 -- grep -c sc14-cockpit-deploy /root/.ssh/authorized_keys;pct status 145nodes/burns/lxc/145.confabsent, asstore-layout.md:215saysStandards
ADVISORY —
scripts/env.sh:383-386: the comment still describes the pre-change store. It reads "The store holdstracker's today andcockpit's arrives with its deploy ticket, so acockpitfetch refuses atloginuntil then". At this head the store holds both roles (docs/store-identity.md:20), so the sentence is false the moment this lands. This PR updated the same claim indocs/env-fetch.mdand left the code's copy. Clears with: reword those lines to the completed state, or drop the parenthetical.ADVISORY — the branch is one commit behind
main, and ADR-0002 says a change behindmaincannot merge.merge-baseisf4c07aa;mainis ate6e11ad(docs: the tracker names its SC identifier…). The delta isAGENTS.mdanddocs/agents/issue-tracker.md, no overlap with this PR, andgit merge-treeis clean. Clears with: mergemainin before the merge.Spec
No gap against SC-14's four acceptance criteria. Two deliberate departures from the ticket's literal text are both narrowing and both argued in the body and in
bao/policies/ci-cockpit.hcl: named paths instead ofsecret/services/semaphore/*(ADR-0007 forbids a prefix with an exception, and the runner's root key sits under that prefix), and the state keys named…/deploybecause the ticket names no path.ADVISORY —
docs/env-fetch.md:84-86: the same stale claim, in a file this PR edited. "cockpit's reaches the live store on the nextmake service, and until then acockpitfetch refuses atlogin" now contradicts this PR's owndocs/store-identity.md:20-23, which reports the role written on 2026-11-04. A reader following env-fetch.md will believe the fetch cannot log in. Clears with: one sentence naming the role as present, as store-identity now does. The sentence also wants its noun back — "cockpit's reaches".ADVISORY — the PR description still describes the pre-
e7c1ea6state. It says "Applying it to the live store, runningpveum, and minting the values are the Operator's", listsproxmox-credentials.mdas "written for the Operator and not run", and closes "Not verified: the live store, the cluster … and thelocalnetwork/vmbr1zone path".e7c1ea6says the opposite in three places: the policy and role were written on the live store by hand (store-identity.md:20), the mint's commands "are the ones that ran" (proxmox-credentials.md:100), and the zone path is gone. Merge Danger → "The nextmake servicewrites the policy and the role" is now false — the store already holds them, so that run writes neither. The blast-radius paragraph still holds. Clears with: re-state the Evidence and Merge Danger sections againste7c1ea6— what has already happened, and what the nextmake servicedoes now.Checked, no finding
bao/service/roles/openbao/tasks/store.yml:262-320— per-role read-back, theopenbao_jwt_role_writesaccumulator and the write loop are the AppRole shape applied to a list; an empty list is a skip, not a change. Convergence and check mode both reproduced.bao/policies/ci-cockpit.hcl— ninesecret/data/paths,readonly; matchesdocs/store-identity.md:142's "nine named paths" and the identities row.docs/store-layout.md:82-83— that ADR-0006's Update when "names exactly this run" is true: its second trigger is "a run appears that needs a third shape". Thedeploykeys stay declared and unminted, and the record stays Proposed.docs/store-layout.md:309— "61 paths", two written, five not: the tables agree.7809f3b) grantedTofuSdnUseon/sdn/zones/localnetwork/vmbr1, a zone this cluster does not have (pvesh get /cluster/sdn/zones→[]; no/etc/pve/sdn/zones.cfg; 143's Stack uses a plain bridge,infra-cockpit/semaphore/guest/variables.tf:35).e7c1ea6replaces it with/sdn/zones, which is what the four sibling tokens carry and what the cluster now holds. Resolved in the head I reviewed; not charged.Not verified
bao/policies/ci-cockpit.hcl, and thatsecret/ci/cockpit/deploy-sshholds a field namedCI_SSH_KEYare the author's claims. The cluster half of the same commit I did verify.infra-cockpitcarries noenv.mapand no workflow at its current commit, so the actor and field names this PR relies on have nothing to agree with yet.deploystate keys — are declared, not minted, as the pages say.Summary. Standards: 2 findings, worst ADVISORY (the stale comment; the branch one commit behind
main). Spec: 2 findings, worst ADVISORY (the stale sentence inenv-fetch.md; the description written for a head that no longer exists). Nothing blocks: no defect in the code, the policy or the runbook survives ate7c1ea6, and every claim this PR's body makes that I could reach reproduced. Thefixabove is the volume rule — four advisories, all one small commit — not a defect.Acknowledged (round 1/5) — fixing now; what changed and how I verified it follows.
Round 1 fix — all four advisories cleared. Nothing to disagree with; no finding left alone.
No BLOCKER was raised, and the recommendation was
fix, so all four ADVISORY findings are addressed. Head is011d7f3.scripts/env.sh:383-386described the pre-change store3c3a58a,011d7f3openbao_jwt_roles; the body hash moved, so the pin did toomain(ADR-0002)396e316origin/mainmerged in (AGENTS.md,docs/agents/issue-tracker.md; no overlap, clean)docs/env-fetch.md:84-86repeated the same stale claim, with its noun missing3c3a58astore-identity.mde7c1ea6state, and Merge Danger was false1 and 3 — one fact with three sites, and a fourth the finding did not name. Beyond the two lines quoted, the same pre-change claim was the
cockpitrow of the actor table inenv-fetch.md(yes, once make service has written its role). The census:grep -rn "arrives with\|until then\|deploy ticket\|has written its role" --include='*.md' --include='*.yml' --include='*.sh'now returns onlybao/recipients/README.md:27-28, which is about the Semaphore runner's seed and is still true.The
env.shedit forced a repin, since its second line is the SHA-256 of its own body — the value is the oneenv-check's FAIL line printed, anddocs/env-fetch.mdquotes the pin twice, so both samples moved with it.011d7f3drops a date I had first put in the script comment:env.shis vendored verbatim into four repositories, so the date belongs on the page, which keeps it.2 — the merge.
merge-basewasf4c07aa;mainise6e11ad. The merge is396e316,--no-ff, andgit merge-tree --write-treewas clean before it was made.4 — the body. Evidence now reports what has already happened, and Merge Danger says the next
make servicewrites neither the policy nor the role. The read-back below is what makes that true rather than asserted.Verified
./scripts/env.sh checkok scripts/env.sh matches infra-secrets@5dacf361…·ok env.map: 2 names, all declared in .env.example· rc 0mise exec -- make checkenv fetch: every case passed.· rc 0mise exec -- make validateSuccess! The configuration is valid.· rc 0mise exec -- tofu fmt -check -recursive -diffmise exec -- ansible-playbook -i inventories/prod/hosts --syntax-check site.yml(inbao/service)playbook: site.yml· rc 0, with the pre-existingFound both group and host with same name: baoYour Not verified: the live store can be closed for the parts this PR asserts. Read-only, on
burns(pct exec 144, root token into a variable, metadata and hashes only — no values printed):and
sha256sum bao/policies/ci-cockpit.hclis the samefc0de6d2…, so the store's text is the file's.pvesh get /access/users/infra-actions@pve/tokenreads{"tokenid":"deploy","privsep":1,"expire":0,"comment":"SC-14: cockpit deploy of 143 and 145"}.The served page was checked, not the local one:
docs/env-fetch.mdread at011d7f3over/api/v1/repos/…/raw, rendered throughPOST /api/v1/markdown, then unescaped and whitespace-collapsed — the new sentences present, the three old ones absent, one table with a constant 5 cells per row, and thestore-identity.mdlink resolving200at/src/commit/011d7f3/docs/store-identity.md.Left alone, on purpose
c96b18d6…in the FAIL sample ofenv-fetch.mdstays. It is the illustrative wrong value in that sample, not a pin the repo carries; only thethe body hashes tohalf is real.env.shstill carry the old pin. A repin here is a new pin there, taken in each repository's own change and never edited by hand — out of this PR's blast radius.infra-cockpithas noenv.mapand no workflow at its commit), the five declared-but-unminted paths, and a realcockpitlogin, which no run has made yet.Review started (round 2/5) on
011d7f3bf6— reading the diff now.olympus/infra-secrets · PR #24 · head
011d7f3· round 2/5Recommendation: merge
No BLOCKER. Round 1 raised none either — four advisories, and a
fixthat turned on their count. All four are closed at this head. The delta sincee7c1ea6isdocs/env-fetch.md,scripts/env.sh(a comment and the pin), and themainmerge;bao/is byte-identical to the head round 1 executed, so I re-derived its behaviour here rather than inheriting that run.Round-1 advisories — verified closed
3c3a58a,011d7f3scripts/env.sh:383-386now reads "Both roles the store holds are named that way —trackerandcockpit, fromopenbao_jwt_roles". The sentence it replaced no longer exists anywhere:grep -rn "arrives with|until then|deploy ticket|has written its role"over*.md*.yml*.shreturns onlybao/recipients/README.md:27-28, which is the runner's unseeded seed and still true.396e316git merge-base --is-ancestor e6e11ad 011d7f3→ true, so ADR-0002's clause holds. The merge also moved the diff base: the PR no longer carriesAGENTS.mdanddocs/agents/issue-tracker.md, which aremain's.3c3a58a,011d7f3docs/env-fetch.md:84-88now says both roles are in the live store, dated 2026-11-04, and linksstore-identity.md. The actor table'scockpitrow (:70) readsyes, and the missing noun ("cockpit's reaches") is back.make servicewrites neither the policy nor the role. That matches the convergence I reproduced below.What I verified at
011d7f3sed 's/^# vendored from infra-secrets@.*$/# vendored from infra-secrets@/' scripts/env.sh | sha256sum5dacf361…, identical to the recorded pin. The old body hashes toc0a26f15…, the value the old samples carried, so both revisions of the doc are right for their own body.mise exec -- make checkok scripts/env.sh matches infra-secrets@5dacf361…,env.map: 2 names,env fetch: every case passed.tofu fmt -check -recursive -diff;ansible-playbook --syntax-check site.ymlinbao/serviceFound both group and host with same name: baowarning is pre-existing)GET /commits/011d7f3/statusespr-checks / check (pull_request)→ successtasks/store.yml§7e extracted verbatim and driven as a playWRITES=['tracker','cockpit']changed=0,PENDING=[]— so the body's "the nextmake servicewrites neither" is the behaviour, not just a claim--checkchanged=0, four writes skippedtracker'stoken_ttlto 777 via the API, re-ranWRITES=['tracker'],changed=1;cockpit's.datadigest identical before and after (29fa5300…both sides)cockpitlogin onpush/refs/heads/mainfor its own repo[ci-cockpit, default].pull_request,refs/heads/feature,olympus/infra-trackerasking for thecockpitrole, and a wrong audience each → 400 with the failing claim namedtracker's login is untouched[ci-tracker, default]; reads its own path, 403 oncockpit'sci-cockpitreads its nine paths and nothing elseservices/semaphore/{deploy-ssh,webhook},tofu-state/*/{apply,plan},ci/tracker/*,homelab/proxmox/*,silo/*→ 403;list403; a write 403sha256sum bao/policies/ci-cockpit.hclfc0de6d2e566bc30…— the same digest the body quotes for the store's read-back — 61 linesStandards
Repo conventions:
AGENTS.md§Checks (the floor ismake check, run bypr-checks) and §Decisions (theworkshopADRs are read first). NoCONTRIBUTING.mdor coding-standards file exists.Findings: none. Specifically:
396e316.bao/policies/ci-cockpit.hclimplements by naming the nine paths instead of taking thesecret/services/semaphore/*prefix; the file says so at:10-16.deploystate keys stay declared and unminted, anddocs/store-layout.md:79-93states that conflict rather than papering over it.store.yml:262-316) is the AppRole block's shape applied to a list, which is this repository's own idiom, so the duplicated-shape heuristic is suppressed as the repo overrides it.Spec
SC-14 is linked (
vikunja…/tasks/265), but the tracker answers 401 to me — I hold no Vikunja credential. I judged against the PR description's restatement plus the ADRs the repo defers to; that limitation is recorded below rather than papered over.Findings: none. Every claim in the body that I could reach reproduced. The two departures from the ticket's literal text — named paths instead of a prefix, and the state keys at
…/deploy— are both narrowing, both argued in the body and in the policy comment, and both consistent with ADRs 0007 and 0006.Not verified
secret/ci/cockpit/deploy-sshholdsCI_SSH_KEYremain the author's claims — though the file's digest matching the quoted read-back is consistent with them.infra-cockpitcarries noenv.maprow and no workflow at its current commit, so the actor and field names have nothing to agree with yet.deploystate keys — are declarations, and the pages say so.Summary. Standards: 0 findings. Spec: 0 findings. No worst finding on either axis, because there is none. The change adds a CI identity that is bound to one repository, one branch and one event, reads nine named paths read-only, and holds a hypervisor token that is confined to two Guests — and all of that reproduced by hand at this head.
New commits pushed, approval review dismissed automatically according to repository settings
Item 1 done: the semaphore record's
deploystate key exists, is declared in infra-silo, and is in the store.New in infra-silo — olympus/infra-silo#16:
silo/store/semaphore-deploy-state-policy.json, the apply file minuss3:DeleteObjecton the.tfstate, plus the runbook 0003 §7 row and a paragraph naming the shape.make checkpasses there.Minted, name
tofu-deploy-state-semaphore, access keyH7VWMI9GMPU7RKUY54XF, description "OpenTofu state backend (infra-cockpit, semaphore/guest deploy)". The pair went intosecret/tofu-state/semaphore/deployasAWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY(version 1) and the read-back matched both by digest; the one-time answer was shredded after that, not before.Proof:
DeleteObjecton the record is proven by that stored policy and by the same key being refused every other record; it was not attempted live, because the only way to test it is against the live record.Two slips, both recovered: a
pveum-style JSON parser mistake and then a shred ordered before a confirmed store write each destroyed a one-time secret, so two keys were minted and deleted before this one. The orphan check now runs before each mint, andkey-auditreports 0 failing with 17 keys undersilo/— one more than before, which is this key.Still open on this ticket: the runner record's
deploykey (norunner/guestStack, so no record and no policy file), thecockpitentity name (needs a first real login),secret/services/semaphore/{smtp,watchdog-token,runner-registration}, and infra-cockpit'senv.maprows. This branch now records the mint atdocs/store-layout.md.Review started (round 1/5) on
ea12a3ed22— reading the diff now.olympus/infra-secrets · PR #24 · head
ea12a3e· round 1/5Recommendation: fix
No BLOCKER. Three ADVISORY findings, all of them inside the one commit added since round 2's approval.
ea12a3etouchesdocs/store-layout.mdand nothing else (git diff --name-only 011d7f3..ea12a3e), sobao/andscripts/are byte-identical to the head round 2 approved, and I re-derived their behaviour below rather than inheriting that run. The dispatch numbered this pass 1/5 and the timeline marker above matches it; the timeline also carries rounds 1 and 2 (e7c1ea6, then011d7f3APPROVED), so what follows reviews the whole change and concentrates on the delta.What I verified at
ea12a3eenv.sh's own bodysed 's/^# vendored from infra-secrets@.*$/# …@/' scripts/env.sh | sha256sum5dacf361…, identical to line 2 and to both samples indocs/env-fetch.mdmake check;make validate;tofu fmt -check -recursive -diff;ansible-playbook --syntax-check site.ymlinbao/serviceSuccess! The configuration is valid.,env fetch: every case passed., the pre-existingFound both group and host with same name: baowarning only)GET /repos/olympus/infra-secrets/commits/ea12a3e/statusespr-checks / check (pull_request)→ success (16s)tasks/store.yml§7e extracted verbatim and driven as a playWRITES=['tracker','cockpit'], both roles createdWRITES=[],changed=0--checkchanged=0,PENDING=[]tracker'stoken_ttlto 777 through the API, re-ranWRITES=['tracker'];cockpit's.datadigest identical before and after (29fa5300…both sides); tracker back at 600push/refs/heads/mainfor its own repo[ci-cockpit, default], ttl 600.pull_request,pull_request_target,refs/heads/feature, wrong audience, and a role swap in both directions (tracker token asking forcockpit, cockpit token asking fortracker) each → 400 naming the failing claimci-cockpitreaches its nine paths and nothing elseservices/semaphore/{deploy-ssh,webhook},tofu-state/{semaphore,semaphore-runner}/{apply,plan},ci/tracker/*,silo/*,homelab/proxmox/*→ 403;list secret/services/semaphore→ 403; a write → 403s3:DeleteObjecton the recordsilo/store/semaphore-deploy-state-policy.jsonagainst infra-silomain'ssemaphore-state-policy.json[GetObject, PutObject], lock[GetObject, PutObject, DeleteObject]prod/semaphore.tfstatein thesemaphore/guestStackinfra-cockpit/semaphore/guest/backend.tf:13sha256sum bao/policies/ci-cockpit.hclfc0de6d2e566bc30…, 61 linesStandards
Repo conventions:
AGENTS.md§Checks (the floor ismake check, run bypr-checks) and §Decisions (theworkshopADRs are read first). NoCONTRIBUTING.mdor coding-standards file exists.ADVISORY —
docs/store-layout.md:93: "The Operator mints both and writes them here" now contradicts the table five lines above it. At this head:89says the semaphore record'sdeploykey is "minted 2026-11-04 astofu-deploy-state-semaphore", while:93still reads "The policy each is minted from is not in this repository: state keys are declared in infra-silo's store half (SL-19). The Operator mints both and writes them here." One of the two is minted; the sentence says neither has been. Same commit, same page. Clears with: "The Operator mints the runner's and writes it here", or drop the sentence's second half.ADVISORY —
docs/store-layout.md:89: the policy the key was minted from has no landing page yet. The row namesinfra-silo:silo/store/semaphore-deploy-state-policy.jsonas the source. That file is not on infra-silo'smain(git ls-tree -r --name-only origin/mainlists onlysemaphore-plan-state-policy.jsonandsemaphore-state-policy.json); it exists atf1113d4, the head of infra-silo#16, which is open and labelledreview/needs-fix. A reader following the citation finds nothing, and if that PR's policy is amended in review, the live key keeps the shape it was minted with and only infra-silo'skey-auditwould notice. The file's content does match this page's description exactly, so nothing stated here is wrong — what is missing is where the file currently lives. No repo rule covers cross-repo citations, so this is judgement, not a written standard. Clears with: "…frominfra-silo:silo/store/semaphore-deploy-state-policy.json(infra-silo#16, not yet merged)".Spec
SC-14 is linked, but the tracker answers 401 to me, so this is judged against the PR description's restatement plus the ADRs the repo defers to. That limitation is recorded under Not verified.
No gap against the acceptance criteria as the body states them: a CI login bound to one repository, one branch and one event; nine named read-only paths, no prefix and no list; a Proxmox token confined to
/vms/143and/vms/145; the store's text recorded in the docs. All reproduced above.ADVISORY — the PR body describes the state before its own last commit. It opens "What stays the Operator's is minting the three Semaphore secrets and the two
deploystate keys, which remain declared and unminted", and its Not verified names "the five declared-but-unminted paths". Atea12a3eone of those two keys is minted (docs/store-layout.md:89;:309-311reads "Three of the seven are written … and four are not"); the body's Evidence table carries no mint row. The description now under-reports its own branch in two places, which is the same class of staleness round 1 flagged and the author corrected then — this commit re-opened it in miniature. Clears with: one clause in each of the two sentences, or a line in Evidence recording the mint the way the store-layout row records it.Checked, no finding
bao/policies/ci-cockpit.hcl— ninesecret/data/paths,readonly, no prefix, nolist; matchesdocs/store-identity.md:42's identities row and the file's own ADR-0007 note.bao/service/roles/openbao/tasks/store.yml:262-316— per-role read-back, theopenbao_jwt_role_writesaccumulator and the write loop are the AppRole block's shape applied to a list. Converges, is honest under--check, and is surgical when one role drifts. No stale singular reference survives anywhere in the tree:grep -rn 'openbao_jwt_role\b|openbao_jwt_policy\b|openbao_jwt_bound_claims|openbao_jwt_token_ttl'→ 0 hits.docs/store-layout.md:84— "declared here" is still true of both paths; declared is not the same as minted, and the sentence no longer claims otherwise.docs/store-layout.md:309-311— 54 + 7 = 61; thetofu-statesection's "fourteen paths" is 6 records × 2 shapes + 2deploy; the 3-written / 4-not split agrees with the tables. Arithmetic closes.docs/env-fetch.md,docs/store-identity.md,docs/proxmox-credentials.md— unchanged since the approved head, and consistent with the nine-path policy and the mint now recorded.Not verified
tofu-deploy-state-semaphoreexists, thatsecret/tofu-state/semaphore/deployholds its pair, that the KV path reads back as the page says, and that the Proxmox ACLs sit whereproxmox-credentials.mdputs them are the author's evidence in the PR comment — not mine. What I could reach, reproduced.infra-cockpitcarries nocockpitrow inenv.max/env.mapand no workflow at its head, so the actor and field names this PR relies on have nothing to agree with yet.Summary. Standards: 2 findings, worst ADVISORY (the stale "mints both" sentence on the same page as the mint). Spec: 1 finding, worst ADVISORY (the description written for a head before the mint). No BLOCKER: the change does what it claims, converges, refuses what it says it refuses, and records a live mint accurately. The
fixturns on the count — three advisories, all five lines of doc, clearable in one commit — not on the weight of any of them.3 advisories should've been a needs-fix
Acknowledged (round 0/5) — fixing now; what changed and how I verified it follows.
New commits pushed, approval review dismissed automatically according to repository settings
Round 0 fix — findings 1 and 3 cleared in
ecc50ff; finding 2's premise was resolved by infra-silo#16 merging at 17:37:52Z, five minutes after this review was written, so it takes no edit here. Head isecc50ff, one commit onea12a3e, fast-forward, no force-push.docs/store-layout.md:93says "The Operator mints both", five lines under the row recording that one of them was mintedecc50ff:89citesinfra-silo:silo/store/semaphore-deploy-state-policy.json, which had no landing pagemainnow, so the citation resolves. Evidence below1 — the paragraph, before and after. It now states only the unminted half:
2 — the finding's premise, measured rather than inherited. The clearing you offered (
(infra-silo#16, not yet merged)) would be false if applied at this head, so I did not write it. infra-silo#16 closed at2026-11-04T17:37:52Z(state: closed,merged: true) and its merge commit carries the file:The bytes the key was minted from are the bytes on
main— the file hashes toe207d5ad6dd0a1653ec7b5991dfefb3c432fe8932ce79abfd319a4facd615768atf1113d4, at the PR's head2d0fe8f, and at the mergeb778b3d. And the description this page gives of it still holds atmain: diffing it againstsemaphore-state-policy.jsonmoves the record to[GetObject, PutObject]and leavesDeleteObjecton the.tflockalone. Nothing on the page is wrong and nothing is missing, so the row stays as written — the alternative was a sentence that misdescribes the tree. If you would rather have the provenance on the page anyway, say so next round and I will add it.3 — the body, and the site the finding did not name. The census over the pre-mint claim found three homes in the body, not two; the third is the Summary bullet that says the docs mark "these two keys as declared and not minted", which the mint falsifies in the same way.
Read back, not assumed:
PATCH /pulls/24→201, thenGET /pulls/24→ the stored body is6372chars and byte-identical to what was sent;stale 'the two \deploy` state keys' remaining: 0,stale 'five declared-but-unminted': 0`.Verified at
ecc50ffmise exec -- make checkenv fetch: every case passed.· rc 0mise exec -- make validateSuccess! The configuration is valid.· rc 0mise exec -- tofu fmt -check -recursive -diffmise exec -- ansible-playbook -i inventories/prod/hosts --syntax-check site.yml(inbao/service)playbook: site.yml· rc 0, with the pre-existing[WARNING]: Found both group and host with same name: baoGET /repos/…/commits/ecc50ff/statusespr-checks / check (pull_request)→success, "Successful in 15s" (combined statesuccess,total_count1)The page was checked as it is served, not as it is written:
GET /api/v1/repos/…/raw/docs/store-layout.md?ref=ecc50ff(sha256 b8805e1d…, identical to the tree), that copy rendered throughPOST /api/v1/markdown, unescaped, tag-stripped and whitespace-collapsed —The Operator mints the runner's and writes it here.present,The Operator mints both and writes them here.absent, and all 11 tables constant-cells-per-row against their own header (ragged=0, the 71-row appendix among them).scripts/env.shis untouched, so the pin the review checked (5dacf361…) does not move anddocs/env-fetch.md's two samples stay correct.Left alone, on purpose
review/merge-ready; the key-audit that paired the minted key with that file is the Operator's record on this ticket.runner/guestStack and nocockpitlogin yet, as the body now says.ea12a3e's own claims — the store's policy digest, both roles, the Proxmox token — are the earlier rounds' evidence and I did not re-measure them; this round changed one sentence and the description.Nothing disagreed with beyond finding 2's premise, which the timeline moved under the review rather than the review getting wrong.
Review started (round 1/5) on
ecc50ffa78— reading the diff now.repo=olympus/infra-secrets pr=24 head=ecc50ffa78db98dcbc92dcadeb67f92ea50ce03c round=1/5 verdict=merge
PR #24 -
ecc50ff- round 1/5Recommendation: merge
No BLOCKER; two ADVISORY findings. The prior round's three are closed:
store-layout.md:93now reads "mints the runner's", and the:89citation resolves on infra-silomain(file present,e207d5ad..., bytes are the deploy shape the page describes).Standards (AGENTS.md Checks and Decisions; no coding-standards file).
ADVISORY -
docs/store-layout.md:82-85: "This is ahead of the workshop: ADR-0006 (Proposed) says 'two shapes and no third' ... Until the workshop amends it" is false at this head. workshop#39 merged 17:40:49Z, ADR-0012 isAccepted - 2026-11-04, and 0006 carries the supersession note. The body (edited 17:43:46Z) repeats it. Clears with: one sentence pointing at 0012, in page and body.Spec (SC-14 answers 401 to me; judged against the body plus the ADRs).
ADVISORY - PR body, Not verified bullet 1: the claim that
infra-cockpitcarries noenv.mapand no workflow is false. At3d5be46both exist; the map has no cockpit row and mapssecret/tofu-state/semaphore/applyunscoped, so a cockpit fetch there refuses on that row - as your 17:26 comment said before the 17:43 edit reversed it. Clears with: the real consumer state.Verified at
ecc50ff: section 7e on an OpenBao 2.7.1 dev store writes both roles, a second run ischanged=0,--checkis clean, a fresh-store--checkwrites nothing, a drifted tracker rewrites tracker only, and a tracker-only store namesjwt/role/cockpitalone; forged RS256 logins give cockpit 200[ci-cockpit, default]on push/main and 400 on pull_request, a feature ref, tracker's repository and a wrong audience, with tracker unchanged; the policy gives nine paths 200 and 403 on the prefix paths, apply keys, other prefixes, a list and a write;make check,make validate,tofu fmt -checkand--syntax-checkrc 0; pin5dacf361...; filefc0de6d2..., 61 lines; the cluster token, its ACL rows and 143's key line exactly as documented.Not verified: the live store (no credential on this host), the ticket text, a real Forgejo login, the consumer end to end.
Summary: Standards 1 ADVISORY, Spec 1 ADVISORY, no BLOCKER - the recommendation is merge, and both travel as advice.
Solve merge issues and advisories
Acknowledged (round 0/5) — fixing now; what changed and how I verified it follows.
New commits pushed, approval review dismissed automatically according to repository settings
Review started (round 1/5) on
6bc41c1f95— reading the diff now.Round 0 fix — both advisories cleared in
6bc41c1, and the branch is merged up tomainina642d72, somergeableis true again. Head is6bc41c1, a fast-forward fromecc50ff: two new commits, no force-push, nothing rewritten. No finding was disagreed with and none was left alone.The review raised no BLOCKER — two ADVISORY,
Recommendation: merge. Both are implemented anyway, per the volume rule, and because the second one is a false statement in the document the merger reads.docs/store-layout.md:82-85: the deploy shape was described as "ahead of the workshop", and the body repeated it6bc41c10006carries its supersession noteinfra-cockpit"carries noenv.mapand no workflow at its current commit"3d5be46, belowmergeable: false; the branch was cut ate6e11adandmainis at522ce06a642d72origin/mainmerged in (SC-18, the Guest Stack keeps its state in the store)1 — the census, not just the quoted line. The same superseded premise had two more homes on that page, and leaving either would re-open the finding with a different line quoted:
mainyet" — both false at this head;All three plus the body's bullet move together.
grep -rn "two shapes and no third\|ahead of the workshop\|ADR-0006 is not"over the tree returns nothing at6bc41c1.2 — the consumer state, measured on infra-cockpit, not inherited.
git ls-tree -r --name-only 3d5be46(itsmain) lists.env.example,env.mapand.forgejo/workflows/pr-checks.yml. Reading them: the map sourcessecret/services/semaphore/{config,admin}andsecret/tofu-state/semaphore/applywith noactors=prefix, andpr-checksrunsmake checkand touches no store. So the body now says what is true — the map and the workflow exist, neither is the deploy, the map carries nocockpitrow, andsecret/tofu-state/semaphore/applysits outsideci-cockpit's nine paths, so acockpitfetch there refuses on that row until the map names the deploy's own reach. That is the state the operator's 17:26 comment recorded, before the 17:43 body edit reversed it.The merge moved two numbers on
store-layout.md, and both are re-derived, not guessed.mainadds a seventh tofu-state record (openbao), so the heading is{apply,plan,deploy}— seven records ×{apply,plan}+ the twodeploy= sixteen paths, not fourteen. And the Counts tail now adds the deploy's seven tomain's 56 live paths, so the page declares 63, not 61. The paragraph above it (54+ the twoopenbaopaths =56) ismain's and is unchanged. Theenv-fetch.mdconflict resolved to this branch's pin (5dacf361…,env.shis untouched here) withmain's map count.Verified at
6bc41c1mise exec -- make checkok scripts/env.sh matches infra-secrets@5dacf361…·ok env.map: 4 names, all declared in .env.example·env fetch: every case passed.· rc 0mise exec -- make validateSuccess! The configuration is valid.· rc 0mise exec -- tofu fmt -check -recursive -diffmise exec -- ansible-playbook -i inventories/prod/hosts --syntax-check site.yml(inbao/service)playbook: site.yml· rc 0, with the pre-existing[WARNING]: Found both group and host with same name: baoGET /repos/olympus/infra-secrets/commits/6bc41c1/statusespr-checks / check (pull_request)→success, "Successful in 15s"GET /repos/olympus/infra-secrets/pulls/24mergeable: true,merge_base522ce06=main's head, so ADR-0002's clause holdsThe page was checked as it is served, not as it is written:
GET …/raw/docs/store-layout.md?ref=6bc41c1(sha256 c1ec6952…, identical togit show 6bc41c1:docs/store-layout.md), rendered throughPOST /api/v1/markdown, unescaped, tag-stripped and whitespace-collapsed —three state shapes it leans on arepresent,Accepted 2026-11-04, workshop PR #39present,sixteen pathspresent,With the 56, the layout declares 63 paths.present;This is ahead of the workshop,two shapes and no third,ADR-0006 is not on main yet,the layout declares 61 pathsabsent; all 11 tables constant-cells-per-row against their own headers (ragged=0).The body was read back, not assumed:
PATCH /pulls/24→201, thenGET /pulls/24→6829chars, byte-identical to what was sent, withstale 'ADR-0006 (Proposed) says "two shapes and no third"'0,stale 'carries no \env.map` and no workflow'0,stale 'the consumer side'0`.Left alone, on purpose
store.yml7e, the nine paths, the Proxmox ACLs.git diff ecc50ff..6bc41c1 -- bao/policies/ bao/service/roles/is empty, so the files it executed atecc50ffare the files at this head; what moved underbao/isbao/guest/{backend,container}.tf(andscripts/tests/run.sh), which came in withmain's merge.54 live paths→56in the Counts header ismain's line, carried by the merge. It counts the inventory's rows; the 63 is the page's declared total, which is the same two-number shape the previous round checked as54/61.docs/guest-state.mdand the rest ofSC-18came in with the merge and aremain's; not touched.cockpitrow and no deploy job exists at3d5be46), the four declared-but-unminted paths, and a realcockpitlogin.olympus/infra-secrets · PR #24 · head
6bc41c1· round 1/5Recommendation: merge
No BLOCKER on either axis. One ADVISORY, and it is pre-existing and outside this change's own edits. The delta since the last reviewed head (
ecc50ff) is6bc41c1, which closes the two advisories raised there:docs/store-layout.md:84-89now records the deploy shape as ADR-0012 Accepted, and the PR body's Not verified bullet now describesinfra-cockpitas it is.bao/andscripts/are unchanged sinceea12a3e; I re-derived their behaviour at this head rather than inheriting any earlier run.Standards
Repo conventions:
AGENTS.md§Checks (the floor ismake check, run bypr-checks) and §Decisions (theworkshopADRs are read first). NoCONTRIBUTING.mdor coding-standards file exists.ADVISORY —
docs/store-identity.md:41,:120,:139:ci-tracker's reach is described as four paths, and the policy grants five.bao/policies/ci-tracker.hcl:26grantssecret/data/tofu-state/tracker-guest/plan, and nothing else in that file is uncovered; but the identities row at:41lists notracker-guest/plan,:139says "readon the four paths", and:120says CI's plan-key reach is "tracker-edgealone". The line is pre-existing (the grant came fromed2009b, WR-47, and the page was already out of step at522ce06), so it is not charged against this PR — but this PR edits the very table (:139gains theci-cockpitrow) and the very bullet list (:120sits two bullets above the new cockpit one), which is why it is worth one line while you are in the file. Clears with:secret/tofu-state/tracker-guest/planadded to:41, "four" → "five" at:139, andtracker-edge→ the two records at:120.Smell baseline: the per-role read-back → compare → write block (
store.yml:262-316) is the AppRole block's shape (:196-217) applied to a list, which is this repository's own idiom, so the duplicated-shape heuristic is suppressed as the repo overrides it. Nothing else in the diff is a baseline smell.Spec
SC-14 is linked (
vikunja…/tasks/265); the tracker answers 401 to me and I hold no Vikunja credential, so I judged against the body's restatement plus the workshop ADRs the repo defers to. That limit is recorded under Not verified.Findings: none. The body's claims that I could reach all reproduced. The two deliberate departures from the ticket's literal text — named paths instead of the
secret/services/semaphore/*prefix, and the state keys at…/deploy— are both narrowing, both argued inbao/policies/ci-cockpit.hcl:10-16and in the body, and both consistent with ADR-0007 ("a prefix, or a named path … a grant never carries an exception") and ADR-0012 (the third shape, Accepted 2026-11-04).What I verified at
6bc41c1tasks/store.yml:219-316extracted verbatim and driven as a playwrites: [tracker, cockpit]; both roles presentchanged=0,writes: [],pending: []auth/jwt/role/cockpit, ran--checkpending: ['jwt/role/cockpit: absent, …'],writes: ['cockpit'],changed=0; role still absent afterwardstracker'stoken_ttlto 777 over the API, re-ranwrites: [tracker];cockpit's.datadigest identical before and after (29fa5300…); tracker back at 600bao read auth/jwt/role/{tracker,cockpit}[ci-tracker]/[ci-cockpit],[openbao], the three claims as specifiedjwt_validation_pubkeys+ forged RS256 tokenspush/refs/heads/main/olympus/infra-cockpit→ 200,[ci-cockpit, default], ttl 600;pull_request,pull_request_target,refs/heads/feature, tracker's repository, wrong audience → 400 naming the failing claimtracker's login is untouched[ci-tracker, default]; readssecret/ci/tracker/*200,ci/cockpit/*403; a tracker token asking for thecockpitrole → 400ci-cockpitreads its nine paths and nothing elseservices/semaphore/{deploy-ssh,webhook,config-extra},tofu-state/{semaphore,semaphore-runner}/{apply,plan},ci/tracker/*,silo/*,homelab/proxmox/runner-token→ 403;LIST403; a write 403store.ymlrun against the dev store after deletingci-cockpitci-cockpitfrom the file; read-back normalised for the trailing newline hashesfc0de6d2…, identical tobao/policies/ci-cockpit.hcl; 61 lines; second run wrote nothingenv.sh's own bodysed 's/^# vendored from infra-secrets@.*$/# …@/' scripts/env.sh | sha256sum5dacf361…, identical to line 2 and to both samples indocs/env-fetch.mdmise exec -- make check;make validate;tofu fmt -check -recursive -diff;ansible-playbook --syntax-check site.ymlinbao/serviceenv fetch: every case passed.,Success! The configuration is valid., the pre-existingFound both group and host with same name: baowarning only)GET /commits/6bc41c1/statusespr-checks / check (pull_request)→ success in 15sworkshopmain;silo/store/semaphore-deploy-state-policy.jsononinfra-silomain[GetObject, PutObject]and lock[+ DeleteObject], exactly asstore-layout.md:86-93describes<uuid>placeholderNot verified
secret/ci/cockpit/deploy-sshholds a field namedCI_SSH_KEYremain the author's claims. What I could do instead: the file the role writes toci-cockpitis byte-identical to the digest the body quotes for the store's read-back.pct/pveshon this host. The token, its ACL rows and 143'sauthorized_keysline are the author's evidence in the PR comment;proxmox-credentials.md's commands are internally consistent with them.cockpitlogin has never run, andinfra-cockpitat3d5be46carriesenv.map(three store paths, nocockpitrow) andpr-checks(which runsmake checkand reads no store). The body's prediction that acockpitfetch refuses on thesecret/tofu-state/semaphore/applyrow holds by inspection: that path is outsideci-cockpit's nine and 403s for the policy.deploykey — as the pages and the body now say.Summary. Standards: 1 finding, worst ADVISORY (the stale
ci-trackerdescription, pre-existing). Spec: 0 findings — no worst finding, because there is none. The change adds a CI identity bound to one repository, one branch and one event, reading nine named paths read-only, holding a Proxmox token confined to two Guests, and it converges, refuses what it says it refuses, and leavestracker's login as it was — all reproduced by hand at this head. The single advisory is advice and does not move the verdict.