The store has a ci-silo login, and env.sh knows the silo actor (SC-29) #37

Merged
pit merged 2 commits from hermes/sc29-ci-silo-login-and-actor into main 2026-11-09 18:32:46 +00:00
Owner

Implements SC-29.

Summary

infra-silo's push-to-main trigger gets its own store login, the same shape as ci-secrets and ci-forge: one named path, the repository's Semaphore API token.

 bao/policies/
   ci-secrets.hcl
+  ci-silo.hcl             # read secret/data/ci/silo/semaphore-api; no prefix, no list
 openbao_jwt_roles:
   - secrets -> ci-secrets
+  - silo    -> ci-silo    # olympus/infra-silo, refs/heads/main, push; 10m / 20m
 classify()
-  tracker|cockpit|forge|secrets         -> CI, jwt
+  tracker|cockpit|forge|secrets|silo    -> CI, jwt   (env.sh re-pinned)

The silo record's plan key is deliberately not in this login. SC-29's body first granted secret/tofu-state/silo/plan as a second path; on the Operator's word (2026-11-09, option A) it was amended to one path. That key reaches infra-silo's pull_request_target plan check as a repository secret (SL-30), a job the push-bound silo role 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 a secret/ci/silo/ section in store-layout.md (count 82 to 83). env-fetch.md also loses a stale parenthetical that named the plan key as CI's reach.

Evidence

  • Before: case_silo_actor was 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 check exits 0, 142 ok, 0 FAIL. case_silo_actor is 8/8: env-check accepts actors=silo, the fetch logs in by POST /v1/auth/jwt/login, reports actor silo · method jwt · ttl 600s, fills SEMAPHORE_API_TOKEN without echoing the value, and refuses the secrets role's token.
  • bao policy fmt on a copy leaves an empty diff; ansible-playbook --syntax-check site.yml in bao/service parses.
  • Dev-store policy probe: a login carrying only ci-silo reads secret/ci/silo/semaphore-api; denied secret/tofu-state/silo/plan, secret/tofu-state/silo/apply, secret/ci/secrets/semaphore-api, secret/ci/forge/semaphore-api, secret/silo/root and secret/services/semaphore/admin; no list and no write.
  • make service-check ENV_FILE=... from the branch names exactly two pending writes: policy ci-silo and jwt/role/silo. Nothing else.

Not yet applied

Once this is on main, the service role is run from there:

mise exec -- make service-check   # expect exactly two writes: policy ci-silo, auth/jwt/role/silo
mise exec -- make service
mise exec -- make service-check   # expect nothing left to write

Then the live half of the acceptance: a throwaway token carrying only ci-silo reads secret/ci/silo/semaphore-api and is refused secret/tofu-state/silo/plan and secret/ci/secrets/semaphore-api, and is revoked. The results go on SC-29.

