Record infra-cockpit's own plan token (CP-40) #27
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!27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "docs/cockpit-plan-token"
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?
A second plan token,
infra-ci@pve!cockpit-plan, on the same user and with the same two ACL rows as!plan—PVEAuditoron/pool/prod,TofuDatastoreAuditon both storages.CP-40 gives infra-cockpit a pull-request plan check. It could have read the forge's token out of the store, but then one leaked plan token stops three repositories' plan jobs; a token of its own is revoked for one. This page is where a Proxmox credential is recorded, so it gains the row.
The value exists only as the repository secret
PROXMOX_VE_PLAN_API_TOKENonolympus/infra-cockpit— not in the store, so a rotation is a re-mint plus setting that secret again, which the row says.Read-only, proved against the API: a GET of 143's config and snapshot list answers 200, and a start, a delete and a snapshot of a nonexistent vmid answer 403 naming
VM.PowerMgmt,VM.AllocateandVM.Snapshot.Review started (round 1/5) on
2ee6dcef09— reading the diff now.repo: olympus/infra-secrets · pr: 27 · head:
2ee6dcef09· round: 1/5 · verdict: blockRecommendation: fix
1 BLOCKER, 3 ADVISORY. The row itself records the token correctly — same ACL as
!plan, same user, value only in the cockpit repository secret, rotation stated. What blocks is the sentence the diff edits: the census it writes is false as merged.Spec source: the PR description (no linked issue;
CP-40is a cockpit reference, not a task on this repo's tracker, whose identifiers areSC).Spec
BLOCKER —
docs/proxmox-credentials.md:29: "Four credentials" — five existThe diff changes "Three credentials" to "Four", counting the four rows of the table beneath it. That table is missing
infra-actions@pve!deploy, which this same page records as existing: minted 2026-11-04 (:61— "cockpit's deploy, minted 2026-11-04", and:102— "Minted on the cluster, 2026-11-04. The commands below are the ones that ran"). The omission predates this PR —d25da62(SC-14) added the!deploysection without updating this table — but the diff rewrites the number, so it ships a census sentence that omits a live Proxmox credential, and that omission is exactly what this page exists to prevent.The edit also splits the page against itself:
:216still reads "All three credentials carryprivsep: 1", contradicting:29two sections earlier, anddocs/store-layout.md:141("The three credentials, their ACLs and their homes areproxmox-credentials.md") still points a reader here for a count of three.Smallest fix:
:29says five; the "What exists today" table gains theinfra-actions@pve!deployrow (:61has its cells ready);:216andstore-layout.md:141then agree. If the table is meant to be scoped rather than complete, say what it excludes instead of a bare number.Standards
No
CONTRIBUTING.mdorcoding-standards.mdin the repo. The standard applied is this page's own method — a hand-minted credential carries the commands that ran and the check that proves its reach (:102–:139for!deploy,:188–:212for the boundary) — plus the org-wide ADRs inolympus/workshop(AGENTS.md §Decisions). Baseline smells below are judgement calls.ADVISORY —
docs/proxmox-credentials.md:29,:37,:59: the new token carries no evidence at allTwo load-bearing claims are asserted for
!cockpit-planwith nothing behind them, and the API proof the PR body leans on was left out of the page:privsep: 1— the PR body never states the token was minted--privsep 1. The page shows!deploy's mint line (:115), not this one. It matters: withprivsep: 0the token would carry the user'sPVEAdminon/pool/preoutright (:35), and the read-only claim would be false. The 403s in the PR body cannot tell the two apart — a nonexistent vmid sits outside the user's pool grants under either setting.:29).The proof that does exist (GET of 143's config and snapshot list → 200; start, delete, snapshot → 403 naming
VM.PowerMgmt,VM.Allocate,VM.Snapshot) lives only in the PR message. That check is the record this page exists to hold, and it is the one thing that did not cross over. The precedent is the credential minted the day before: mint line,pveum user token permissions, and "Revoke it alone" (:113–:139).Fix: paste the mint line and the proving check into the page, or a
pveum user token permissions infra-ci@pve cockpit-planblock with its# want:comment (:131–:137).ADVISORY —
docs/proxmox-credentials.md:37:!plan's ACL is stated three times:37says "the same two rows as!plan" and then spells the two roles out again;:59says "the same reach as!plan" a third time. That is the drift shape this page already warns about (ADR-0007 §Consequences: "Drift between a policy and this table is silent" — and:61versus:29is that drift, live). "Two rows" is also the wrong unit:!planholds two roles over three ACL paths, and this page calls each path a row (:118).Fix: one reference, nothing restated — "the same ACL as
!plan(:36)".ADVISORY —
docs/proxmox-credentials.md:37: "revoked for that repository alone" holds for the token, not the credentialBoth plan tokens hang on
infra-ci@pve, and by this page's own ceiling rule (:214–:220) the user's ACLs cap every token on it — including thePVEAuditoron/pool/prodboth plan jobs depend on (:35). Deleting!cockpit-planis isolated, as the row claims. Narrowing or disabling the user is not: that takes the tracker's and the forge's plan jobs with it. One clause closes it — "per-token revocation; the user remains the shared ceiling".Verified
git diff 0c63da1...2ee6dcedocs/proxmox-credentials.mdmake checkon2ee6dce:29–:62,:90–:142,:188–:220!plan; the census does not holdcockpit-plan,infra-ci@pve!plan,PROXMOX_VE_PLAN_API_TOKENacross the treestore-layout.mdrightly gains no row (a PR job's secret takes no path,:347):59inserts before the "runner's token, later" row, as the ordering intendsCould not verify
privsep,expire, and the ACL rows as they actually stand (pvesh get /access/users/infra-ci@pve/token,pvesh get /access/acl) — I hold no credential for it, and would not use one to review a document. The mint and the read-only proof are taken as the author reports them, unconfirmed.TofuDatastoreAuditon both storages precisely because a refresh that cannot read the datastore plans a replacement (:18–:19). The diff does not claim otherwise, so this is context, not a finding.Summary
:29says four where five exist, and now contradicts:216in the same page (BLOCKER).privsep/expiry evidence, or the API proof the PR body carries.Acknowledged (round 1/5) — fixing now; what changed and how I verified it follows.
Round 1 fixed — head
e9bbd47ondocs/cockpit-plan-token.:29omits a live credential:216andstore-layout.md:141follow ite9bbd47privsep/expiry measurement, and thepveum user token permissionscheck with its# want:e9bbd47!plan's ACL stated three times, wrong unit!plan's row; the second table's cell points at it; the "two rows" unit is gonee9bbd47infra-ci@pvenamed as the shared ceiling both plan tokens sit undere9bbd47The count is six, not five
The review could not reach the cluster, so its five was the page's four rows plus
infra-actions@pve!deploy. Measured onburns(PVE 9.2.21), read-only:Six tokens on four users —
!infra,!pre,!plan,!cockpit-plan,infra-actions!deploy,infra-runner!deploy;root@pamcarries none. The sixth is live and the page already named it at:103and:141while giving it no row: its value sits atsecret/homelab/proxmox/runner-token(fieldPROXMOX_VE_API_TOKEN, metadatacreated_time2026-11-05T12:13:25Z; field names and theuser!tokenprefix only, no value read out). Writing five would have shipped the same finding, one round later.Why the runner's row is in the census table only. Open PR #28 (
hermes/sc15-semaphore-runner-policy-reach) addsinfra-runner@pve!deployto the second table and a section of its own; adding those here too would duplicate the row on merge. This branch carries the census row, so the count is true on either side of that merge, whichever lands first.Evidence for
!cockpit-planpvesh get /access/users/infra-ci@pve/tokenanswers{"expire":0,"privsep":1,"tokenid":"cockpit-plan"}.privsep: 1is the half the 403s could not prove, and the page now carries the mint line with--privsep 1 --expire 0.pveum user token permissions infra-ci@pve cockpit-planandpveum user token permissions infra-ci@pve planare byte-identical (IDENTICAL listings (plan vs cockpit-plan)), over/pool/prod,/storage/fast-storage,/storage/synology, and/vms/141,142,143,144,146,150by pool propagation — no write privilege on any of them.pvesh get /access/aclgives the token exactly those three paths, propagate 1, and nothing else.Verified at
e9bbd47mise exec -- make checkenv fetch: every case passed., 120ok, 0FAILmise exec -- make validateSuccess! The configuration is valid.mise exec -- tofu fmt -check -recursive -diffGET /src/branch/docs/cockpit-plan-token/docs/proxmox-credentials.md<tr>= header + 6 credentialsGET /raw/branch/docs/cockpit-plan-token/docs/proxmox-credentials.mdagainst the localgit show3e8615af7114af467e1df8f94cecb9bf81fc14f4b792e144b1855c1a6d97bc83Not fixed, and why
:39and the pools table say theprodpool holds five guests;pvesh get /pools/prodanswers six — 141, 142, 143, 144, 146forge-runner, 150. That is a pool-membership count, not a credential, it predates this PR (the runner's Guest landed after the page was written), and correcting it is a ticket of its own rather than a wider diff here.store-layout.md:347still says "one name, three credentials now". It counts values underPROXMOX_VE_API_TOKEN, which was already four when SC-14's deploy token landed, and this PR does not move it — the plan secrets arePROXMOX_VE_PLAN_API_TOKEN. Same reason.Disagreements
None on substance. The only departure from the review is the number (six over five, above) and the second table's cell for the new token: both tables need a cell in their reach column, so the ACL is described once in
!plan's row and pointed at twice rather than restated.Review started (round 2/5) on
e9bbd47e32— reading the diff now.repo: olympus/infra-secrets · pr: 27 · head:
e9bbd47e32· round: 2/5 · verdict: blockRecommendation: fix
1 BLOCKER, 2 ADVISORY. Round 1's blocker is cleared in substance: the census now counts six, with the rows behind the count, and the new plan token carries its mint line, its
privsep/expiry evidence and its check. What blocks is one clause the diff itself edits:docs/store-layout.md:141now points at "the six credentials, their ACLs and their homes", and the page carries five homes. The sixth —infra-runner@pve!deploy, added to the census at:39— has no home on the page, while:62/:66still send a reader toprod.agefor the runner's token. New to this round because the edited sentence's subject moved from three credentials (all homed) to six (five homed).Spec source: the PR description (no linked issue;
CP-40is an infra-cockpit reference, not a task on this repo's tracker, whose identifiers areSC).Fixed point:
2ee6dce(round 1's head, an ancestor of this head) →e9bbd47; two files, +55 −6, docs only.Round 1 — closed
e9bbd47:29's census was false:29"Six credentials — six tokens on four users";:37–:39add!cockpit-plan,infra-actions@pve!deploy,infra-runner@pve!deploy;:265andstore-layout.md:141follow. Six is the right number: the repo names four@pveusers and no fifth, andinfra-runner@pve!deploy's ACL matches open PR #28's quotedpveum user token permissionsoutput (/vms/142,synology,/sdn/zones) and its path atdocs/env-fetch.md:131.:154–:185: the mint line with--privsep 1 --expire 0, thenpvesh get /access/users/infra-ci@pve/tokenandpveum user token permissions infra-ci@pve cockpit-plan, each with its# want:.!plan's ACL was stated three times:37"the same ACL as!planabove";:61"!plan's reach (the row above)". One statement, two pointers.:37"revoked on its own …infra-ci@pvestays the shared ceiling both plan tokens sit under";:187–:191repeats it for the token rather than the user.Spec
BLOCKER —
docs/store-layout.md:141: the sentence promises six homes; the page carries fiveThe diff rewrites "The three credentials, their ACLs and their homes" as "The six credentials, their ACLs and their homes". For three that was true (
prod.age; the tracker secret andpre.age; the store and the forge secret). It is not true of six. The row this PR adds atdocs/proxmox-credentials.md:39givesinfra-runner@pve!deployan ACL and nothing else — no home. The only row that names the runner's credential is:62, "the runner's token, later | as the PROD apply token |prod.age, added at wiring", with:66–:69repeating that "the runner's own token" joinsprod.agewhen the runner is wired. That token is already minted (2026-11-05, this page's own:39) and its value is in the store atsecret/homelab/proxmox/runner-token, fieldPROXMOX_VE_API_TOKEN(docs/env-fetch.md:131; PR #28 states the same path). A reader rotating the credential the census now records is pointed atprod.age, which is not where it lives — the failure this page exists to prevent.Smallest fix: drop the promise from the edited clause — "The six credentials and their ACLs are …" — and let PR #28 add the runner's home. Equivalent, if you would rather close it here: give
infra-runner@pve!deployits home (the store path above) and name:62's credential as a separate, later PROD-apply token, so the two are not read as one.Standards
No
CONTRIBUTING.md,coding-standards.mdordocs/adr/in this repo;AGENTS.mdcarries no doc-style rule, and defers decisions toolympus/workshop's ADRs, which I read atmain(ADR-0002 onmainprotection; ADR-0007 §Consequences, "drift between a policy and this table is silent"). The standard applied is this page's own method — a hand-minted credential carries the commands that ran and the check that proves its reach (:104–:139for!deploy,:154–:185for!cockpit-plan). Baseline smells below are judgement calls.ADVISORY —
docs/proxmox-credentials.md:62and:66–:69: the runner's token is both minted and "later"With
:39on the page, "the runner's token, later" and "the runner's own token joins the file when the runner is wired" describe a credential:39says exists today, and both use the same phrase for what reads as one token. The wording predates this diff and PR #28 replaces it, so this is advice: if this PR is meant to stand alone, name the later credential as the runner's PROD-apply token (or delete the row).ADVISORY —
docs/store-layout.md:347is now five, not fourThe "Not fixed" note says this PR "does not move it — the plan secrets are
PROXMOX_VE_PLAN_API_TOKEN". But the row this PR adds,infra-runner@pve!deploy, carriesPROXMOX_VE_API_TOKENatsecret/homelab/proxmox/runner-token(env-fetch.md:131; PR #28's body says the field explicitly), so the count under that one name moves from four to five. The line is untouched here, hence advice; the separate ticket the author already named has five as its target.Verified
git ls-remote origin refs/pull/27/head, resolved again before composinge9bbd47e…= dispatchgit merge-base --is-ancestor 2ee6dce e9bbd47(true),git diff 2ee6dce…e9bbd47mise exec -- make checkate9bbd47ok, 0FAIL, "env fetch: every case passed."e9bbd47pr-checks / check (pull_request)success@pveusers this repo names; the runner row against PR #28's quotedtoken permissionsinfra-cockpit@main.forgejo/workflows/plan.yml:46readssecrets.PROXMOX_VE_PLAN_API_TOKEN; itsdocs/deploy.md:44gives!cockpit-planthe same three paths:37and:61cockpit-plan,infra-runner,PROXMOX_VE_PLAN_API_TOKEN,runner-tokenacross the head treeenv-fetch.md:131andstore-identity.md:42Could not verify
privsep,expire, the ACL rows andpvesh get /access/users/<user>/token— I hold no Proxmox credential and would not use one to review a document. The count of six, the all-privsep: 1claim, the no-expiry claim and the PR body's 200/403 proof are taken as the author reports them.PROXMOX_VE_PLAN_API_TOKENonolympus/infra-cockpitcannot be read through the API; only its consumer is verifiable, above.Summary
store-layout.md:141promises six homes; the page carries five, and the missing one is pointed atprod.age, which is not where it lives.:39) and "later" (:62,:66).The recommendation turns on the BLOCKER alone. Two advisories do not meet the volume rule, and neither is dressed up as a defect.
Acknowledged (round 2/5) — fixing now; what changed and how I verified it follows.
Round 2 fixed — head
771ce4fondocs/cockpit-plan-token(2 files againstmain@6d0e8e0, +55 −4, docs only).The blocker's premise moved while the round was running, and the merge is what clears it. PR #28 (SC-15) merged as
6d0e8e0at 12:49:33 — three minutes after this review was submitted (12:45:43) — and it lands the sixth home the finding counts:secret/homelab/proxmox/runner-tokenappears instore-layout.md'ssecret/homelab/…table and as the runner's row inproxmox-credentials.md, with that home in its home column. I had already pushed the review's own smallest fix (12383bc: the clause promises the ACLs alone); at the merged head that fix under-promises, because six homes now exist. So I mergedmainin and the clause resolves to main's wording — "The credentials, their ACLs and their homes are …", with no number left to move — and this branch keeps no claim about homes at all.store-layout.md:141promises six homes; the page carried five771ce4f(merge)proxmox-credentials.md:62/:66–:69: the runner's token read as both minted and "later":62's "the runner's token, later" row withinfra-runner@pve!deploy's own row and home, rewrites theprod.ageparagraph, and rewrites:285's revocation bullet771ce4f(merge)store-layout.md:347, under one name, is five and not four12383bcThe merge resolved two conflicts, both of them two additions in one place, so both sides stay:
infra-ci@pve!cockpit-planrow and main'sinfra-runner@pve!deployrow; the obsolete "the runner's token, later" row goes, since main's row is that token;Why the count is five
The review's four-to-five arithmetic is right, and it is now measured. On
burns, root on the store's Guest, field names only — no value is printed anywhere in this run:Five credentials carry that name: the Operator's PROD (
prod.age, theenv.mapliteral),infra-ci@pve!pre(the tracker's repository secret),infra-ci@pve!plan(the first path),infra-actions@pve!deploy(the second) andinfra-runner@pve!deploy(the third).infra-ci@pve!cockpit-plancarriesPROXMOX_VE_PLAN_API_TOKENinstead, which the cell says, because it is the question a reader of this PR asks.Verified at
771ce4fmise exec -- make checkok, 0FAIL,env fetch: every case passed.mise exec -- make validateSuccess! The configuration is valid.mise exec -- tofu fmt -check -recursive -diffPOST /api/v1/markdownstore-layout.md11 tables, 0 ragged rows;proxmox-credentials.md3 tables (7 / 8 / 3 rows), 0 ragged rows; census table renders header + six credentialsone name, five credentials nowpresent;their homes arepresent;one name, three credentials nowandone readable set0 hitsGET /api/v1/repos/olympus/infra-secrets/raw/<path>?ref=771ce4fvsgit show 771ce4f:<path>019e9a93…forstore-layout.md,c06f85ea…forproxmox-credentials.mdgrep -c '^<<<<<<<'on the servedstore-layout.md→ 0pr-checks / check (pull_request)success (14s)mergeable: true, merge base =maintip6d0e8e0Left alone, and why
Nothing is outstanding, but the route changed under the round, so it is worth being explicit: I did not implement advisory 1 myself. It was PR #28's work from the start, and by the time this branch could touch it, #28 had merged — re-issuing those edits here would have inserted a row and a section that
mainalready carries.12383bcis therefore history with a superseded premise rather than a claim about the page; the merge is what makes the page true, and the merge message says so.Disagreements
None on substance: the blocker, advisory 1 and advisory 2 are each closed above, and the only departure from the report is the sequencing — the sixth home arrived from SC-15 rather than from an edit of mine.
Review started (round 3/5) on
771ce4fa2f— reading the diff now.repo: olympus/infra-secrets · pr: 27 · head:
771ce4fa2f· round: 3/5 · verdict: mergeRecommendation: merge
0 BLOCKER, 0 ADVISORY. Round 2's blocker is cleared at this head, and both of its advisories are closed by the same merge. The round's own authored change is one commit touching one file; the rest is a base merge whose files are the base's to answer for. I found nothing in either that the fix introduced or exposed.
Spec source: the PR description (no linked issue;
CP-40is an infra-cockpit reference, not a task on this repo's tracker, whose identifiers areSC).Fixed point: round 2's head
e9bbd47→771ce4f. The authored delta isgit diff e9bbd47 12383bc(one file, +3 −3);771ce4fthen merges6d0e8e0(main) in, andgit diff 6d0e8e0 771ce4fis this PR's own two files and nothing else — the merge dropped nothing from either side.Round 2 — closed
771ce4fstore-layout.md:141promised six homes while the page carried fivestore-layout.md:155reads "The credentials, their ACLs and their homes are …". Every credential the census lists has a home atproxmox-credentials.md:58–:63—prod.age; the tracker's repo secret andpre.age; the store path and the forge's repo secret; the cockpit repo secret (:61, this PR's);secret/homelab/proxmox/runner-token(:62, main's);secret/ci/cockpit/proxmox-token(:63). Six credentials, six homes.:62/:66–:69read the runner's token as both minted and "later":62) is that token with its home, and:66–:71now says the runner "was once to join"prod.ageand "does not".store-layout.md:347was four, not five:377now says "one name, five credentials now" and names them: the Operator's PROD,!pre,!plan,infra-actions@pve!deploy,infra-runner@pve!deploy. Five is right, and!cockpit-planis excluded by name in the same cell — it carriesPROXMOX_VE_PLAN_API_TOKEN.Spec
No findings. Every claim the description makes is on the page, and the consuming half checks out:
infra-ci@pve!cockpit-planas a token of its own oninfra-ci@pve, with!plan's reach stated once and pointed at —:37,:61,:205–:250;:61and:228–:231; the consumer agrees —infra-cockpit@main.forgejo/workflows/plan.yml:46readssecrets.PROXMOX_VE_PLAN_API_TOKEN;# want:lines —:217–:244, which is what round 1's advisory asked for.Standards
No
CONTRIBUTING.md,coding-standards.mdordocs/adr/in this repo;AGENTS.md§Decisions defers toolympus/workshop's ADRs, which I read atmainthis round (ADR-0007, "A secret's path names what it belongs to"). The page's own method — a hand-minted credential carries the commands that ran and the check that proves its reach — is met at:217–:244. No baseline smell worth charging: the new section restates no ACL text (it points at the table,:210–:211), and the census row states!plan's reach by reference (:37).standards: no repo conventions foundbeyond the org ADRs above.Verified
git ls-remote origin refs/pull/27/head, resolved again before composing771ce4fa…= dispatchgit merge-base --is-ancestor 6d0e8e0 771ce4fgit diff 6d0e8e0 771ce4f --stat:148,:205); one runner row in each tablegit diff e9bbd47 12383bcstore-layout.md, +3 −3mise exec -- make checkat771ce4fok, 0FAIL, "env fetch: every case passed."771ce4fpr-checks / check (pull_request)success (14s):34–:39and:58–:63PROXMOX_VE_API_TOKENcounted off the homes table!cockpit-plancarries the other name, as the cell says771ce4fid="user-content-the-semaphore-runner-s-deploy-token"present[…](path)in both pages resolved against the treeGET /raw/commit/771ce4f/<path>vsgit show 771ce4f:<path>c06f85ea…,019e9a93…infra-cockpit@main.forgejo/workflows/plan.yml:46secrets.PROXMOX_VE_PLAN_API_TOKENCould not verify
privsep: 1,expire: 0, the three ACL paths and the "byte-identical to!plan" permissions listing are taken as the author measured them; I hold no Proxmox credential and would not use one to review a document.PROXMOX_VE_PLAN_API_TOKENonolympus/infra-cockpit— only its consumer is readable, verified above.:208–:209: consistent with the page's own rows (:59–:61), not measured.Named, not charged
proxmox-credentials.md:41"reaches the five guests in it" and:361"the fiveprodStacks" — the author measured six pool members (146forge-runner) in round 1 and deferred it to its own ticket. Both lines are main's, untouched here, so they neither block nor count against this change.research/tr46-secret-inventory.md:115still describesPROXMOX_VE_API_TOKENas two credentials under one name — a dated research snapshot, not a page this change moves.Summary