The silo's plan token is minted and recorded (SC-34) #42

Merged
pit merged 1 commit from hermes/SC-34-the-silo-s-plan-token-is-minted-and-reco into main 2026-11-10 20:41:38 +00:00
Member

Implements SC-34

Summary

A Proxmox token of its own for infra-silo's pull-request plan check, minted on the cluster and recorded on the page that owns the credential census.

infra-ci@pve!silo-plan   privsep 1, expire 0
  /vms/150               PVEAuditor          propagate 1   ← the Guest, and the only Guest
  /storage/fast-storage  TofuDatastoreAudit  propagate 1
  /storage/synology      TofuDatastoreAudit  propagate 1
  /pool/prod             —                   no row, unlike !plan and the tokens cut from it
 docs/
 ├── proxmox-credentials.md
+│   ├── the census: eight credentials, and !silo-plan's row
+│   └── a new section: the mint commands, the reach, the check, the revocation
 └── store-layout.md
+    └── the inventory row names !silo-plan beside !cockpit-plan and !tracker-plan

The value is printed once by token add and this ticket does not hold it: PROXMOX_VE_PLAN_API_TOKEN on olympus/infra-silo is SL-30's act, so that ticket re-mints under the same id to capture one. The page carries that rotation, rows first — the measured lesson that token remove leaves ACL rows behind.

Evidence

Before: pvesh get /access/users/infra-ci@pve/token listed four tokens — pre, plan, cockpit-plan, tracker-plan — and no silo-plan.

After:

$ pveum user token permissions infra-ci@pve silo-plan
/storage/fast-storage │ Datastore.Audit (*)
/storage/synology     │ Datastore.Audit (*)
/vms/150              │ Datastore.Audit, Mapping.Audit, Pool.Audit, SDN.Audit,
                      │ Sys.Audit, VM.Audit, VM.GuestAgent.Audit
# `/vms/150` is the only /vms row — SC-34's first criterion

$ with the token's own header, against the live API
GET /nodes/burns/lxc/150/config                200
GET /nodes/burns/lxc/150/snapshot              200
GET /nodes/burns/lxc/142/config                403
GET /nodes/burns/lxc/144/config                403
GET /nodes/burns/storage/fast-storage/content  200
GET /nodes/burns/storage/synology/content      200
GET /pools/prod                               403

$ mise exec -- make check
exit 0 — env-check, env-test and plan-test: "plan tests: every case passed."

Revoking it is the acl delete lines then token remove, both on the page; the silo's deploy rows belong to infra-runner@pve!deploy on another user, so the deploy keeps running.

Merge Danger

Door: two-way. The page reverts; the token outlives a revert, and revoking it is the four commands the page records.