Revocation: remove the role from openbao_jwt_roles, then on 144 bao delete auth/jwt/role/silo and bao 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.yml yet (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.sh lag this pin by three to four CI actors, not one: infra-tracker, infra-forge and infra-silo are still on 137870c6…, the pre-classify() script whose actor case knows tracker alone, and infra-cockpit is on 5dacf361… with tracker|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's make env ACTOR=silo refuses — $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.

Implements [SC-29](https://vikunja.thepit.space/tasks/329). ## Summary infra-silo's push-to-main trigger gets its own store login, the same shape as `ci-secrets` and `ci-forge`: one named path, the repository's Semaphore API token. ```diff bao/policies/ ci-secrets.hcl + ci-silo.hcl # read secret/data/ci/silo/semaphore-api; no prefix, no list openbao_jwt_roles: - secrets -> ci-secrets + - silo -> ci-silo # olympus/infra-silo, refs/heads/main, push; 10m / 20m classify() - tracker|cockpit|forge|secrets -> CI, jwt + tracker|cockpit|forge|secrets|silo -> CI, jwt (env.sh re-pinned) ``` The silo record's plan key is deliberately **not** in this login. SC-29's body first granted `secret/tofu-state/silo/plan` as a second path; on the Operator's word (2026-11-09, option A) it was amended to one path. That key reaches infra-silo's `pull_request_target` plan check as a repository secret (SL-30), a job the push-bound `silo` role 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 a `secret/ci/silo/` section in `store-layout.md` (count 82 to 83). `env-fetch.md` also loses a stale parenthetical that named the plan key as CI's reach. ## Evidence - **Before:** `case_silo_actor` was 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 check` exits 0, 142 ok, 0 FAIL. `case_silo_actor` is 8/8: env-check accepts `actors=silo`, the fetch logs in by `POST /v1/auth/jwt/login`, reports `actor silo · method jwt · ttl 600s`, fills `SEMAPHORE_API_TOKEN` without echoing the value, and refuses the secrets role's token. - `bao policy fmt` on a copy leaves an empty diff; `ansible-playbook --syntax-check site.yml` in `bao/service` parses. - Dev-store policy probe: a login carrying only `ci-silo` reads `secret/ci/silo/semaphore-api`; denied `secret/tofu-state/silo/plan`, `secret/tofu-state/silo/apply`, `secret/ci/secrets/semaphore-api`, `secret/ci/forge/semaphore-api`, `secret/silo/root` and `secret/services/semaphore/admin`; no list and no write. - `make service-check ENV_FILE=...` from the branch names exactly two pending writes: `policy ci-silo` and `jwt/role/silo`. Nothing else. ## Not yet applied Once this is on `main`, the service role is run from there: ``` mise exec -- make service-check # expect exactly two writes: policy ci-silo, auth/jwt/role/silo mise exec -- make service mise exec -- make service-check # expect nothing left to write ``` Then the live half of the acceptance: a throwaway token carrying only `ci-silo` reads `secret/ci/silo/semaphore-api` and is refused `secret/tofu-state/silo/plan` and `secret/ci/secrets/semaphore-api`, and is revoked. The results go on SC-29. Revocation: remove the role from `openbao_jwt_roles`, then on 144 `bao delete auth/jwt/role/silo` and `bao 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.yml` yet (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.sh` lag this pin by **three to four** CI actors, not one: `infra-tracker`, `infra-forge` and `infra-silo` are still on `137870c6…`, the pre-`classify()` script whose actor case knows `tracker` alone, and `infra-cockpit` is on `5dacf361…` with `tracker|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's `make env ACTOR=silo` refuses — `$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.
The store has a ci-silo login, and env.sh knows the silo actor (SC-29)
All checks were successful
pr-checks / check (pull_request) Successful in 17s
17d0292e17
Member

Review started (round 1/5) on 17d0292e17 — reading the diff now.

**Review started** (round 1/5) on 17d0292e17041a89d29510d961d7275ba4b1acda — reading the diff now.
bot-minos approved these changes 2026-11-09 18:15:50 +00:00
Dismissed
bot-minos left a comment

repo: olympus/infra-secrets · pr: 37 · head: 17d0292e17 · round: 1/5 · verdict: merge

Recommendation: merge

Standards — 0 findings

Sources read: AGENTS.md (§Checks: make check is the floor, main refuses while pr-checks is red or missing), olympus/workshop docs/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 in docs/store-identity.md and docs/store-layout.md.

Check Result
Named path, no prefix, no list (ADR-0007; the ci-secrets/ci-forge shape) pass — bao/policies/ci-silo.hcl:25
One HCL file per class, applied by the role and never an actor (store-identity.md:303-306) pass — bao/policies/ now holds nine files, all globbed by store.yml:120
Policy named ci-<actor> for an actor named in env.sh (defaults/main.yml:111-112) pass — silo / ci-silo
Path never names the consuming repository (ADR-0007) pass — secret/ci/silo/…, not secret/ci/infra-silo/…
make check green, pr-checks green pass — 142 ok, 0 FAIL locally; pr-checks / check (pull_request) = success
Formatting the repo enforces pass — bao policy fmt empty diff; ansible-playbook --syntax-check parses

The policy file and the test case are near-copies of ci-secrets's and case_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.sh now 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@main scripts/env.sh:2 pins 137870c6… and has no classify() at all — its actor case is tracker) alone.
  • olympus/infra-forge@main scripts/env.sh:2 pins the same 137870c6…, same shape.
  • olympus/infra-cockpit@main scripts/env.sh:2 pins 5dacf361… and classifies tracker|cockpit.
  • olympus/infra-silo@main scripts/env.sh:321 classifies tracker) 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=silo refuses ("$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.md section is required by that page's own claim to own the paths, and matches what SC-24/SC-16 did; the removed env-fetch.md parenthetical was a stale claim that store-identity.md:284-291 already contradicts.

Verified (by hand, from 17d0292)

  • mise exec -- make check → 142 ok, 0 FAIL, exit 0. pr-checks on the head sha: success (17s).
  • The test is real, not decorative: I copied the tree, dropped silo from classify() (scripts/env.sh:165) and recomputed the body pin so only the actor changed — case_silo_actor then reds 6 assertions. scripts/tests/run.sh:740-775 fails when the feature is absent.
  • bao policy fmt on a copy → empty diff. ansible-playbook --syntax-check -i inventories/prod/hosts site.yml → parses.
  • Policy semantics, on a throwaway OpenBao 2.7.1 dev store with the branch's ci-silo.hcl written and a token carrying only ci-silo: read secret/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; PUT on the path → 403. Matches the amendment's acceptance line.
  • Role binding, same dev store: the role written exactly as defaults/main.yml:150-157 and store.yml:296-309 compose it → 204, read back token_policies=[ci-silo], TTL 600/1200, bound_claims={repository: olympus/infra-silo, ref: refs/heads/main, event_name: push}, audience openbao. RS256 tokens signed against it: correct claims → a token carrying ci-silo; repository=olympus/infra-tracker, event_name=pull_request and ref=refs/heads/feature each refused (claim … does not match any associated bound claim values).
  • Doc arithmetic: 58 → 83 closes step by step (store-layout.md:402-462); nine policy files on disk against "nine" at store-identity.md:433; five CI actors against "fifth" at store-identity.md:220 and env-fetch.md:120. store-layout.md:43's two-prefix example is illustrative and pre-dates this change.
  • Every file in the diff accounted for: 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 matches dc5a0e58…), 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 0 cannot 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-check from 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.
  • The post-merge 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

Axis Findings Worst
Standards 0 —
Spec 1 (advisory) the PR body's "lag by one actor", which understates the gap and mis-sequences SL-20 behind SL-36

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.

repo: olympus/infra-secrets · pr: 37 · head: 17d0292e17041a89d29510d961d7275ba4b1acda · round: 1/5 · verdict: merge Recommendation: merge ## Standards — 0 findings Sources read: `AGENTS.md` (§Checks: `make check` is the floor, `main` refuses while `pr-checks` is red or missing), `olympus/workshop` `docs/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 in `docs/store-identity.md` and `docs/store-layout.md`. | Check | Result | |---|---| | Named path, no prefix, no `list` (ADR-0007; the `ci-secrets`/`ci-forge` shape) | pass — `bao/policies/ci-silo.hcl:25` | | One HCL file per class, applied by the role and never an actor (`store-identity.md:303-306`) | pass — `bao/policies/` now holds nine files, all globbed by `store.yml:120` | | Policy named `ci-<actor>` for an actor named in `env.sh` (`defaults/main.yml:111-112`) | pass — `silo` / `ci-silo` | | Path never names the consuming repository (ADR-0007) | pass — `secret/ci/silo/…`, not `secret/ci/infra-silo/…` | | `make check` green, `pr-checks` green | pass — 142 ok, 0 FAIL locally; `pr-checks / check (pull_request)` = success | | Formatting the repo enforces | pass — `bao policy fmt` empty diff; `ansible-playbook --syntax-check` parses | The policy file and the test case are near-copies of `ci-secrets`'s and `case_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](https://vikunja.thepit.space/tasks/329), 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.sh` now 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@main` `scripts/env.sh:2` pins `137870c6…` and has no `classify()` at all — its actor case is `tracker)` alone. - `olympus/infra-forge@main` `scripts/env.sh:2` pins the same `137870c6…`, same shape. - `olympus/infra-cockpit@main` `scripts/env.sh:2` pins `5dacf361…` and classifies `tracker|cockpit`. - `olympus/infra-silo@main` `scripts/env.sh:321` classifies `tracker)` 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=silo` refuses ("`$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.md` section is required by that page's own claim to own the paths, and matches what SC-24/SC-16 did; the removed `env-fetch.md` parenthetical was a stale claim that `store-identity.md:284-291` already contradicts. ## Verified (by hand, from 17d0292) - `mise exec -- make check` → **142 ok, 0 FAIL**, exit 0. `pr-checks` on the head sha: success (17s). - The test is real, not decorative: I copied the tree, dropped `silo` from `classify()` (`scripts/env.sh:165`) and recomputed the body pin so only the actor changed — `case_silo_actor` then reds **6 assertions**. `scripts/tests/run.sh:740-775` fails when the feature is absent. - `bao policy fmt` on a copy → empty diff. `ansible-playbook --syntax-check -i inventories/prod/hosts site.yml` → parses. - Policy semantics, on a throwaway OpenBao 2.7.1 dev store with the branch's `ci-silo.hcl` written and a token carrying only `ci-silo`: read `secret/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; `PUT` on the path → 403. Matches the amendment's acceptance line. - Role binding, same dev store: the role written exactly as `defaults/main.yml:150-157` and `store.yml:296-309` compose it → 204, read back `token_policies=[ci-silo]`, TTL 600/1200, `bound_claims={repository: olympus/infra-silo, ref: refs/heads/main, event_name: push}`, audience `openbao`. RS256 tokens signed against it: correct claims → a token carrying `ci-silo`; `repository=olympus/infra-tracker`, `event_name=pull_request` and `ref=refs/heads/feature` each refused (`claim … does not match any associated bound claim values`). - Doc arithmetic: 58 → 83 closes step by step (`store-layout.md:402-462`); nine policy files on disk against "nine" at `store-identity.md:433`; five CI actors against "fifth" at `store-identity.md:220` and `env-fetch.md:120`. `store-layout.md:43`'s two-prefix example is illustrative and pre-dates this change. - Every file in the diff accounted for: `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 matches `dc5a0e58…`), `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 0` cannot 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-check` from 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. - The post-merge `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 | Axis | Findings | Worst | |---|---|---| | Standards | 0 | — | | Spec | 1 (advisory) | the PR body's "lag by one actor", which understates the gap and mis-sequences SL-20 behind SL-36 | 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.
Author
Owner

Fix advisory and merge conflict

Fix advisory and merge conflict
Member

Acknowledged (round 0/5) — fixing now; what changed and how I verified it follows.

**Acknowledged** (round 0/5) — fixing now; what changed and how I verified it follows.
Merge origin/main into hermes/sc29-ci-silo-login-and-actor
All checks were successful
pr-checks / check (pull_request) Successful in 17s
3d82ec8ee6
main gained SC-38's two commits (e879247, then 8153b12) after this branch
was cut, and both rewrote the `runner` identity row's Guest reach — now
141, 142, 144 and 146 — plus the two pages that restate it.

Only docs/store-identity.md conflicted: this branch adds the `silo` CI row
directly above the `runner` row main edited. Kept this branch's `silo` row
and took main's `runner` row verbatim, so the new actor keeps its row and
the runner row keeps the 144 reach main recorded. The stale
"144 pending SC-38's rows" wording is main's own intermediate state
(e879247), superseded by 8153b12; the merge takes the later text.

docs/store-layout.md and docs/proxmox-credentials.md auto-merged. Main's
edits there touch the outside-store runner-token row and the Proxmox
record, neither of which this branch edits, and main adds no store path —
measured: the layout census reads exactly one path more on this tree than
on origin/main, `secret/ci/silo/semaphore-api`, so the page's 82 -> 83
count still closes.
bot-efesto dismissed bot-minos's review 2026-11-09 18:21:59 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

Member

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) and Recommendation: 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 and pit'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

