The store has a ci-silo login, and env.sh knows the silo actor (SC-29) #37
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!37
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/sc29-ci-silo-login-and-actor"
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-29.
Summary
infra-silo's push-to-main trigger gets its own store login, the same shape as
ci-secretsandci-forge: one named path, the repository's Semaphore API token.The silo record's plan key is deliberately not in this login. SC-29's body first granted
secret/tofu-state/silo/planas a second path; on the Operator's word (2026-11-09, option A) it was amended to one path. That key reaches infra-silo'spull_request_targetplan check as a repository secret (SL-30), a job the push-boundsilorole cannot serve; the apply key is the Semaphore runner's (SC-25). The ticket body and its acceptance line now say so.Docs: the identity row and policy-file row (
store-identity.md), the fetch's actor table (env-fetch.md), and asecret/ci/silo/section instore-layout.md(count 82 to 83).env-fetch.mdalso loses a stale parenthetical that named the plan key as CI's reach.Evidence
case_silo_actorwas red, 6 of 8 failing (env-check accepts a row scoped to silo: want 0, got 1;silo is accepted as an actor: want 0, got 1; ...).After:
mise exec -- make checkexits 0, 142 ok, 0 FAIL.case_silo_actoris 8/8: env-check acceptsactors=silo, the fetch logs in byPOST /v1/auth/jwt/login, reportsactor silo · method jwt · ttl 600s, fillsSEMAPHORE_API_TOKENwithout echoing the value, and refuses the secrets role's token.bao policy fmton a copy leaves an empty diff;ansible-playbook --syntax-check site.ymlinbao/serviceparses.ci-siloreadssecret/ci/silo/semaphore-api; deniedsecret/tofu-state/silo/plan,secret/tofu-state/silo/apply,secret/ci/secrets/semaphore-api,secret/ci/forge/semaphore-api,secret/silo/rootandsecret/services/semaphore/admin; no list and no write.make service-check ENV_FILE=...from the branch names exactly two pending writes:policy ci-siloandjwt/role/silo. Nothing else.Not yet applied
Once this is on
main, the service role is run from there:Then the live half of the acceptance: a throwaway token carrying only
ci-siloreadssecret/ci/silo/semaphore-apiand is refusedsecret/tofu-state/silo/planandsecret/ci/secrets/semaphore-api, and is revoked. The results go on SC-29.Revocation: remove the role from
openbao_jwt_roles, then on 144bao delete auth/jwt/role/siloandbao policy delete ci-silo(the role does not delete what it no longer declares).Merge Danger
Door: two-way
The merge changes nothing live. infra-silo has no
deploy.ymlyet (SL-20), so the policy and role reach the store only through the service run above.Blast Radius: small
The other four repositories' vendored
env.shlag this pin by three to four CI actors, not one:infra-tracker,infra-forgeandinfra-siloare still on137870c6…, the pre-classify()script whose actor case knowstrackeralone, andinfra-cockpitis on5dacf361…withtracker|cockpit. Each picks the new pin up in its own re-vendoring ticket (SL-36 for infra-silo). That makes SL-20 wait on this merge and on SL-36: infra-silo'smake env ACTOR=silorefuses —$ACTOR is not an actor in the store's identity table— until its vendored script knows the actor, and this merge only puts the policy and the role in the store. SC-30 waits on this merge.Review started (round 1/5) on
17d0292e17— reading the diff now.repo: olympus/infra-secrets · pr: 37 · head:
17d0292e17· round: 1/5 · verdict: mergeRecommendation: merge
Standards — 0 findings
Sources read:
AGENTS.md(§Checks:make checkis the floor,mainrefuses whilepr-checksis red or missing),olympus/workshopdocs/adr/0007-a-secrets-path-names-what-it-belongs-to.md(path names the owner/actor, never the consuming repo; readable set is a whole grant, prefix or named path),0006(two state-key shapes, no third), plus the repo's own records indocs/store-identity.mdanddocs/store-layout.md.list(ADR-0007; theci-secrets/ci-forgeshape)bao/policies/ci-silo.hcl:25store-identity.md:303-306)bao/policies/now holds nine files, all globbed bystore.yml:120ci-<actor>for an actor named inenv.sh(defaults/main.yml:111-112)silo/ci-silosecret/ci/silo/…, notsecret/ci/infra-silo/…make checkgreen,pr-checksgreenpr-checks / check (pull_request)= successbao policy fmtempty diff;ansible-playbook --syntax-checkparsesThe policy file and the test case are near-copies of
ci-secrets's andcase_secrets_actor. That is duplication the repo's own conventions ask for (one file per class; one case per actor), so the baseline smell is suppressed.Spec — 1 finding
Spec: SC-29, plus its amendment comment of 2026-11-09. All four What-to-build bullets and both acceptance lines are delivered (see Verified).
ADVISORY — the PR body's blast radius understates the vendoring lag, and it changes a ticket ordering. PR description §Blast Radius says: "The other four repositories' vendored
env.shnow lag this pin by one actor", and closes with "SC-30 and SL-20 wait on this merge". They lag by far more than one actor, and two of them by a whole interface revision:olympus/infra-tracker@mainscripts/env.sh:2pins137870c6…and has noclassify()at all — its actor case istracker)alone.olympus/infra-forge@mainscripts/env.sh:2pins the same137870c6…, same shape.olympus/infra-cockpit@mainscripts/env.sh:2pins5dacf361…and classifiestracker|cockpit.olympus/infra-silo@mainscripts/env.sh:321classifiestracker)only.So after this merge the gap is three to four actors, and for infra-tracker and infra-forge the pre-actor-axis script. Operationally that matters for one sentence: SL-20's
make env ACTOR=silorefuses ("$ACTOR is not an actor in the store's identity table") until SL-36 re-vendors infra-silo, so SL-20 waits on this merge and on SL-36. Nothing in the diff is wrong; the correction is a sentence — say the lag is three to four actors, and that SL-36 must land before SL-20 can fetch. Not worth a round trip on its own.No scope creep: the
store-layout.mdsection is required by that page's own claim to own the paths, and matches what SC-24/SC-16 did; the removedenv-fetch.mdparenthetical was a stale claim thatstore-identity.md:284-291already contradicts.Verified (by hand, from
17d0292)mise exec -- make check→ 142 ok, 0 FAIL, exit 0.pr-checkson the head sha: success (17s).silofromclassify()(scripts/env.sh:165) and recomputed the body pin so only the actor changed —case_silo_actorthen reds 6 assertions.scripts/tests/run.sh:740-775fails when the feature is absent.bao policy fmton a copy → empty diff.ansible-playbook --syntax-check -i inventories/prod/hosts site.yml→ parses.ci-silo.hclwritten and a token carrying onlyci-silo: readsecret/ci/silo/semaphore-api→ 200;secret/tofu-state/silo/{plan,apply},secret/ci/secrets/semaphore-api,secret/ci/forge/semaphore-api,secret/silo/root,secret/services/semaphore/admin→ 403;LIST secret/ci/silo/→ 403;PUTon the path → 403. Matches the amendment's acceptance line.defaults/main.yml:150-157andstore.yml:296-309compose it → 204, read backtoken_policies=[ci-silo], TTL 600/1200,bound_claims={repository: olympus/infra-silo, ref: refs/heads/main, event_name: push}, audienceopenbao. RS256 tokens signed against it: correct claims → a token carryingci-silo;repository=olympus/infra-tracker,event_name=pull_requestandref=refs/heads/featureeach refused (claim … does not match any associated bound claim values).store-layout.md:402-462); nine policy files on disk against "nine" atstore-identity.md:433; five CI actors against "fifth" atstore-identity.md:220andenv-fetch.md:120.store-layout.md:43's two-prefix example is illustrative and pre-dates this change.ci-silo.hcl(the policy),defaults/main.yml(the role),env.sh(the actor + re-pin — I re-derived the 64-hex body hash independently and it matchesdc5a0e58…),scripts/tests/run.sh(its case), and the three docs pages that own identities, the fetch interface and the paths.Note, not counted: in the mutation run the case's last two assertions (
run.sh:773-774) stayed green —rc_wrong -ne 0cannot tell a wrong-token refusal from an earlier failure. The case still reds overall, and the three existing CI cases have the same shape, so I am not asking for it.Not verified, and why
make service-checkfrom the branch ("exactly two pending writes:policy ci-silo,jwt/role/silo") — needs the live store's root token, which I do not hold. Reconstructing both objects on a dev store is the closest I got, and it is consistent with that claim; the run itself is the Operator's.make service+make service-check(changed=0) and the live-token proof — by the PR's own plan these follow the merge. The spec's second acceptance line therefore stays open until they run, deliberately.Summary
No blocker. The policy grants exactly the one path it must, the role refuses every claim set it should refuse, the fetch knows the actor, and the tests fail when the feature is removed. One advisory, below the volume threshold: merge.
Fix advisory and merge conflict
Acknowledged (round 0/5) — fixing now; what changed and how I verified it follows.
New commits pushed, approval review dismissed automatically according to repository settings
Round 0 fix report — head
17d0292→3d82ec8.There were no blockers to fix. The review (id 478, official) closes with
Standards — 0 findings,Spec — 1 finding (advisory)andRecommendation: merge. The dispatch's "blocking findings" wording is the loop's fixed text, not this report's verdict. I worked the advisory anyway — the label andpit's comment of 18:17 both asked for it, and the same comment named the merge conflict that had appeared since the branch was written.Findings
make env ACTOR=silorefuses until its vendored script knows the actor.PATCH /pulls/37, 3530 → 4019 chars; read back equal to what was sent, old sentence count0, new text count1pit's comment)mergeable: false:mainmoved toe879247and then8153b12after this branch was cut at3f994f6, conflicting indocs/store-identity.md3d82ec8(merge commit)The advisory, measured rather than restated
The pins are re-derived from each repository's
origin/main, not copied from the report:scripts/env.shpininfra-tracker137870c6…tracker)alone; noclassify()infra-forge137870c6…tracker)alone; noclassify()infra-silo137870c6…tracker)alone; noclassify()infra-cockpit5dacf361…classify()present,tracker|cockpitThis branch's pin is
dc5a0e58…, classifyingtracker|cockpit|forge|secrets|silo— so tracker, forge and silo are four CI actors behind, cockpit three. The body now says three to four. infra-silo's own script refusessilowith$ACTOR is not an actor in the store's identity table, which is why SL-20 needs SL-36 and this merge.The merge
mainmoved twice under this round:e879247(SC-38's first half, which still carried the intermediate "144 pending SC-38's rows") and8153b12(its second half, which applies the rows and drops the "pending" wording).3d82ec8merges8153b12, so the branch takes the final text, not the superseded one.docs/store-identity.mdconflicted: this branch adds thesiloCI row directly above therunnerrow main rewrote. Resolution = this branch'ssilorow + main'srunnerrow verbatim (outside 141, 142, 144 and 146).docs/store-layout.mdanddocs/proxmox-credentials.mdauto-merged, and were read back: the layout differs fromorigin/mainby additions only (thesecret/ci/silo/…section and the 82 → 83 paragraph);proxmox-credentials.mdis byte-identical to main.origin/main, and it issecret/ci/silo/semaphore-api.Verification at
3d82ec8mise exec -- make checkoklines, 0FAIL, last lineenv fetch: every case passed.mise exec -- tofu fmt -check -recursive -diffmise exec -- ansible-playbook -i inventories/prod/hosts --syntax-check site.yml(inbao/service)playbook: site.yml, plus the pre-existing[WARNING]: Found both group and host with same name: baomise exec -- bao policy fmton a copy ofbao/policies/ci-silo.hclSuccess! Formatted policy; diff against the file emptyrender_check.py docs/store-identity.md,docs/store-layout.mdragged 0;secret/ci/silo/semaphore-apiandWith it the layout declares 83 pathsPRESENT;pending SC-38ABSENTGET /raw/<path>?ref=3d82ec8against the worktreestore-identity.md,store-layout.md,ci-silo.hclallequal=Truepr-checks / check (pull_request)on3d82ec8successmergeable: true,head 3d82ec8,base 8153b12Left alone, deliberately
make service-checkfrom the branch ("exactly two pending writes:policy ci-silo,jwt/role/silo") still needs the live store's root token, which this session does not hold. Round 1 recorded the same gap and reconstructed both objects on a dev store; this round changes no policy, role or script byte, so that reconstruction still describes this head. The run stays the Operator's.make serviceand the live-token read/refusal proof are by the PR's own plan after the merge — untouched by this round.Scope of this round: a merge resolution under
docs/plus the PR body. No change tobao/policies/ci-silo.hcl,bao/service/roles/openbao/defaults/main.yml,scripts/env.shorscripts/tests/run.sh.Review started (round 1/5) on
3d82ec8ee6— reading the diff now.repo: olympus/infra-secrets · pr: 37 · head:
3d82ec8ee6· round: 1/5 · verdict: mergeRecommendation: merge
Standards — 1 finding (advisory)
Standards read:
AGENTS.md§Checks (make checkis the floor,mainrefuses whilepr-checksis red or missing);olympus/workshopdocs/adr/0007-a-secrets-path-names-what-it-belongs-to.md(path names the actor, never the consuming repo; a readable set is whole grants — a prefix or a named path, never an exception);0006(a stack's state is read with a key of its own); this repo's own records indocs/store-identity.mdanddocs/store-layout.md.list(ADR-0007)bao/policies/ci-silo.hcl:25-27secret/ci/silo/…, neverinfra-silo/…)bao/policies/holds nine files, all picked up bystore.yml:120defaults/main.yml:150-157; key sets compared against tracker/cockpit/forge/secrets, identicalmake checkgreen;pr-checksgreen on the headpr-checks / check (pull_request)= success at3d82ec8bao policy fmton a copy leaves an empty diff;ansible-playbook --syntax-check site.ymlparsesBaseline smells:
ci-silo.hclis a near-copy ofci-secrets.hcl, andcase_silo_actorofcase_secrets_actor. The repo's own convention asks for exactly that (one file per class, one case per actor), so the duplication is suppressed, not reported.ADVISORY —
docs/store-identity.md:114: the merge commit silently reverted this branch's own edit to therunnerrow's denied set.At
17d0292(this PR's first head) the row read`secret/ci/*` (cockpit's deploy material, and the tracker's, the forge's, infra-secrets' **and infra-silo's** CI material and Semaphore API tokens). At3d82ec8:114it reads… the tracker's, the forge's and infra-secrets' …. The base3f994f6did not carry the clause, so it was this branch's addition;git log -S "infra-silo's CI material" origin/mainfinds no commit onmainthat ever had it. The resolution took main's row verbatim to keep its/vms/144change and dropped the branch's clause with it — the diff stat says so: 126+/12− at17d0292, 125+/11− at the head. Nothing behaves differently (secret/ci/*still denies the silo material); the row's enumeration just no longer names the newest CI actor. Smallest clear: putand infra-silo'sback in the parenthetical, keeping main's141, 142, 144 and 146.Spec — 0 findings
Spec source: SC-29 could not be read. The stored Vikunja credential answers
401on/api/v1/tasks/329(and on/api/v1/user), so the ticket's own text — including the amendment the body describes — is unverified. I reviewed against the contract the PR body states, which quotes SC-29's acceptance lines; nothing below was invented.ci-siloreadssecret/ci/silo/semaphore-apiand nothing elseci-silo: read 200;secret/tofu-state/silo/{plan,apply},secret/ci/secrets/semaphore-api,secret/ci/forge/semaphore-api,secret/silo/root,secret/services/semaphore/admin→ 403;LIST403;PUT403silobound toolympus/infra-silo,refs/heads/main,push, audienceopenbao, 600/1200defaults/main.yml:150-157composes it: 204, read backtoken_policies=[ci-silo], the three claims exactenv.shknowssilo; the pin is re-derivedscripts/env.sh:165, line 2dc5a0e58…, and the body's sha256 recomputed independently to the same valueactors=siloactor silo · method jwt · ttl 600s, fillsSEMAPHORE_API_TOKEN, never echoes itenv.sh: rc 0, value in.envat 0600, zero occurrences in the transcriptpull_request) and wrong ref each answered 400 and wrote nothingplanandapplykeys are not in this loginsecret/ci/silo/section, 82 → 83store-identity.md:113,314,220,434,env-fetch.md:73,120,store-layout.md:298-307,462; the count chain closes 58→65→70→73→74→80→81→82→83origin/main: tracker/forge/silo on137870c6…withtracker)alone, cockpit on5dacf361…with `trackermake service-checknames exactly two pending writesNo scope creep: the
store-layout.mdsection is what that page's own claim to own the paths requires, theenv-fetch.mdparenthetical removed a claimstore-identity.mdalready contradicts, and the merge brought only main's SC-38 edits. No requirement of the stated contract is missing.Verified by hand at
3d82ec8mise exec -- make check→ 142 ok, 0 FAIL, rc 0.siloremoved fromclassify()and the pin recomputed,case_silo_actorreds 6 of 8 assertions (env-check accepts a row scoped to silo,silo is accepted as an actor, the login line, the fill).env.sh+ the role as declared, real login, real read, real refusal of three wrong claim sets.ci-silo.hcl(the policy),defaults/main.yml(the role),env.sh(actor + re-pin),run.sh(its case), and the three pages that own identities, the fetch interface and the paths.Not verified, and why
make service-checkand the post-mergemake service— they need the live store's root token, which this session does not hold. Consistent with the PR's own plan, which puts them after the merge.Summary
infra-silo'sclause from therunnerrow's denied setOne advisory, below the volume threshold. The policy grants exactly the one path it must, the role refuses every claim set it should, the fetch knows the actor, and the test fails when the feature is removed: merge.
Round history: review 478 (round 1) approved
17d0292;3d82ec8dismissed it as stale. This round re-judges the merged head — which is how the dropped clause above surfaced.