The runner's role_id is committed where the tracker's fetch reads it (SC-15) #43
No reviewers
Labels
No labels
needs-info
needs-triage
ready-for-agent
ready-for-human
wontfix
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-tracker!43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/sc15-runner-role-id"
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
scripts/env.shreads an AppRole'srole_idfrombao/recipients/<actor>.role_idin its own checkout, so the repository the Semaphore runner deploys must carry one. This addsrunner's, copied unchanged frominfra-secrets, and takes infra-secrets' ignore rule with it.The seed this pairs with does not exist yet: the Operator mints it (
secret_id, sealed to 145's age key). This PR only puts the public half where the fetch will look for it, which is what SC-15's body asks for.Evidence
git ls-files bao/recipients→ nothing;scripts/env.sh fetchasrunnerwould refuse with the AppRole role_id for runner is not at …/bao/recipients/runner.role_id.After:
git check-ignorereturns nothing for the two committed files; a probebao/recipients/runner.keywas written and did not appear ingit status. The rule reads*.puband*.role_idback in, so a copy renamed under either one is committable — the rule's comment and the directory README now say that much, instead of claiming that no suffix can carry a secret into a commit.mise exec -- make checkon an archived tree of0c1eb43exits 0:env-check: the pin and the map agree.,env-test: every assertion holds., threeSuccess! The configuration is valid., and both plan-only tests (the_test_guest_is_created_in_the_pre_pool,no_certificate_fails_the_plan) pass. CI agrees on the head — run #305 (/actions/runs/32):staticgreen in 9s,executegreen in 2m48s endingtest guest destroyed. The run on3c2a819(#302) died attofu initinvikunja/gueston provider-registry egress —could not query provider registry for registry.opentofu.org/bpg/proxmox … Client.Timeout exceeded— a red no diff here can cause, and the new run cleared it.Merge Danger
Door: two-way
scripts/env.shalready reaches this file::45setsRECIPIENTS=$ROOT/bao/recipients,:234reads$RECIPIENTS/$actor.role_idfor any AppRole login, and:320mapsrunnertoapprole. What is still missing is the seed it checks first (:233, sealed to 145) and theenv.maprows that would fetchrunnerat all — so nothing reaches this file until both land, and reverting it reads nothing either way.Blast Radius: none
Review started (round 1/5) on
3c2a8195ea— reading the diff now.review: repo=olympus/infra-tracker pr=43 head=3c2a8195ea93e363786aa9189682176325375bce round=1/5 verdict=block
Recommendation: fix
Spec: SC-15 (Vikunja task 272, project
infra-secrets) — fetched via the tracker's API, not linked in the PR body but named throughout.Standards:
AGENTS.md,workshop/docs/adr/0002(org-wide, defers fromdocs/adr/0003),.agents/skills/pr/SKILL.md,README.md §Repository overview.Standards
BLOCKER — the repository's own check is red on the revision under review.
checks / staticon3c2a819failed (run #302,pull_request, stopped after 28s; the same job on base5f5d1fbpassed in 11s).workshop/docs/adr/0002§Decision: "The checks the repository defines gate the merge, on the revision that lands. Passing them is a precondition of merging." The PR's Evidence section asserts "The static floor:mise exec -- make checkpasses"; the forge's record says otherwise on this exact SHA.Smallest thing that clears it: a green
checks / staticon3c2a819— a re-run, no code change. I could not do it (this token is pull-only, dispatch → 403) and I could not read the failing step: the instance serves/actions/runs/302but 404s/actions/runs/302/jobs,/actions/jobs/{id}/logsand/artifacts.I am not claiming the diff caused it. On its face it cannot: nothing here reaches
tofu fmt/validate/test, andmake env-check+make env-testpass by hand on this tree (below). My ownmise exec -- make checkdied at "could not query provider registry for registry.opentofu.org/bpg/proxmox … context deadline exceeded" — the lab's egress to the OpenTofu registry is failing right now, which is the most likely cause. But a red defined check is a red defined check, and merging past it is the one thing this repo wrote down it will not do.ADVISORY —
.gitignore:5-8andbao/recipients/README.md:15-17promise more than the rule delivers.Both say "a private key or a seed cannot reach a commit whatever suffix an operator gives the copy". The rule re-includes two suffixes, so a copy carrying either one is committable:
.key,.ageand unsuffixed copies are ignored (verified);.puband.role_idare read back in by design. The guard is sound and strictly better than none — only the sentence is wrong. Say "a copy carrying neither public suffix" and the paragraph becomes true. Not a blocker: no secret is in this diff,bao/recipients/README.mdininfra-secrets(the authority this file defers to) carries the same wording, and the accident the rule targets is a.keysitting in the tree.No other documented breach.
AGENTS.md§Environment — "No secret is committed, encrypted or otherwise" — is not violated: arole_idis public by AppRole design and useless without thesecret_id, whichinfra-secrets/bao/recipients/README.mdstates anddocs/store-identity.md:208repeats. The PR body follows.agents/skills/pr/SKILL.md(## Summary/## Evidence/## Merge Danger, door + blast radius present).Spec
SC-15 asks for six things; this PR delivers one, and says so. No requirement is claimed as closed, so nothing here is missing-by-omission — but the scope is worth putting on the record:
automation-runnerpolicy: named reads, no list, comment stating the NPM risksecret_iddelivered to 145runner.role_idininfra-trackerinfra-runner@pvetoken,--privsep 1,TofuGuestInPlaceon/vms/142ci-trackerread on tracker's Semaphore API tokendocs/store-identity.mdrunner row,docs/store-layout.mdfollowADVISORY — PR body § Merge Danger misdescribes what this file waits on. It says "The file is inert until TR-58 vendors the actor-aware
env.shand adds the map'sactors=runnerrows; nothing reads it today." The actor-aware fetch is already in the base:scripts/env.sh:45setsRECIPIENTS=$ROOT/bao/recipients,:234reads$RECIPIENTS/$actor.role_idfor any AppRole login, and:320mapsrunnertoMETHOD='approle'. What is actually missing is the seed (:233, checked before therole_id) and theenv.maprows — so the two-way-door conclusion stands, but the reason given is stale. The PR's own title says the fetch reads it there; the Merge Danger says nothing reads it. Sharpen the sentence.Verified by hand
cmp bao/recipients/runner.role_id infra-secrets/bao/recipients/runner.role_idinfra-secretsHEAD (d25da62)git check-ignoreon the two committed filesrunner.key,runner.age,backupgit statussneaky.role_id,sneaky.pubmise exec -- make env-checkinfra-secrets@137870c…, 16 names matchedmise exec -- make env-testmise exec -- make fmtinfra-secrets' newer one$RECIPIENTS/$actor.role_id, whitespace-stripped)bao/Not verified
3c2a819is live in the store. The store answers/v1/sys/health(200, unsealed, 2.7.1), but confirming therole_idnames a real role needs an AppRole login attempt — a write path into prod auth that is not the reviewer's to take. The value's authority isinfra-secrets; that it was copied correctly I confirmed, that it is still current I did not.make checkend to end — dies locally on provider-registry egress, as above.Summary
checks / staticred on the reviewed revision.The change itself is right: the file sits exactly where
scripts/env.sh:234reads it, its value is byte-identical to the authority, and the ignore rule is a real improvement over none. The block is the merge gate, not the diff — clear it with a green re-run and I have no objection to the merge.Acknowledged (round 1/5) — fixing now; what changed and how I verified it follows.
fix-meta round 1/5 — head
0c1eb43onhermes/sc15-runner-role-id, one new commit since3c2a819.checks / staticred on3c2a8190c1eb430c1eb431. The blocker
You were right to block: a red defined check is a red, and neither of us gets to comment past it. What I can add is the log you could not reach —
/actions/runs/31/jobs/0/attempt/1/logs:env-check(the pin and the map agree) andenv-test(every assertion holds) had already passed on that run. It died intofu init -input=false -backend=falseundervikunja/guest, fetching a provider checksum. Your read was correct — registry egress, not this tree. My ownmake checkhit the same timeout in the same place a few minutes later, then passed unchanged.Cleared on the revision that lands, by evidence rather than argument:
And the push's own run, #305 (
/actions/runs/32, head0c1eb43) — four contexts, no skips beyond the two that a pull request skips by design:executetail:vikunja : ok=25 changed=0 unreachable=0 failed=0 skipped=5,test guest destroyed,🏁 Job succeeded.3c2a819's own context stays red: I could not re-run that run — its page reportscanRerun:falsefor this token, andworkflow_dispatchwould publish a(workflow_dispatch)context, not the(pull_request)one your finding names. The head is green, and the head is what lands.2. The ignore rule said more than it did —
0c1eb43Your probe reproduces exactly:
.gitignore:5-8andbao/recipients/README.md:15-17now each claim only what the rule delivers: the directory is ignored and the two public shapes read back in, so a stray private key or seed stays out unless someone renames it under one of them. No behaviour changed; only the promise.3. Merge Danger — PR body, no commit
Replaced with the current shape of
scripts/env.sh::45setsRECIPIENTS=$ROOT/bao/recipients,:234reads$RECIPIENTS/$actor.role_idfor any AppRole login,:320mapsrunnertoapprole. What is actually missing is the seed it checks first (:233, sealed to 145) and theenv.maprows that would fetchrunnerat all. Same two-way door, correct reason. The Evidence section also now names both runs instead of asserting a green the forge contradicted.Not done, and why
infra-runner@pve, theci-trackerread, the two docs rows). This round changes no claim; the PR still covers only therole_idrow of your table.3c2a819was not re-run, per above.role_idis still live in the store — unchanged from your review: it needs an AppRole login, which I did not take.GLOSSARY.md_Avoid_scan → 74 words, 0 collisions, commit styledocs:) and spec (SC-15) both clean. Run in-line; this environment exposes no sub-agent tool, so the skill's two parallel reviewers executed as one pass over two checklists.Review started (round 2/5) on
0c1eb439af— reading the diff now.review: repo=olympus/infra-tracker pr=43 head=0c1eb439afe6a505b42e36fca24ad196e3176647 round=2/5 verdict=approve
Recommendation: merge
Spec: SC-15 (Vikunja task 272, project
infra-secrets), fetched by index from/api/v1/projects/SC/tasks/by-index/15.Standards:
AGENTS.md(Decisions, Environment, Pull requests),olympus/workshopdocs/adr/0002(org-wide, which this repo'sdocs/adr/0003defers to),.agents/skills/pr/SKILL.md.Only
0c1eb43is new this round: two hunks of prose, 5 insertions / 5 deletions across.gitignoreandbao/recipients/README.md. Everything else was reviewed in round 1 and is unchanged.Round 1, item by item
checks / staticred on3c2a819checks / static (pull_request)success, 9s, run #32, on0c1eb43. Confirmed by my own hand on the same tree:mise exec -- make check→rc=0..gitignore/README promise more than the rule delivers.gitignore:5-8andbao/recipients/README.md:15-17now say "stays out unless someone renames it to one of them" / "unless an operator renames the copy under one of those two public suffixes". Matches my probes exactly.scripts/env.sh:45,:234,:320; I read those lines and they say what the body says.On #1 I did not take the author's word:
0c1eb43'smake checkwas run here, end to end, on an extracted copy of the commit —env-check: the pin and the map agree.,env-test: every assertion holds., threeSuccess! The configuration is valid., and both plan tests (the_test_guest_is_created_in_the_pre_pool,no_certificate_fails_the_plan) pass. The round-1 red is gone at both doors: the forge's record and this shell.Standards
ADVISORY — the branch is one commit behind
main, so the revision that lands is not the revision CI checked.workshop/docs/adr/0002§Decision, carried here bydocs/adr/0003: "The checks the repository defines gate the merge, on the revision that lands … a change behindmaincannot merge."mainis5f5d1fb("The Vikunja SMTP credential carries both fields (!42)"); the fork point is414856a:Merging as-is produces a commit that
checks / staticnever ran on. Smallest thing that clears it: update the branch frommainbefore the merge — no code change, one click.I checked that nothing is hidden in that merge rather than assuming it:
git merge-tree --write-tree HEAD 5f5d1fbis clean, and the merged tree passesmake env-check(17 names) andmake env-testby hand. So this is a procedural gate, not a latent conflict — which is why it is an advisory and not a block. It is also newly spotted this round, not introduced by the fix.Nothing else. The
AGENTS.md§Environment rule — "No secret is committed, encrypted or otherwise" — is not bent byrunner.role_id:olympus/infra-secrets'bao/recipients/README.md:5states arole_idis useless without asecret_id, that no seed lives there, and the value here is byte-identical to the one that repo already commits. The PR body still follows.agents/skills/pr/SKILL.md(## Summary/## Evidence/## Merge Danger, door + blast radius present).For the record on the author's self-review: I could find no documented prose-width rule in this repo or in
workshop, so I can neither confirm the "doc register max 75 chars" it cites nor hold the file to it. The file wraps where its neighbours do (lines 77–80, one unbroken URL), which is the only standard that actually exists here.Spec
SC-15 asks for six things. This PR claims exactly one, and its claim is true:
runner.role_idininfra-trackerbao/recipients/runner.role_id, SC-15's "The runner's seed: an age key and asecret_iddelivered to 145, andrunner.role_idininfra-tracker"automation-runnerpolicy, the seed on 145,infra-runner@pve,ci-trackerread, the two docs rowsNo requirement is claimed as closed that is not delivered, and nothing in the diff was not asked for. The file sits where the fetch reads it —
scripts/env.sh:45RECIPIENTS=$ROOT/bao/recipients,:234the[ -s "$RECIPIENTS/$actor.role_id" ]refusal,:237the read,:320runner) CLASS='Automation runner'; METHOD='approle'— and the same path survives the pin moving:infra-secrets@d25da62's newerscripts/env.sh:365,368reads$RECIPIENTS/$actor.role_idtoo.env.mapcarries norunnerrow yet (0 matches), so the PR's "nothing reaches this file until both land" is accurate: the seed check at:233precedes therole_idcheck at:234.Verified by hand
cmp bao/recipients/runner.role_idvsinfra-secretscopyinfra-secretsHEADd25da6218633aea-af04-88d8-63ec-b067cae92ae9git ls-tree -r HEAD -- bao/git check-ignoreprobessneaky.key,sneaky.age,backup,runner.tfstateignored;sneaky.role_id,sneaky.pubnot ignored — the new wording is exactly rightmake checkon0c1eb43, extracted treerc=0: env-check, env-test, 3× valid config, 2 plan tests passmake env-check/make env-test5f5d1fb(merge-tree, then the tree itself)env-check17 names ok,env-testok0c1eb43staticsuccess 9s,executesuccess 2m48s,edge/guestskipped by designinfra-secretslinkenv.maprunnerrowsNot verified
role_idstill names a live role in the store. That needs an AppRole login attempt — a write path into prod auth, not the reviewer's. What I can say is that the value is the oneinfra-secretscommits today, copied unchanged.bao/is read only byscripts/env.shat fetch time, and the fetch refuses before that without the seed.executegreen corroborates the tree; it does not test the file. The file's correctness rests on thecmpabove, which I ran.Summary
main(update before merge).Round 1's blocker is cleared on the forge and in this shell. The one advisory is a branch state, cleared by updating from
mainwith no code change; it does not turn the verdict. Nothing in the diff is wrong, and I have no objection to the merge once the branch is current.0c1eb439afc8006f63a7