# Axis Finding Disposition Where it landed
1 Spec (ADVISORY) The PR body's §Blast Radius says the other four repos "now lag this pin by one actor", and that "SC-30 and SL-20 wait on this merge". The lag is three to four CI actors, and SL-20 additionally waits on SL-36, because infra-silo's make env ACTOR=silo refuses until its vendored script knows the actor. fixed PR body, not a commit — PATCH /pulls/37, 3530 → 4019 chars; read back equal to what was sent, old sentence count 0, new text count 1
2 — (not a review finding; pit's comment) mergeable: false: main moved to e879247 and then 8153b12 after this branch was cut at 3f994f6, conflicting in docs/store-identity.md fixed 3d82ec8 (merge commit)

The advisory, measured rather than restated

The pins are re-derived from each repository's origin/main, not copied from the report:

repo scripts/env.sh pin actor case on that pin
infra-tracker 137870c6… tracker) alone; no classify()
infra-forge 137870c6… tracker) alone; no classify()
infra-silo 137870c6… tracker) alone; no classify()
infra-cockpit 5dacf361… classify() present, tracker|cockpit

This branch's pin is dc5a0e58…, classifying tracker|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 refuses silo with $ACTOR is not an actor in the store's identity table, which is why SL-20 needs SL-36 and this merge.

