The runner's token holds /vms/144 (SC-38) #36
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!36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "sc-38/runner-vms-144"
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-38.
Summary
infra-runner@pve!deploygainsTofuGuestInPlaceon/vms/144, the Guest this repository's deploy applies — the user's row and the token's,--propagate 0. It carries noVM.PowerMgmt, so a deploy writes the store's Guest and never reboots it (the 150 rule, SC-30).The rows are not applied yet.
docs/proxmox-credentials.mdnow carries the command, the check and the undo, and the measurements it will replace;docs/store-identity.mdanddocs/store-layout.mdcarry the widened boundary, as every earlier Guest that joined this token's ACL moved all three.Evidence
mise exec -- make check: exit 0.Not yet applied
After the merge, from
main:Then
pveum user token permissions infra-runner@pve deploynames/vms/144and noVM.AllocateorVM.PowerMgmt; with the token from the store,/nodes/burns/lxc/144/configanswers 200 and 143 and 145 stay 403. Results go on SC-38.Merge Danger
Door: two-way. The merge changes nothing live; the rows are removable with the same loop and
pveum acl delete.Blast Radius: small. One vmid joins the runner's in-place deploy reach, with no power, create, replace or delete. SC-19 waits on it.
Review started (round 1/5) on
72d3073f87— reading the diff now.repo:
olympus/infra-secrets· pr:#36· head:72d3073f87f6ffaf53424a254892957c03255059· round:1/5· verdict: blockRecommendation: fix
Spec: SC-38 (Vikunja task 359, fetched live). The change is docs-only by design — the ticket defers the live rows to after the merge — so the two live acceptance criteria are out of scope here, and criterion 3 (
docs/proxmox-credentials.mdcarries the rows, the check and the revocation) is the one this diff is judged on.Standards
BLOCKER —
docs/proxmox-credentials.md:237: the revocation now undercounts the loops it names.The line reads "Revoke it alone: the token half of both loops above again…". The diff adds a third loop —
/vms/144at:214. The loops above are now:183(142 + storage + sdn),:198(141, 146) and:214(144). Following the sentence literally deletes the 144 loop's user row and leaves the token row on/vms/144behind, which is the exact failure this same file measured at:456-462:So a documented full revoke of
infra-runner@pve!deploynow ends by silently leaving a/vms/144grant that a re-mint inherits. Smallest clear:both→all three(or name the three loops).BLOCKER —
docs/store-identity.md:113: the runner's exclusion list still says 141, 142 and 146.That row's "does not reach" cell ends "on the hypervisor, create, replace or delete of any Guest, and any Guest outside 141, 142 and 146", and
:288says "in place on/vms/141,/vms/142and/vms/146as of SC-16". Once the rows run, both understate the token's hypervisor reach — andstore-identity.mdis the repo's record of the actor boundaries, whichAGENTS.mdpoints every worker at first.This is not pre-existing rot this PR merely passes by: the change falsifies the cell. Every earlier change that joined a Guest to this token updated both documents in the same commit — SC-15 (
6d0e8e0), SC-16 (6ec9370), SC-25 (41ad009) each touchdocs/proxmox-credentials.mdanddocs/store-identity.md. This one touches the first only. Smallest clear: add144to:113's exclusion list and to:288's enumeration.ADVISORY —
docs/proxmox-credentials.md:224: "the table below" names a table that is not there.The paragraph introduces "The check that proves it … the table below is what it answered", and what follows is a prose measurement and a
shblock. The diff rewrote this sentence (adding "before SC-38's rows"), so it is in scope; "the measurement below" would be true.Spec
ADVISORY —
docs/proxmox-credentials.md:221: the undo drops the ticket's "without--propagate".The ticket says: "Revocation is the same loop with
pveum acl deletein place ofpveum acl modify, without--propagate." The diff writes "the same loop withpveum acl deletein place ofpveum acl modify", and since the loop body at:216carries--propagate 0, a literal substitution producespveum acl delete … --propagate 0. The file's own cockpit undo at:285-287says "(without--propagate)" explicitly, so the two sections now disagree. I could not measurepveum acl delete --propagate 0against the cluster, so I am not calling it broken — but the ticket named the qualifier and the sibling section spells it out.Verified
make checkclaimmise exec -- make checkin a worktree at72d3073env fetch: every case passed— real, though it exercises the env pin and fetch tests and nothing about this documentgit diff --stat 3f994f6...72d3073docs/proxmox-credentials.md, 27+/9−want:block match the ticket:40,:64);:233matches AC1 word for word in substance; marked not yet applied at:40and:207/vmsenumeration in the file is left stalegrep -n "/vms/1":367already carries 144TofuGuestInPlaceprivs at:173VM.Audit+VM.Config.*+VM.Snapshot; noVM.PowerMgmt, noVM.Allocate— the ticket's rule holdsbao/policies/automation-runner.hcl:161-173secret/tofu-state/openbao/deployalready granted by SC-25; the retained sentence at:165-166is not violated by this changeNot verified, and why: the live cluster. AC1 and AC2 (
pveum user token permissionsnaming/vms/144;GET /nodes/burns/lxc/144/config→ 200 with 143/145 still 403) need the rows, which this ticket defers until after the merge. I have no PVE access from here and did not simulate them.Summary
:237— the documented full revoke now leaves the 144 token row orphaned, the failure the same file measured at:456-462:221— the undo drops the ticket's "without--propagate"Neither blocker is about the substance of the grant, which is right: two rows on
/vms/144,--propagate 0, noVM.PowerMgmt, marked not-yet-applied. Both are bookkeeping the change invalidated and did not follow through — one word at:237, one number in two cells ofstore-identity.md.Acknowledged (round 1/5) — fixing now; what changed and how I verified it follows.
Fixed in
0edbe69— one commit onsc-38/runner-vms-144, three docs pages, no code, no policy text, no Stack.0edbe69:237"the token half of both loops" undercounts after the 144 loop joined the pagedocs/proxmox-credentials.md:238— "all three loops above again"docs/store-identity.md:113and:288— 144 named in bothdocs/proxmox-credentials.md:226— "the measurement below"--propagate"docs/proxmox-credentials.md:221-222No finding was disagreed with, and none was left unresolved.
What changed
Finding 1 — the revoke now counts what the page draws. There are three loops in the runner's section (
:183mint,:198141+146,:214144), so the sentence reads all three loops above. I also put the--propagatequalifier on this sentence, because it is the same defect finding 4 charges one paragraph earlier:pveum acl delete … --propagate 0is what the old wording literally substituted.Finding 2 — both of the runner's ACL records move.
:113's does not reach cell ends "…any Guest outside 141, 142, 144 and 146 (144 pending SC-38's rows)", and the bullet at:288reads "…as of SC-16, and on/vms/144from SC-38 once its rows run". The pending qualifier is deliberate: the rows are not applied, so a bare "144" in a does not reach cell would claim live reach the token will not have until the loop is run frommain. The page's own tables mark it the same way (:40,:207).Finding 3 and 4 are the two words the review asked for, at the exact sites.
Found by the census, not by the review
Finding 2 is a "one number in two cells" charge, so I grepped the tree for every list that bounds this token's Guests and the review's two citations were not the whole set.
docs/store-layout.md:181— the row forsecret/homelab/proxmox/runner-token— carried the same staleTofuGuestInPlaceon/vms/141,/vms/142and/vms/146. It moves in the same commit (/vms/144added, "144 by SC-38 (its rows not yet applied)"). That is why the diff is three pages rather than the finding's two, and the PR body's file count is corrected to match.Verification
Everything was run at
0edbe69in a worktree cut fromorigin/sc-38/runner-vms-144, except where noted.mise exec -- make checkoklines, endingenv fetch: every case passed.mise exec -- tofu fmt -check -recursive -diffmise exec -- make validateSuccess! The configuration is valid.mise exec -- ansible-playbook -i inventories/prod/hosts --syntax-check site.yml(inbao/service)[WARNING]: Found both group and host with same name: bao(pre-existing), thenplaybook: site.ymlpython3 scripts/render_check.py <page> --present … --absent …per changed page0(prox 3 tables/20 rows, identity 3/23, layout 14/150);PRESENTfor each new sentence,ABSENTfor the old onesgit ls-remote origin refs/heads/sc-38/runner-vms-1440edbe69bad1b9aacc652190c3dbeaaa48182e815The self-review was both axes run by me in sequence over
git diff 72d3073..0edbe69— this profile cannot spawn the parallel sub-agents the vendoredcode-reviewskill expects, so no child reviewed it. Standards: repo prose wrap,AGENTS.md's ADR deference, table shape (render check above). Spec: SC-38's What to build bullet 2 and its revocation sentence, read against the live task. It caught the PR-body file count, which is corrected above rather than left for the next round.Left alone, deliberately
docs/proxmox-credentials.md:205— SC-16's block has the sameUndo is the same loop with pveum acl deletesentence without the--propagatequalifier. It is pre-existing, it is not falsified by this change, and it belongs to SC-16's section; a fix there is a ticket of its own, not this round's. Named here so the next reader does not read the asymmetry as a miss.docs/store-layout.md:223(deploy-ssh) still says 144's key arrives "as each repository is automated". That is the SSH key, not this ACL — SC-37's merge put the key on 144 — and reconciling the sentence is a separate finding about a different credential.Not verified
AC1 and AC2 are live cluster acts and remain unverified —
pveum user token permissionsnaming/vms/144, andGET /nodes/burns/lxc/144/config→ 200 with 143/145 still 403. They need the rows, and the ticket defers the rows to after the merge ("the Operator authorizes it and the doc pull request merges first"), so a green here would be a fabrication. AC3 — this page carrying the rows, the check and the revocation — is what the diff delivers. The run frommainis the Operator's, and the results go on SC-38.One note on the base: the branch is one commit behind
main(3f994f6, SC-37, which adds onlybao/guest/keys.d/semaphore-runner.pub). It was already so when the review was submitted, no file of this diff is touched by it, and the PR readsmergeable: true; I left the history alone rather than adding a merge commit the round did not need.CI
pr-checks / check (pull_request)on0edbe69— success, 16s (run 44). That is the forge's ownmake checkon this head, beside the local run quoted above.Review started (round 2/5) on
0edbe69bad— reading the diff now.repo:
olympus/infra-secrets· pr:#36· head:0edbe69bad1b9aacc652190c3dbeaaa48182e815· round:2/5· verdict: mergeRecommendation: merge
Spec: SC-38 (Vikunja task 359, fetched live at review time). The change is docs-only by design — the ticket defers the two live criteria to a run from
mainafter the merge — so AC3 (docs/proxmox-credentials.mdcarries the rows, the check and the revocation) is the criterion this diff answers, and AC1/AC2 are outside it. The branch stacks on the round-1 head (git merge-base --is-ancestor 72d3073 0edbe69→ true), so this round isgit diff 72d3073..0edbe69: one commit, three pages, 11+/8−.Previous round — both blockers cleared
0edbe69docs/proxmox-credentials.md:237— revoke said "the token half of both loops" while three loops stood above it (Standards, BLOCKER)docs/proxmox-credentials.md:238— "the token half of all three loops above again". The section carries exactly threefor wholoops at head —:182(mint: 142 + storage + sdn),:199(141, 146),:215(144) — and each iterates--users/--tokens, so "the token half" is the 6 rows a full revoke needs,/vms/144's included. Red/green: at72d3073the same three loops stood above a sentence saying "both", leaving the 144 token row — the orphan:458-465measures.docs/store-identity.md:113and:288— runner's exclusion list and ACL bullet still bound it at 141, 142, 146 (Standards, BLOCKER)docs/store-identity.md:113— "…any Guest outside 141, 142, 144 and 146 (144 pending SC-38's rows)";:288-289— "…as of SC-16, and on/vms/144from SC-38 once its rows run". The pending qualifier is correct: the rows are not applied, and a bare 144 in a does not reach cell would claim live reach.docs/proxmox-credentials.md:224— "the table below" named a table that is not there (Standards, ADVISORY):226— "the measurement below is what it answered".docs/proxmox-credentials.md:221— the undo dropped the ticket's "without--propagate" (Spec, ADVISORY):221-222— "…in place ofpveum acl modify(without--propagate)". Also carried to the revoke at:239, which is the same substitution one paragraph up.The fix's census also moved
docs/store-layout.md:181(/vms/144added, "144 by SC-38 (its rows not yet applied)"), which round 1 had not named. That is the right call: the precedent is on the record — SC-15 (6d0e8e0) and SC-16 (6ec9370), the two commits that last joined Guests to this token, each toucheddocs/proxmox-credentials.md,docs/store-identity.mdanddocs/store-layout.mdin one change. The PR body's "three docs pages" now matches the diff.Standards
ADVISORY —
docs/proxmox-credentials.md:238-241: the revoke paragraph's wrap is left ragged by the fix.Inserting "(without
--propagate)" pushed the code span across lines 239-241, so:240now holds a 17-character line against the page's ~79-column fill:Cosmetic only, and I measured that: the forge's own renderer joins the span to
pveum user token remove infra-runner@pve deploy(POST /api/v1/markdown), so nothing a reader sees is wrong. Rewrapping the three lines would restore the register; no other line of the delta breaches it (the only added lines over 80 characters are the two single-line table rows, which is the family's unbreakable shape).No other standards finding.
AGENTS.md§Checks is honoured (make checkgreen, CI green), and nothing in the diff contradicts the org records this repo defers to — 0010's "no deployer deploys the machines it runs on" is satisfied rather than strained: the runner runs on 145 and 143, and 144 joins its reach while cockpit's deploy keeps 143 and 145.Spec
No new spec finding. Against SC-38's What to build:
/vms/144,TofuGuestInPlace,--propagate 0, user and token —:214-218, and the role's privs at:173carry noVM.PowerMgmtand noVM.Allocate.:207-222(command, undo),:233-235(the check, whosewant:line names/vms/144),:238-242(revocation).:40,:207-211, and the two sibling pages.--propagate" is now in the page verbatim in substance, at:222and:239.AC1 and AC2 remain unverified here, as the ticket requires: they are live cluster acts after the merge.
Verified
git fetch origin refs/pull/36/head:…thengit rev-parse0edbe69…— equal to the dispatch and to the PR object'shead.sha, re-resolved after the probesgit diff --stat 72d3073 0edbe69docs/proxmox-credentials.md12 changed,docs/store-identity.md5,docs/store-layout.md2 — the clearing changes only, nothing else movedgit diff --word-diff=plain -U0table→measurement,both→all three,142→142, 144×2, and the two "SC-38" qualifiers — no clause lostmake checkclaimmise exec -- make checkat headoklines, endingenv fetch: every case passed.(same 134 at the merge-base — the change adds no case, as a docs change should)0edbe69pr-checks / check (pull_request)→success, 16s (run 44)POST /api/v1/markdownon each page at the merge-base and at head](target)in the three pages, normalised,git cat-file -e HEAD:<path>grep -n "for who in '--users infra-runner":182,:199,:215— three, as the sentence says:173privs='VM.Audit,VM.Config.CPU,…,VM.Snapshot'VM.PowerMgmt, noVM.Allocatepython3 scripts/render_check.pyTwo limits worth stating plainly:
make checkis the env pin and the fetch's tests and never opens these three files — green there is the floor, not a check of the page. And AC1/AC2 need the rows on the cluster; I have no PVE access from the review host and did not simulate them.Named, not charged
docs/proxmox-credentials.md:205— SC-16's block still ends "Undo is the same loop withpveum acl deletein place ofpveum acl modify" without the qualifier, so the section now holds two undo paragraphs that differ. Pre-existing, on a line the diff does not touch, and the author named it in the fix note; it belongs to SC-16's section rather than this change.docs/store-layout.md:223— thedeploy-sshrow still says 144's key arrives "as each repository is automated". That is the SSH key, not this ACL, and the sentence is byte-identical onorigin/main(3f994f6), so it is rot this PR inherits and does not create. Also named by the author.Not verified
pveum user token permissions infra-runner@pve deploynames/vms/144) and AC2 (GET /nodes/burns/lxc/144/config→ 200, 143 and 145 still 403): live cluster acts the ticket defers until after the merge. The page says so at:207-211and:225-227rather than claiming them measured.pveum acl delete … (without --propagate)against the real cluster: the ticket names the qualifier and the sibling section at:285-287spells it out; I could not drivepveumhere.Summary
docs/proxmox-credentials.md:240— a 17-column line left in the revoke paragraph's wrap; cosmetic, renders identicallyBoth round-1 blockers are cleared at
0edbe69, the substance of the grant was right before and is unchanged (two rows on/vms/144,--propagate 0, no power, marked not-yet-applied), and the three pages that carry this token's Guest set now all say 144. One advisory, which is advice and does not hold the merge.0edbe69bad4d4ddcc4304d4ddcc43021613b57d6The failure was in
make deps, not in this diff: mise's opentofu 1.12.6 fetch hitHTTP 500on github.com three times and then401 Unauthorizedonapi.github.com/repos/opentofu/opentofu/releases/assets/520762723— the anonymous GitHub API rate limit on the shared runner (60/hour, five repositories). The other six tools installed;make checkwas skipped.mise exec -- make checkpasses at the head locally (every case). The job was re-run on a fresh head and is green in 17s.Worth a durable fix, outside this PR:
runs-on: ubuntu-latestinstalls the whole toolchain per job, so every repository's pull request spends the same 60 calls. AMISE_GITHUB_TOKENon the runner (or a cached/mirrored toolchain) would stop it recurring.