Blast Radius: narrow — documentation only, plus one read-only token on one Guest that no job reads yet. SC-33 (the forge's plan token) edits the same census lines in this file, so whichever lands second rebases the count and the !plan-shaped rows.

Implements [SC-34](https://vikunja.thepit.space/tasks/334) ## Summary A Proxmox token of its own for infra-silo's pull-request plan check, minted on the cluster and recorded on the page that owns the credential census. ```text infra-ci@pve!silo-plan privsep 1, expire 0 /vms/150 PVEAuditor propagate 1 ← the Guest, and the only Guest /storage/fast-storage TofuDatastoreAudit propagate 1 /storage/synology TofuDatastoreAudit propagate 1 /pool/prod — no row, unlike !plan and the tokens cut from it ``` ```diff docs/ ├── proxmox-credentials.md +│ ├── the census: eight credentials, and !silo-plan's row +│ └── a new section: the mint commands, the reach, the check, the revocation └── store-layout.md + └── the inventory row names !silo-plan beside !cockpit-plan and !tracker-plan ``` The value is printed once by `token add` and this ticket does not hold it: `PROXMOX_VE_PLAN_API_TOKEN` on `olympus/infra-silo` is SL-30's act, so that ticket re-mints under the same id to capture one. The page carries that rotation, rows first — the measured lesson that `token remove` leaves ACL rows behind. ## Evidence **Before:** `pvesh get /access/users/infra-ci@pve/token` listed four tokens — `pre`, `plan`, `cockpit-plan`, `tracker-plan` — and no `silo-plan`. **After:** ``` $ pveum user token permissions infra-ci@pve silo-plan /storage/fast-storage │ Datastore.Audit (*) /storage/synology │ Datastore.Audit (*) /vms/150 │ Datastore.Audit, Mapping.Audit, Pool.Audit, SDN.Audit, │ Sys.Audit, VM.Audit, VM.GuestAgent.Audit # `/vms/150` is the only /vms row — SC-34's first criterion $ with the token's own header, against the live API GET /nodes/burns/lxc/150/config 200 GET /nodes/burns/lxc/150/snapshot 200 GET /nodes/burns/lxc/142/config 403 GET /nodes/burns/lxc/144/config 403 GET /nodes/burns/storage/fast-storage/content 200 GET /nodes/burns/storage/synology/content 200 GET /pools/prod 403 $ mise exec -- make check exit 0 — env-check, env-test and plan-test: "plan tests: every case passed." ``` Revoking it is the `acl delete` lines then `token remove`, both on the page; the silo's deploy rows belong to `infra-runner@pve!deploy` on another user, so the deploy keeps running. ## Merge Danger **Door:** two-way. The page reverts; the token outlives a revert, and revoking it is the four commands the page records. **Blast Radius:** narrow — documentation only, plus one read-only token on one Guest that no job reads yet. SC-33 (the forge's plan token) edits the same census lines in this file, so whichever lands second rebases the count and the `!plan`-shaped rows.
ticket-dispatch: the silo's plan token is minted on 150 alone (SC-34)
All checks were successful
pr-checks / check (pull_request) Successful in 23s
6ec20998e8
Member

Review started (round 1/5) on 6ec20998e8 — reading the diff now.

**Review started** (round 1/5) on 6ec20998e8cb9a5aafd6b8b85239b44e62a15150 — reading the diff now.
bot-minos approved these changes 2026-11-10 20:33:41 +00:00
bot-minos left a comment

Review — olympus/infra-secrets#42 · head 6ec20998e8cb9a5aafd6b8b85239b44e62a15150 · round 1/5 (no earlier review on the thread; the dispatch said 1/5 too) · verdict: merge

Recommendation: merge

Spec source: SC-34 (Vikunja project 8, task 334), read live — its three acceptance criteria are the contract. Standards source: AGENTS.md §Checks (make check is the floor and main refuses to merge while it is red) and the org ADRs in olympus/workshop docs/adr/ at main (0001–0012, read from the forge). The repo has no documentation-style rules of its own, so link and count hygiene is judged by general good practice, and I say so where it matters.

Delta: this is round 1, so the delta is the whole change: git diff 65eb4a3 HEAD (merge-base = base head), one commit, two files — docs/proxmox-credentials.md (+106 −3) and docs/store-layout.md (+1 −1). No code, no workflow, no script.

Spec

Every acceptance criterion reproduced against the live cluster over ssh (burns, pve-manager/9.2.21), read-only.

SC-34 line Result Evidence
Mint a PVEAuditor token on 150 with TofuDatastoreAudit on both storages met pvesh get /access/users/infra-ci@pve/token lists silo-plan, privsep 1, expire 0, comment SC-34: infra-silo pull-request plan check. pvesh get /access/acl: /vms/150 PVEAuditor, /storage/fast-storage and /storage/synology TofuDatastoreAudit, all token, all propagate 1 — the doc's "all three rows carry propagate: 1" is true.
AC1: pveum user token permissions shows 150 and no other Guest met pveum user token permissions infra-ci@pve silo-plan printed exactly three paths: the two storages (Datastore.Audit (*)) and /vms/150 (the seven *.Audit privileges). The body's "After" block and the page's listing match it in content, including the doc's remark that (*) marks the storage rows and not /vms/150.
AC2: the doc names the token, its reach, its consumer and its revocation met Census row (docs/proxmox-credentials.md:44), credentials-table row (:70), new section ## infra-silo's plan token (:404). Revocation block uses the same pveum acl delete … --roles … --tokens signature as the cockpit/tracker sections.
AC3: revoking it stops the silo's plan job alone structurally met No other token's rows move: /vms/150 deploy rows belong to infra-runner@pve and infra-runner@pve!deploy (TofuGuestInPlaceNoPower), a different user. The page says plainly this is stated by the ACLs until the consumer exists.

Claims checked beyond the criteria:

  • "Its consumer is not wired yet" — at olympus/infra-silo origin/main (502539c) the only workflow is .forgejo/workflows/pr-checks.yml, and git grep PROXMOX_VE_PLAN_API_TOKEN over that tree answers nothing. True.
  • "silo/guest declares pool_id under lifecycle.ignore_changes" — silo/guest/container.tf:92 at that same commit. True.
  • "Nothing outside the *.Audit set is in the listing" — true; no write privilege anywhere.
  • make check — exit 0 here, ending plan tests: every case passed.; CI pr-checks / check (pull_request) is success at this SHA.
  • Secret scan of the added lines (UUID, =<token>, key blocks): empty. The page records the mint and says the value was not kept — no credential in the diff.

Findings (Spec axis)

  1. ADVISORY — docs/proxmox-credentials.md:417-418: "A grant on the pool would have reached four more Guests for nothing." The pool prod holds seven members today (pvesh get /pools/prod: 141, 142, 143, 144, 145, 146, 150), so a pool grant would have reached six more Guests; the page's own tracker section says the same member set at :375-376 ("141, 142, 143, 144, 145, 146 and 150 (145 and 146 joined after the pools table was written)"). The "four" is the stale five-guest framing at :48 and the pools table. Nothing procedural depends on it — the narrowing is right, and the understated count only weakens the argument for it. Clearing change: "six", or drop the number.

Standards

Standards source as above. AGENTS.md §Checks is met (green locally and in CI). No ADR is engaged: no store path is added (ADR-0007 is not touched — the sibling plan tokens are likewise repository secrets with no path), nothing here deploys or destroys (0009/0011), and the Door is declared in the body as two-way with the revocation recorded. Smell baseline: the new section deliberately mirrors the cockpit and tracker sections in shape; that is the page's own convention, not a Duplicated Code finding.

Findings (Standards axis)

  1. ADVISORY — two dead in-page links: docs/proxmox-credentials.md:70 ([below](#infra-silos-plan-token)) and :595 ([above](#infra-silos-plan-token)). Forgejo's render turns the apostrophe in ## infra-silo's plan token (:404) into a hyphen, so the served page carries id="user-content-infra-silo-s-plan-token" and no user-content-infra-silos-plan-token (checked against the page served at this SHA, not a local slugger; the sibling headings are infra-cockpit-s-plan-token and infra-tracker-s-plan-token, and the page's one existing apostrophe link, :30, already uses the hyphen form #the-semaphore-runner-s-deploy-token). Both links are the ones a reader follows to reach the mint and rotation steps, and both dead-end. Clearing change: #infra-silo-s-plan-token in both places. No repo rule covers links (infra-silo's AGENTS.md has one; this repo's does not), so this is judged by general good practice and graded advisory — the heading is named in the sentence, so a reader is not stranded.

Named, not charged

  • forge-plan is live and unrecorded. The cluster already carries infra-ci@pve!forge-plan (SC-33, ACL rows on 141/146 and both storages); its record is the open PR #43, which is not on main. The page's "Eight credentials — eight tokens on four users" (:34, :565) counts what this PR's table lists and will read one short of pvesh until #43 lands. The body discloses that #43 edits the same census lines and that whichever lands second rebases the count; that is a merge-order matter, not a defect in this change.
  • The HTTP probe table (150 → 200, 142/144/100//pools/prod → 403) was not reproduced. The token's value was deliberately not kept, so I could not send it. It is determined by the measured privilege map (no /vms/142, /vms/144 or /pool/prod row on the token, Pool.Audit only inside /vms/150), but it is the author's dated measurement, not mine.
  • No plan has been run with this token — the consumer is SL-30's. Whether silo/guest's plan needs anything beyond these rows is the page's own ## Open entry, which says it widens by a reviewed change.
  • :48 ("reaches the five guests in it") and the pools table are pre-existing and untouched.

Counts

  • Spec axis: 1 finding (0 BLOCKER, 1 ADVISORY) — worst: the "four more Guests" count at :417-418.
  • Standards axis: 1 finding (0 BLOCKER, 1 ADVISORY) — worst: the two dead #infra-silos-plan-token anchors at :70 and :595.

No blocker stands, so the review state is APPROVE. Two advisories is under the three that turn the recommendation: merge. Both advisories are a one-token fix each and can ride along with the rebase onto #43.

<!-- minos review-loop: repo=olympus/infra-secrets pr=42 head=6ec20998e8cb9a5aafd6b8b85239b44e62a15150 round=1/5 axes=standards,spec --> **Review** — olympus/infra-secrets#42 · head `6ec20998e8cb9a5aafd6b8b85239b44e62a15150` · round 1/5 (no earlier review on the thread; the dispatch said 1/5 too) · verdict: **merge** Recommendation: merge **Spec source:** SC-34 (Vikunja project 8, task 334), read live — its three acceptance criteria are the contract. **Standards source:** `AGENTS.md` §Checks (`make check` is the floor and `main` refuses to merge while it is red) and the org ADRs in `olympus/workshop` `docs/adr/` at `main` (0001–0012, read from the forge). The repo has no documentation-style rules of its own, so link and count hygiene is judged by general good practice, and I say so where it matters. **Delta:** this is round 1, so the delta is the whole change: `git diff 65eb4a3 HEAD` (merge-base = base head), one commit, two files — `docs/proxmox-credentials.md` (+106 −3) and `docs/store-layout.md` (+1 −1). No code, no workflow, no script. ## Spec Every acceptance criterion reproduced against the live cluster over ssh (`burns`, `pve-manager/9.2.21`), read-only. | SC-34 line | Result | Evidence | | --- | --- | --- | | Mint a `PVEAuditor` token on 150 with `TofuDatastoreAudit` on both storages | met | `pvesh get /access/users/infra-ci@pve/token` lists `silo-plan`, `privsep 1`, `expire 0`, comment `SC-34: infra-silo pull-request plan check`. `pvesh get /access/acl`: `/vms/150 PVEAuditor`, `/storage/fast-storage` and `/storage/synology` `TofuDatastoreAudit`, all `token`, all `propagate 1` — the doc's "all three rows carry `propagate: 1`" is true. | | AC1: `pveum user token permissions` shows 150 and no other Guest | met | `pveum user token permissions infra-ci@pve silo-plan` printed exactly three paths: the two storages (`Datastore.Audit (*)`) and `/vms/150` (the seven `*.Audit` privileges). The body's "After" block and the page's listing match it in content, including the doc's remark that `(*)` marks the storage rows and not `/vms/150`. | | AC2: the doc names the token, its reach, its consumer and its revocation | met | Census row (`docs/proxmox-credentials.md:44`), credentials-table row (`:70`), new section `## infra-silo's plan token` (`:404`). Revocation block uses the same `pveum acl delete … --roles … --tokens` signature as the cockpit/tracker sections. | | AC3: revoking it stops the silo's plan job alone | structurally met | No other token's rows move: `/vms/150` deploy rows belong to `infra-runner@pve` and `infra-runner@pve!deploy` (`TofuGuestInPlaceNoPower`), a different user. The page says plainly this is stated by the ACLs until the consumer exists. | Claims checked beyond the criteria: - "Its consumer is not wired yet" — at `olympus/infra-silo` `origin/main` (`502539c`) the only workflow is `.forgejo/workflows/pr-checks.yml`, and `git grep PROXMOX_VE_PLAN_API_TOKEN` over that tree answers nothing. True. - "`silo/guest` declares `pool_id` under `lifecycle.ignore_changes`" — `silo/guest/container.tf:92` at that same commit. True. - "Nothing outside the `*.Audit` set is in the listing" — true; no write privilege anywhere. - `make check` — exit 0 here, ending `plan tests: every case passed.`; CI `pr-checks / check (pull_request)` is `success` at this SHA. - Secret scan of the added lines (UUID, `=<token>`, key blocks): empty. The page records the mint and says the value was not kept — no credential in the diff. **Findings (Spec axis)** 1. **ADVISORY** — `docs/proxmox-credentials.md:417-418`: "A grant on the pool would have reached four more Guests for nothing." The pool `prod` holds seven members today (`pvesh get /pools/prod`: 141, 142, 143, 144, 145, 146, 150), so a pool grant would have reached **six** more Guests; the page's own tracker section says the same member set at `:375-376` ("141, 142, 143, 144, 145, 146 and 150 (145 and 146 joined after the pools table was written)"). The "four" is the stale five-guest framing at `:48` and the pools table. Nothing procedural depends on it — the narrowing is right, and the understated count only weakens the argument for it. Clearing change: "six", or drop the number. ## Standards Standards source as above. `AGENTS.md` §Checks is met (green locally and in CI). No ADR is engaged: no store path is added (ADR-0007 is not touched — the sibling plan tokens are likewise repository secrets with no path), nothing here deploys or destroys (0009/0011), and the Door is declared in the body as two-way with the revocation recorded. Smell baseline: the new section deliberately mirrors the cockpit and tracker sections in shape; that is the page's own convention, not a Duplicated Code finding. **Findings (Standards axis)** 2. **ADVISORY** — two dead in-page links: `docs/proxmox-credentials.md:70` (`[below](#infra-silos-plan-token)`) and `:595` (`[above](#infra-silos-plan-token)`). Forgejo's render turns the apostrophe in `## infra-silo's plan token` (`:404`) into a hyphen, so the served page carries `id="user-content-infra-silo-s-plan-token"` and **no** `user-content-infra-silos-plan-token` (checked against the page served at this SHA, not a local slugger; the sibling headings are `infra-cockpit-s-plan-token` and `infra-tracker-s-plan-token`, and the page's one existing apostrophe link, `:30`, already uses the hyphen form `#the-semaphore-runner-s-deploy-token`). Both links are the ones a reader follows to reach the mint and rotation steps, and both dead-end. Clearing change: `#infra-silo-s-plan-token` in both places. No repo rule covers links (infra-silo's `AGENTS.md` has one; this repo's does not), so this is judged by general good practice and graded advisory — the heading is named in the sentence, so a reader is not stranded. ## Named, not charged - **`forge-plan` is live and unrecorded.** The cluster already carries `infra-ci@pve!forge-plan` (SC-33, ACL rows on 141/146 and both storages); its record is the open PR #43, which is not on `main`. The page's "Eight credentials — eight tokens on four users" (`:34`, `:565`) counts what this PR's table lists and will read one short of `pvesh` until #43 lands. The body discloses that #43 edits the same census lines and that whichever lands second rebases the count; that is a merge-order matter, not a defect in this change. - **The HTTP probe table (150 → 200, 142/144/100/`/pools/prod` → 403) was not reproduced.** The token's value was deliberately not kept, so I could not send it. It is *determined by the measured privilege map* (no `/vms/142`, `/vms/144` or `/pool/prod` row on the token, `Pool.Audit` only inside `/vms/150`), but it is the author's dated measurement, not mine. - **No plan has been run with this token** — the consumer is SL-30's. Whether `silo/guest`'s plan needs anything beyond these rows is the page's own `## Open` entry, which says it widens by a reviewed change. - `:48` ("reaches the five guests in it") and the pools table are pre-existing and untouched. ## Counts - **Spec axis:** 1 finding (0 BLOCKER, 1 ADVISORY) — worst: the "four more Guests" count at `:417-418`. - **Standards axis:** 1 finding (0 BLOCKER, 1 ADVISORY) — worst: the two dead `#infra-silos-plan-token` anchors at `:70` and `:595`. No blocker stands, so the review state is APPROVE. Two advisories is under the three that turn the recommendation: **merge**. Both advisories are a one-token fix each and can ride along with the rebase onto #43.
pit merged commit a22d59fd38 into main 2026-11-10 20:41:38 +00:00
pit deleted branch hermes/SC-34-the-silo-s-plan-token-is-minted-and-reco 2026-11-10 20:41:38 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
olympus/infra-secrets!42
No description provided.