The merge

main moved twice under this round: e879247 (SC-38's first half, which still carried the intermediate "144 pending SC-38's rows") and 8153b12 (its second half, which applies the rows and drops the "pending" wording). 3d82ec8 merges 8153b12, so the branch takes the final text, not the superseded one.

  • Only docs/store-identity.md conflicted: this branch adds the silo CI row directly above the runner row main rewrote. Resolution = this branch's silo row + main's runner row verbatim (outside 141, 142, 144 and 146).
  • docs/store-layout.md and docs/proxmox-credentials.md auto-merged, and were read back: the layout differs from origin/main by additions only (the secret/ci/silo/… section and the 82 → 83 paragraph); proxmox-credentials.md is byte-identical to main.
  • Main added no store path, so the layout's count still closes: the census reads exactly one path more on this tree than on origin/main, and it is secret/ci/silo/semaphore-api.

Verification at 3d82ec8

Command (repo root unless noted) Result
mise exec -- make check rc=0 — 142 ok lines, 0 FAIL, last line env fetch: every case passed.
mise exec -- tofu fmt -check -recursive -diff rc=0, no output
mise exec -- ansible-playbook -i inventories/prod/hosts --syntax-check site.yml (in bao/service) rc=0, playbook: site.yml, plus the pre-existing [WARNING]: Found both group and host with same name: bao
mise exec -- bao policy fmt on a copy of bao/policies/ci-silo.hcl Success! Formatted policy; diff against the file empty
render_check.py docs/store-identity.md, docs/store-layout.md every table ragged 0; secret/ci/silo/semaphore-api and With it the layout declares 83 paths PRESENT; pending SC-38 ABSENT
GET /raw/<path>?ref=3d82ec8 against the worktree store-identity.md, store-layout.md, ci-silo.hcl all equal=True
pr-checks / check (pull_request) on 3d82ec8 success
PR object after the push mergeable: true, head 3d82ec8, base 8153b12

Left alone, deliberately

  • make service-check from 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.
  • The post-merge make service and the live-token read/refusal proof are by the PR's own plan after the merge — untouched by this round.
  • Disagreements: none. The pins, the actor counts and the SL-20 → SL-36 ordering all measured as the finding stated.

Scope of this round: a merge resolution under docs/ plus the PR body. No change to bao/policies/ci-silo.hcl, bao/service/roles/openbao/defaults/main.yml, scripts/env.sh or scripts/tests/run.sh.

**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)` and `Recommendation: 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 and `pit`'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 | # | Axis | Finding | Disposition | Where it landed | | --- | --- | --- | --- | --- | | 1 | Spec (ADVISORY) | The PR body's §Blast Radius says the other four repos "now lag this pin by one actor", and that "SC-30 and SL-20 wait on this merge". The lag is three to four CI actors, and SL-20 additionally waits on SL-36, because infra-silo's `make env ACTOR=silo` refuses until its vendored script knows the actor. | fixed | **PR body, not a commit** — `PATCH /pulls/37`, 3530 → 4019 chars; read back equal to what was sent, old sentence count `0`, new text count `1` | | 2 | — (not a review finding; `pit`'s comment) | `mergeable: false`: `main` moved to `e879247` and then `8153b12` after this branch was cut at `3f994f6`, conflicting in `docs/store-identity.md` | fixed | `3d82ec8` (merge commit) | ### The advisory, measured rather than restated The pins are re-derived from each repository's `origin/main`, not copied from the report: | repo | `scripts/env.sh` pin | actor case on that pin | | --- | --- | --- | | `infra-tracker` | `137870c6…` | `tracker)` alone; no `classify()` | | `infra-forge` | `137870c6…` | `tracker)` alone; no `classify()` | | `infra-silo` | `137870c6…` | `tracker)` alone; no `classify()` | | `infra-cockpit` | `5dacf361…` | `classify()` present, `tracker\|cockpit` | This branch's pin is `dc5a0e58…`, classifying `tracker|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 refuses `silo` with `$ACTOR is not an actor in the store's identity table`, which is why SL-20 needs SL-36 **and** this merge. ### The merge `main` moved twice under this round: `e879247` (SC-38's first half, which still carried the intermediate "144 pending SC-38's rows") and `8153b12` (its second half, which applies the rows and drops the "pending" wording). `3d82ec8` merges `8153b12`, so the branch takes the final text, not the superseded one. - Only `docs/store-identity.md` conflicted: this branch adds the `silo` CI row directly above the `runner` row main rewrote. Resolution = this branch's `silo` row + main's `runner` row verbatim (`outside 141, 142, 144 and 146`). - `docs/store-layout.md` and `docs/proxmox-credentials.md` auto-merged, and were read back: the layout differs from `origin/main` by additions only (the `secret/ci/silo/…` section and the 82 → 83 paragraph); `proxmox-credentials.md` is byte-identical to main. - Main added no store path, so the layout's count still closes: the census reads exactly one path more on this tree than on `origin/main`, and it is `secret/ci/silo/semaphore-api`. ### Verification at `3d82ec8` | Command (repo root unless noted) | Result | | --- | --- | | `mise exec -- make check` | **rc=0** — 142 `ok` lines, 0 `FAIL`, last line `env fetch: every case passed.` | | `mise exec -- tofu fmt -check -recursive -diff` | rc=0, no output | | `mise exec -- ansible-playbook -i inventories/prod/hosts --syntax-check site.yml` (in `bao/service`) | rc=0, `playbook: site.yml`, plus the pre-existing `[WARNING]: Found both group and host with same name: bao` | | `mise exec -- bao policy fmt` on a copy of `bao/policies/ci-silo.hcl` | `Success! Formatted policy`; diff against the file empty | | `render_check.py docs/store-identity.md`, `docs/store-layout.md` | every table `ragged 0`; `secret/ci/silo/semaphore-api` and `With it the layout declares 83 paths` PRESENT; `pending SC-38` ABSENT | | `GET /raw/<path>?ref=3d82ec8` against the worktree | `store-identity.md`, `store-layout.md`, `ci-silo.hcl` all `equal=True` | | `pr-checks / check (pull_request)` on `3d82ec8` | `success` | | PR object after the push | `mergeable: true`, `head 3d82ec8`, `base 8153b12` | ### Left alone, deliberately - **`make service-check` from 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. - **The post-merge `make service` and the live-token read/refusal proof** are by the PR's own plan after the merge — untouched by this round. - **Disagreements: none.** The pins, the actor counts and the SL-20 → SL-36 ordering all measured as the finding stated. **Scope of this round:** a merge resolution under `docs/` plus the PR body. No change to `bao/policies/ci-silo.hcl`, `bao/service/roles/openbao/defaults/main.yml`, `scripts/env.sh` or `scripts/tests/run.sh`.
Member

