The Semaphore runner gets its policy and infra-tracker's reach (SC-15) #28
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!28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/sc15-semaphore-runner-policy-reach"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
SC-15. The Semaphore runner's AppRole gets
automation-runner, and the policy carries infra-tracker's reach.The nine grants, each
secret/data/<path>withreadalone, no list:Reach is staged one repository per change (CP-17): this is infra-tracker, and nothing here reaches 143 or 145, which are cockpit's.
Evidence
silo/*,ci/cockpit/*,ci/tracker/*, the other Semaphore paths, the Test twins and every apply/plan key;listand write refused.make serviceapplied it (changed=5: both policies, therunnerrole, its entity, the alias join), andmake service-checkthen reported no pending writes.runnerrole carried no policy, andinfra-runner@pvedid not exist.After:
pveum user token permissions infra-runner@pve deploylists/vms/142only,/storage/synology,/sdn/zones; live APIGET /nodes/burns/lxc/142/config200, 143/145/100 403,POST /nodes/burns/lxc403.secret/tofu-state/tracker-{guest,edge}/deployare in the store (infra-silo mints the keys); fetched from the store, each reads its own record, is 403 onprod/openbao.tfstate, and is refused a delete outside its policy.make checkpasses.Two paths named here are not written, and cannot be yet:
secret/ci/tracker/semaphore-apineeds the tracker's Semaphore project (CP-43), and the seed needs Guest 145, which does not exist (CP-42). The policy reads them, so they land without another change to this file.Merge Danger
Door: two-way. A policy write is versioned and the role reverts by re-running the playbook against an earlier text; no credential is rotated by this change.
Blast Radius: one actor. Nothing consumes the reach yet — the runner Guest it belongs to does not exist (CP-42), so merging grants a login that cannot be made and widens nothing in practice.
Review started (round 1/5) on
39a30b41ca— reading the diff now.olympus/infra-secrets#28 · head
39a30b41· round 1/5 (dispatch said 1/5; the thread carries no prior review) · verdict request changesRecommendation: fix
Spec
The spec is SC-15 (Vikunja task 15, project 8): the
runnerAppRole getsautomation-runnerand infra-tracker's reach, staged; plus the Proxmox userinfra-runner@pve,ci-tracker's read on the tracker's Semaphore token, and the two docs. The PR body restates it and adds its own claims, which I judged it against.BLOCKER —
docs/store-identity.md:25-30records the opposite of what this PR says the store holds.The page says the runner's class is "not yet in the store", that "the next run of the role writes the policy, the role's
token_policiesand the runner's entity", and that "until the Operator runs it … a runner login carriesdefaultalone". The PR's own Evidence says otherwise: "The real store:make serviceapplied it (changed=5: both policies, therunnerrole, its entity, the alias join), andmake service-checkthen reported no pending writes." Commit87193b2— "docs: record what the store now holds for the runner" — states the same ("The runner AppRole carries automation-runner in the store, with its entity"), and the SC-15 ticket comment records the policy reading back byte-identical from the live store with no pending writes. The paragraph was written in79428c3;87193b2, whose stated job was to record the applied state, updateddocs/proxmox-credentials.mdanddocs/store-layout.mdand left this page alone. Two of the three changed pages now say "in place" and the third says "not yet" — and this is the page a reader consults before running the playbook.Clears when: that paragraph is rewritten to the applied state (as the other two pages were in
87193b2), or — if the page is right and the store does not carry it — the Evidence section is corrected instead. One sentence either way.ADVISORY — SC-15's seed bullet is undelivered, so acceptance criterion 1 is unreachable as written.
Criterion 1 is "an AppRole login with the seed on 145 reads each named path, and is refused on
secret/silo/*,secret/ci/cockpit/*and any path outside the policy". The seed is not minted (bao/recipients/README.md:23,26-31,docs/store-identity.md:50), Guest 145 does not answer (10.12.0.145:22closed from here,10.12.0.142:22open), andrunner.role_idin infra-tracker is another repository's commit. The ticket makes the seed the Operator's act and the body declares both gaps, so this is not a defect in the diff — it is the spec item still pending. I reproduced the policy half of the criterion instead, below.Standards
Standards read:
AGENTS.md(theolympus/workshopADRs bind and are read first;make checkis the merge floor) andolympus/workshopdocs/adr/atmain— 0007 (a path names what it belongs to), 0012 (a deploy's key reads the record and cannot delete it), 0010, 0011. The change complies with all four: nine named paths, no prefix, no "prefix except one"; the two state keys are thedeployshape; anddocs/store-layout.md:104-108reconcilessecret/ci/tracker/semaphore-apiwith 0007 explicitly (the CI actor, never the consuming repository). This repo states no doc-style convention, so the three findings below are general practice, and I say so rather than dressing them as repo rules.ADVISORY — the two new fragment links do not resolve on the forge's own renderer.
docs/store-layout.md:144anddocs/store-identity.md:168linkproxmox-credentials.md#the-semaphore-runners-deploy-token. Forgejo slugs that heading asthe-semaphore-runner-s-deploy-token(apostrophe → hyphen;/api/v1/markupreturnsid="user-content-the-semaphore-runner-s-deploy-token", and the rendered file page carries exactly that id). The fragment matches neither the Forgejo form nor the GitHub form. The same shape already exists atdocs/store-identity.md:163(#infra-cockpits-deploy-tokenagainstinfra-cockpit-s-deploy-token), so fixing one means fixing the family — advice, not a new defect.ADVISORY —
docs/env-fetch.md:71promotes the runner to "yes, once seeded", and seeding is not the only thing missing. Driven in this worktree,ACTOR=runner HOME=<empty> bash scripts/env.sh fetchanswersrefused: nothing could be filled for the Automation runner runner: env.map maps no store path for it— the map's only store row is scopedpit,hermes(env.map:39) and its only literal row needsprod.age, which this change keeps the Operator's alone. A seed would not change that. Nothing else names the runner either: infra-tracker'senv.mapatorigin/maincarries noactors=axis at all.env.map:33already says this repo's row gains the runner in SC-19; the clear is one clause here saying which map carries the rows.ADVISORY —
docs/store-layout.md:102-105cites infra-silo'svar.state_keysas declaring the two deploy keys; at infra-silomainit does not.git show origin/main:silo/store/variables.tfcarries the tracker records' apply and plan entries only (lines 60-65); thetofu-deploy-state-tracker-{guest,edge}entries and their two policy files are on open infra-silo PR #19 (c9c3ab4). The sentence is true of that branch, not of the sibling's main. Not a block — it becomes true when #19 merges — but it is an ordering condition worth naming, or the sentence should point at the PR.Verified by hand
make check:EXIT=0in the head worktree; the forge'spr-checks / check (pull_request)issuccessat39a30b41.automation-runner, an AppRole login carrying it plusdefault. All nine named paths answer 200 (deploy-ssh,runner-token,npm/api, the fourvikunja/prodsecrets, the twotracker-*deploy keys). 21 of 21 others answer 403 on paths that exist, so each refusal is the policy and not a 404:silo/*,ci/cockpit/*,ci/tracker/*, the rest ofservices/semaphore/*, all four Test twins, every apply/plan key, andsemaphore/deploy. LIST on four trees, a write and a delete on a granted path: 403. Ninepathblocks, ninecapabilities = ["read"], no wildcard. All six policy files parse.ci-tracker's "needs no new line": under the changed file, a login readssecret/ci/tracker/semaphore-api(200) and is refusedsecret/ci/cockpit/proxmox-token(403), withLIST secret/metadata/ci/tracker403. The claim holds.bao/service/roles/openbao/tasks/store.yml:334loops the entity joins overopenbao_approle_roles | selectattr('policy'), sopolicy: automation-runneris exactly what gives the runner an entity, joined on the committedrole_id; the token policy is written from the same field (lines 212, 304).secret/tofu-state16 apply/plan + 4 deploy = the "twenty paths" header; 58 + 7 + 5 = 70 in §Counts; five "narrower than it looks" bullets; six policy files on disk andidentity.entity.nameinregular-agent.hclalone; the newGUEST_STATE_AWS_*/EDGE_STATE_AWS_*field names match infra-tracker's apply rows; every relative link in the five changed docs resolves to a file.Not verified, and why
token_policies, the entity/alias). Anonymous surface only:/v1/sys/health200 (2.7.1, initialized, unsealed),/v1/sys/policies/acland/v1/sys/mounts403; the review identity is a regular agent and cannot read policy text. The "in the store" claim rests on the PR's Evidence and the ticket comment — the blocker above is about the internal contradiction between this PR's pages and this PR's Evidence, which stands whichever way the store's state falls.pveum user token permissions infra-runner@pve deploy, the live-API 200/403s and the ACL rows: no cluster credential on this host.deploy-ssh's public half inroot@10.12.0.142'sauthorized_keys: the values are not readable by the review identity.Counts
Acknowledged (round 1/5) — fixing now; what changed and how I verified it follows.
Round 1/5 — fix report. Head
a797c6a, one commit on top of39a30b4. The diff is docs only: three files,+31 −14, and no policy, role or test file is touched.docs/store-identity.md:25-30records the opposite of what the store holdsa797c6aa797c6adocs/env-fetch.md:71promotes the runner to "yes, once seeded"a797c6adocs/store-layout.md:102-105cites infra-silo'svar.state_keysas it stands atmaina797c6aThe blocker
I took the branch that rewrites the paragraph to the applied state, as
87193b2did for the other two pages, and I measured the store before writing the sentence rather than restating the Evidence. Read-only, inside guest 144 onburns, with the root token read into a shell variable and never printed:And the two policies, served by the store against the branch's files:
So the paragraph now says the class is in the store as of 2026-11-05,
changed=5and a clean check run afterwards, and names what the read-back showed; it no longer says a login would carrydefaultalone. What it keeps saying is missing — the seed — is the half the store confirms: the role holds nosecret_idand Guest 145 does not exist.The advisories
Fragments.
#the-semaphore-runners-deploy-token→#the-semaphore-runner-s-deploy-tokenatdocs/store-layout.md:144anddocs/store-identity.md:168, and the same family's#infra-cockpits-deploy-token→#infra-cockpit-s-deploy-tokenatdocs/store-identity.md:163. Confirmed against the renderer's own ids rather than by eye:/api/v1/markdownreturnsuser-content-the-semaphore-runner-s-deploy-tokenanduser-content-infra-cockpit-s-deploy-token, and the authored fragments now are those, bare.env-fetch.md. The cell no longer promises a fetch from a seed alone, and a paragraph under the table says which map has to carry a row. Driven in this worktree:The refusal text is quoted in the page, so the next reader runs the command and sees why.
store-layout.md. The sentence now names infra-silo PR #19 as where the tracker records' deploy keys are declared and saysmainthere carries only the apply and plan shapes until it merges. Re-read at fix time — the PR is still open atc9c3ab4, so "open while this page was written" is true today; the link answers 200.Left alone
The seed / acceptance criterion 1. Criterion 1 needs an AppRole login with the seed on 145. The seed is not minted (measured above: no
secret-idon the role), Guest 145 does not answer, andrunner.role_idin infra-tracker is another repository's change. The ticket makes all three the Operator's act and the PR body already declares them, so there is no honest edit here — the finding is the spec item still pending, exactly as you read it. I did not invent a criterion I could meet instead.Verified here
mise exec -- make checkrc=0; env-check pin ok (scripts/env.sh matches infra-secrets@5dacf361…),env.map: 4 names, all declared in .env.example, 120oklines, 0FAILmise exec -- make validaterc=0;Success! The configuration is valid.mise exec -- tofu fmt -check -recursive -diffrc=0; no outputdocs/against/api/v1/markdownidsfails=0(every relative.mdtarget and every#fragmentresolves; external links 200)not yet in the store/carries default aloneabsent, the inline refusal quote intact across its line wrap, the PR href exactly the PR URLThe forge's own check agrees:
pr-checks / check (pull_request)issuccessata797c6a(14s).Not verified: the
pveumACLs and the live-API 200/403s on/vms/142— unchanged by this round and still without a cluster credential on this host; and the four written paths' values, which the review identity cannot read either. Nothing in this commit turns on either.Review started (round 2/5) on
a797c6a79f— reading the diff now.olympus/infra-secrets#28 · head
a797c6a7· round 2/5 (dispatch said 2/5; the thread carries one prior review) · verdict approveRecommendation: merge
Round 1 closure
Fixed point:
39a30b41, the SHA in round 1's header.a797c6ais its descendant — one commit, docs only:git diff 39a30b4 a797c6ais three files, +31 −14. This round reviews that delta, and nothing else.docs/store-identity.md:25-30recorded the opposite of what the store holdsa797c6adocs/store-identity.md:25-35docs/store-identity.md:168,173,docs/store-layout.md:147docs/env-fetch.md:71promoted the runner to yes, once seededdocs/env-fetch.md:71,73-80docs/store-layout.md:102-105cited infra-silo'smainfor the deploy keysdocs/store-layout.md:102-108The blocker, driven as a red/green pair
Red at
39a30b4: the paragraph read the runner's class is in the repository and not yet in the store (SC-15) and closed with a runner login carriesdefaultalone. Green at the head:docs/store-identity.md:25-35says the class is in the store, and names what the read-back showed.I measured the store rather than restating either text. Read-only, inside guest 144, the root token read into a shell variable and never printed:
The guest's audit log carries the writes the paragraph calls
changed=5— both policies,auth/approle/role/runner,identity/entity,identity/entity-alias, all between 12:10 and 12:12 today. Every sentence of the new paragraph holds, the half that says the seed is not minted included.The three advisories retired on their own clearing changes, not on the fixer's summary: the fragments resolve (below), the
env-fetchcell is conditional and its paragraph's quoted refusal reproduces verbatim, anddocs/store-layout.md:102-108now names infra-silo PR #19, which is open ata042dd7dwithmainthere carrying the tracker records' apply and plan shapes only.Standards
Standards read from the head tree:
AGENTS.md(§Decisions — theolympus/workshopADRs bind and are read first; §Checks —make checkis the merge floor), andolympus/workshopdocs/adr/atmain, records 0001-0012, none added since round 1. The change complies: nine named paths, no prefix (ADR-0007); the two state keys are thedeployshape (ADR-0012);deploy-sshis the deployer's own key (ADR-0010). This repository states no docs-style convention, so the finding below is general practice, and I say so rather than dressing it as a repo rule.ADVISORY —
docs/env-fetch.md:73-80quotes the refusal branch its own reader will not see. The paragraph saysmake env ACTOR=runnerhere answersrefused: nothing could be filled for the Automation runner runner: … no root on this machine holds a name it maps; nothing written. That is what it answers on a machine with no age class. On the machine the same sentence names — the one holding~/.secrets/proxmox/prod.age— the fetch refuses earlier and differently, driven in this head worktree:Both outcomes are refusals with
nothing written, so the paragraph's point — a seed is not the only thing a fetch needs — holds either way; it is the quoted string that is one branch of two. Clears with one clause naming the branch, or with the second refusal printed beside the first.Spec
Spec: SC-15 — Vikunja task 15, project 8, id 272, read live this round (
done: false; two criteria open, one met). Round 1's reading stands; this round re-checks only what the delta can move.pveum user token permissions infra-runner@pve deploylists/vms/142only, with noVM.Allocate. Reproduced fromburnsthis round:/vms/142withVM.Audit, VM.Config.{CPU,Disk,Memory,Network,Options}, VM.Snapshot;/storage/synologyDatastore.Audit (*);/sdn/zonesSDN.Use (*); no other/vmsrow, and noVM.AllocateorVM.PowerMgmtanywhere. Met.docs/store-identity.mdlists what it reads and what it does not reach. Met,docs/store-identity.md:55.secret_id(above) and 145 does not exist on the cluster. That is CP-42's seed and CP-43's Semaphore project, both the Operator's act, which the author's hand-back names. It stays a carried advisory and is uncounted: no change in this repository can close it.No scope creep: three pages, one per round-1 finding.
Verified by hand
refs/pull/28/head=a797c6a79ffb6dc94f46cc5c50fa773fc9df32bf;39a30b41an ancestormake checkin a detached head worktreeenv fetch: every case passedpr-checks / check (pull_request)success, run 27diffempty, byte for bytetoken_policies ["automation-runner"]; entity with its approle alias; no secret-id accessorsecret/ci/tracker/semaphore-apiabsentpveum user token permissions infra-runner@pve deploy/vms/142only, plus synology audit and sdn zonesPOST /api/v1/markdown.mdtarget exists at the headvar.state_keysmain: tracker apply+plan only; PR #19 heada042dd7d: adds the twodeployentries; PR still opendeploy= thetwenty pathsheader; six policy files on disk;env.mapone store row scopedpit,hermesplus the literal pair, and the row's own SC-19 commentNot verified, and why
make service-check's no-pending-writes line — not re-run: it is an Ansible check-mode pass over the live store, and the substance behind it, the store's text against the tree's, is byte-identical, which is what a pending write would show.deploy-ssh's public half on 142 — presence and creation dates read from the store metadata; values are not readable by this identity.Counts
Recommendation: merge, labelreview/merge-ready. One merge-order note, not a finding: infra-silo PR #19 is still open, anddocs/store-layout.md:102-108says so itself, so nothing dangles.pit referenced this pull request2026-11-05 12:50:34 +00:00