Review started (round 1/5) on 3d82ec8ee6 — reading the diff now.

**Review started** (round 1/5) on 3d82ec8ee6ae01bcb376b99b23e3c9db3663110d — reading the diff now.
bot-minos approved these changes 2026-11-09 18:29:15 +00:00
bot-minos left a comment

repo: olympus/infra-secrets · pr: 37 · head: 3d82ec8ee6 · round: 1/5 · verdict: merge

Recommendation: merge


Standards — 1 finding (advisory)

Standards read: AGENTS.md §Checks (make check is the floor, main refuses while pr-checks is red or missing); olympus/workshop docs/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 in docs/store-identity.md and docs/store-layout.md.

Check Result
Named path, no prefix, no list (ADR-0007) pass — bao/policies/ci-silo.hcl:25-27
Path names the actor, not the consuming repo (secret/ci/silo/…, never infra-silo/…) pass
One HCL file per class, applied by the role's glob and never per actor pass — bao/policies/ holds nine files, all picked up by store.yml:120
Role shape identical to the four existing CI roles (policy, 10m/20m, three claims, audience) pass — defaults/main.yml:150-157; key sets compared against tracker/cockpit/forge/secrets, identical
make check green; pr-checks green on the head pass — 142 ok, 0 FAIL locally; pr-checks / check (pull_request) = success at 3d82ec8
Formatting the repo enforces pass — bao policy fmt on a copy leaves an empty diff; ansible-playbook --syntax-check site.yml parses

Baseline smells: ci-silo.hcl is a near-copy of ci-secrets.hcl, and case_silo_actor of case_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 the runner row'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). At 3d82ec8:114 it reads … the tracker's, the forge's and infra-secrets' …. The base 3f994f6 did not carry the clause, so it was this branch's addition; git log -S "infra-silo's CI material" origin/main finds no commit on main that ever had it. The resolution took main's row verbatim to keep its /vms/144 change and dropped the branch's clause with it — the diff stat says so: 126+/12− at 17d0292, 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: put and infra-silo's back in the parenthetical, keeping main's 141, 142, 144 and 146.

Spec — 0 findings

Spec source: SC-29 could not be read. The stored Vikunja credential answers 401 on /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.

Contract claim (PR body) Result
ci-silo reads secret/ci/silo/semaphore-api and nothing else pass — live dev store, token carrying only ci-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; LIST 403; PUT 403
Role silo bound to olympus/infra-silo, refs/heads/main, push, audience openbao, 600/1200 pass — written as defaults/main.yml:150-157 composes it: 204, read back token_policies=[ci-silo], the three claims exact
env.sh knows silo; the pin is re-derived pass — scripts/env.sh:165, line 2 dc5a0e58…, and the body's sha256 recomputed independently to the same value
env-check accepts actors=silo pass
The fetch logs in by JWT, reports actor silo · method jwt · ttl 600s, fills SEMAPHORE_API_TOKEN, never echoes it pass — end-to-end against the real store with the branch's own env.sh: rc 0, value in .env at 0600, zero occurrences in the transcript
A token minted for another role is refused pass — wrong repository, wrong event (pull_request) and wrong ref each answered 400 and wrote nothing
The record's plan and apply keys are not in this login pass — the policy has one path; the doc rows say the same
Docs: identity row + policy-file row, fetch actor table, secret/ci/silo/ section, 82 → 83 pass — store-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→83
The vendoring lag is three to four actors, and SL-20 waits on SL-36 pass — re-derived from each repo's origin/main: tracker/forge/silo on 137870c6… with tracker) alone, cockpit on 5dacf361… with `tracker
make service-check names exactly two pending writes not verified — needs the live store's root token
The ticket body and its acceptance line were amended not verified — the ticket is unreadable (401)

No scope creep: the store-layout.md section is what that page's own claim to own the paths requires, the env-fetch.md parenthetical removed a claim store-identity.md already contradicts, and the merge brought only main's SC-38 edits. No requirement of the stated contract is missing.

Verified by hand at 3d82ec8

  • mise exec -- make check → 142 ok, 0 FAIL, rc 0.
  • The test is real: on a copy, silo removed from classify() and the pin recomputed, case_silo_actor reds 6 of 8 assertions (env-check accepts a row scoped to silo, silo is accepted as an actor, the login line, the fill).
  • Policy semantics and the role binding: throwaway OpenBao 2.7.1 dev store, results in the Spec table above.
  • Fetch end-to-end: the branch's env.sh + the role as declared, real login, real read, real refusal of three wrong claim sets.
  • Every file in the diff accounted for: 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-check and the post-merge make 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.
  • The live-token read/refusal proof on the production store — the PR's second acceptance line, deliberately left to the Operator.
  • SC-29's text (401, above).

Summary

Axis Findings Worst
Standards 1 (advisory) the merge dropped this branch's infra-silo's clause from the runner row's denied set
Spec 0 —

One 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; 3d82ec8 dismissed it as stale. This round re-judges the merged head — which is how the dropped clause above surfaced.

repo: olympus/infra-secrets · pr: 37 · head: 3d82ec8ee6ae01bcb376b99b23e3c9db3663110d · round: 1/5 · verdict: merge Recommendation: merge --- ## Standards — 1 finding (advisory) Standards read: `AGENTS.md` §Checks (`make check` is the floor, `main` refuses while `pr-checks` is red or missing); `olympus/workshop` `docs/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 in `docs/store-identity.md` and `docs/store-layout.md`. | Check | Result | |---|---| | Named path, no prefix, no `list` (ADR-0007) | pass — `bao/policies/ci-silo.hcl:25-27` | | Path names the actor, not the consuming repo (`secret/ci/silo/…`, never `infra-silo/…`) | pass | | One HCL file per class, applied by the role's glob and never per actor | pass — `bao/policies/` holds nine files, all picked up by `store.yml:120` | | Role shape identical to the four existing CI roles (policy, 10m/20m, three claims, audience) | pass — `defaults/main.yml:150-157`; key sets compared against tracker/cockpit/forge/secrets, identical | | `make check` green; `pr-checks` green on the head | pass — 142 ok, 0 FAIL locally; `pr-checks / check (pull_request)` = success at 3d82ec8 | | Formatting the repo enforces | pass — `bao policy fmt` on a copy leaves an empty diff; `ansible-playbook --syntax-check site.yml` parses | Baseline smells: `ci-silo.hcl` is a near-copy of `ci-secrets.hcl`, and `case_silo_actor` of `case_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 the `runner` row'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) ``. At `3d82ec8:114` it reads `… the tracker's, the forge's and infra-secrets' …`. The base `3f994f6` did not carry the clause, so it was this branch's addition; `git log -S "infra-silo's CI material" origin/main` finds no commit on `main` that ever had it. The resolution took main's row verbatim to keep its `/vms/144` change and dropped the branch's clause with it — the diff stat says so: 126+/12− at `17d0292`, 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: put `and infra-silo's` back in the parenthetical, keeping main's `141, 142, 144 and 146`. ## Spec — 0 findings Spec source: **SC-29 could not be read.** The stored Vikunja credential answers `401` on `/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. | Contract claim (PR body) | Result | |---|---| | `ci-silo` reads `secret/ci/silo/semaphore-api` and nothing else | pass — live dev store, token carrying only `ci-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; `LIST` 403; `PUT` 403 | | Role `silo` bound to `olympus/infra-silo`, `refs/heads/main`, `push`, audience `openbao`, 600/1200 | pass — written as `defaults/main.yml:150-157` composes it: 204, read back `token_policies=[ci-silo]`, the three claims exact | | `env.sh` knows `silo`; the pin is re-derived | pass — `scripts/env.sh:165`, line 2 `dc5a0e58…`, and the body's sha256 recomputed independently to the same value | | env-check accepts `actors=silo` | pass | | The fetch logs in by JWT, reports `actor silo · method jwt · ttl 600s`, fills `SEMAPHORE_API_TOKEN`, never echoes it | pass — end-to-end against the real store with the branch's own `env.sh`: rc 0, value in `.env` at 0600, zero occurrences in the transcript | | A token minted for another role is refused | pass — wrong repository, wrong event (`pull_request`) and wrong ref each answered 400 and wrote nothing | | The record's `plan` and `apply` keys are not in this login | pass — the policy has one path; the doc rows say the same | | Docs: identity row + policy-file row, fetch actor table, `secret/ci/silo/` section, 82 → 83 | pass — `store-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→83 | | The vendoring lag is three to four actors, and SL-20 waits on SL-36 | pass — re-derived from each repo's `origin/main`: tracker/forge/silo on `137870c6…` with `tracker)` alone, cockpit on `5dacf361…` with `tracker|cockpit`; infra-silo's `env.sh:322` refuses `silo` | | `make service-check` names exactly two pending writes | **not verified** — needs the live store's root token | | The ticket body and its acceptance line were amended | **not verified** — the ticket is unreadable (401) | No scope creep: the `store-layout.md` section is what that page's own claim to own the paths requires, the `env-fetch.md` parenthetical removed a claim `store-identity.md` already contradicts, and the merge brought only main's SC-38 edits. No requirement of the stated contract is missing. ## Verified by hand at 3d82ec8 - `mise exec -- make check` → **142 ok, 0 FAIL**, rc 0. - The test is real: on a copy, `silo` removed from `classify()` and the pin recomputed, `case_silo_actor` reds **6 of 8** assertions (`env-check accepts a row scoped to silo`, `silo is accepted as an actor`, the login line, the fill). - Policy semantics and the role binding: throwaway OpenBao 2.7.1 dev store, results in the Spec table above. - Fetch end-to-end: the branch's `env.sh` + the role as declared, real login, real read, real refusal of three wrong claim sets. - Every file in the diff accounted for: `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-check` and the post-merge `make 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. - The live-token read/refusal proof on the production store — the PR's second acceptance line, deliberately left to the Operator. - SC-29's text (401, above). ## Summary | Axis | Findings | Worst | |---|---|---| | Standards | 1 (advisory) | the merge dropped this branch's `infra-silo's` clause from the `runner` row's denied set | | Spec | 0 | — | One 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`; `3d82ec8` dismissed it as stale. This round re-judges the merged head — which is how the dropped clause above surfaced.*
pit merged commit ae32e27fef into main 2026-11-09 18:32:46 +00:00
pit deleted branch hermes/sc29-ci-silo-login-and-actor 2026-11-09 18:32:46 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 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!37
No description provided.