feat: infra-cockpit's deploy gets a CI login and its own Proxmox token (SC-14) #24

Merged
pit merged 8 commits from hermes/sc14-cockpit-ci-login into main 2026-11-04 18:02:53 +00:00
Owner

Implements SC-14: infra-cockpit's Forgejo Actions deploy gets a CI login to the store and its own Proxmox token. This is the repository half, and it is live: the policy, the CI role and the Proxmox token were applied on 2026-11-04, and the tree now records what the store and the cluster hold. What stays the Operator's is minting the three Semaphore secrets and the runner record's deploy state key, which remain declared and unminted; the semaphore record's deploy key was minted on 2026-11-04 and the tree records it.

Summary

The role's one JWT role becomes a list, and cockpit joins it:

 # bao/service/roles/openbao/defaults/main.yml
-openbao_jwt_role: tracker
-openbao_jwt_policy: ci-tracker
-openbao_jwt_bound_claims: {repository: olympus/infra-tracker, ref: refs/heads/main, event_name: push}
+openbao_jwt_roles:
+  - name: tracker   policy: ci-tracker   10m / 20m   olympus/infra-tracker, refs/heads/main, push
+  - name: cockpit   policy: ci-cockpit   10m / 20m   olympus/infra-cockpit, refs/heads/main, push

store.yml 7e reads each role back and writes only the ones that differ, the same way the AppRole roles are handled.

ci-cockpit reads nine named paths, read-only, with no list:

secret/services/semaphore/{config,admin,smtp,watchdog-token,runner-registration}
secret/tofu-state/semaphore/deploy            # 143's state: read/write, delete only the lock
secret/tofu-state/semaphore-runner/deploy     # 145's state, same key type
secret/ci/cockpit/deploy-ssh                  # root on 143 and 145
secret/ci/cockpit/proxmox-token               # infra-actions@pve!deploy

Two changes from the ticket text, both decided by the Operator in the session:

  • Named paths, not secret/services/semaphore/*. The spec puts the Semaphore runner's SSH key at services/semaphore/deploy-ssh, root on 141, 142, 144, 146 and 150. The prefix would hand it to cockpit, and ADR-0007 forbids a prefix with an exception.
  • The state keys the ticket calls "runner-variant" live at …/deploy. The ticket names no path. ADR-0012, Accepted 2026-11-04, adds the deploy shape to the two ADR-0006 counted, so the third shape is the workshop's record and not a departure the docs make ahead of it: the semaphore record's key is minted (2026-11-04), the runner's is not.

Docs:

  • store-identity.md: the cockpit row, its policy row, and the paragraph saying both are in the live store.
  • store-layout.md: the new paths, and the counts they move.
  • proxmox-credentials.md: the infra-actions@pve!deploy mint, its check and its revocation — the commands that ran.
  • env-fetch.md: the actor table and the CI paragraph say the role is in the store; both samples of the fetch's pin move with the repin.

Evidence

Applied, and read back. The store and the cluster carry the change as of 2026-11-04.

Claim How Result
The store's policy is this file, byte for byte bao policy read ci-cockpit → sha256sum against bao/policies/ci-cockpit.hcl fc0de6d2…, 61 lines on both sides
Both roles are in the store, with their TTLs and claims bao read -format=json auth/jwt/role/{tracker,cockpit} tracker → ci-tracker, 600 / 1200, olympus/infra-tracker · refs/heads/main · push; cockpit → ci-cockpit, 600 / 1200, the same three claims for olympus/infra-cockpit
The Proxmox token is minted pvesh get /access/users/infra-actions@pve/token deploy, privsep: 1, expire: 0, comment SC-14: cockpit deploy of 143 and 145

Rehearsed before applying. Against a throwaway OpenBao 2.7.1 dev server with a local stand-in for Forgejo's OIDC issuer: the role's own store.yml ran, then forged Forgejo-shaped tokens logged in.

  • Before (this repo's main):

    FAIL  role cockpit refused a push on main:
          * role "cockpit" could not be found
    
  • After:

    ok    role cockpit issues a token to a push on main
    ok    reads secret/services/semaphore/{config,admin,smtp,watchdog-token,runner-registration}
    ok    reads secret/tofu-state/{semaphore,semaphore-runner}/deploy, secret/ci/cockpit/{deploy-ssh,proxmox-token}
    ok    refused secret/services/semaphore/deploy-ssh, …/webhook, secret/homelab/proxmox/runner-token,
          secret/tofu-state/semaphore/{apply,plan}, secret/silo/*, a list, a write
    ok    token TTL 596s (10m), role ceiling 1200s (20m), policies ["ci-cockpit","default"]
    ok    refused infra-cockpit pull_request, pull_request_target, refs/heads/feature push; infra-tracker push
    ok    role tracker unchanged: reads its own path, refused cockpit's, refuses cockpit's push
    ok    second run changed=0; check run changed=0
    passed 38, failed 0
    
  • Upgrade. On a store built by main's role, this branch's check run names exactly two writes, so tracker is not rewritten:

    would write: policy ci-cockpit: the store holds different text
    would write: jwt/role/cockpit: absent, or its TTLs, audience or claims differ
    
  • Floor. Re-run at this head, after the main merge: mise exec -- make check rc 0 (env fetch: every case passed.), mise exec -- make validate → Success! The configuration is valid., mise exec -- tofu fmt -check -recursive -diff rc 0 and silent, and mise exec -- ansible-playbook -i inventories/prod/hosts --syntax-check site.yml in bao/service rc 0 (its Found both group and host with same name: bao warning is pre-existing).

Not verified: the consumer's end to end. infra-cockpit at 3d5be46 (main) does carry an env.map and a workflow — the map sources secret/services/semaphore/{config,admin} and secret/tofu-state/semaphore/apply for any actor, and pr-checks runs make check and reads no store. Neither is the deploy: the map carries no cockpit row, and the row that maps secret/tofu-state/semaphore/apply is outside ci-cockpit's nine paths, so a cockpit fetch there refuses on that row until the map names the deploy's own reach. Also unverified: the four declared-but-unminted paths, and a real cockpit login, which no run has made.

Merge Danger

Door: two-way

Merging changes no live system. The store already holds ci-cockpit and auth/jwt/role/cockpit, written on 2026-11-04 from this repository's files, so the next make service writes neither — a check run there reports nothing to write. To undo them, run bao delete auth/jwt/role/cockpit and bao policy delete ci-cockpit, then revert this PR.

Blast Radius: tracker's CI login

tracker's role moves into a list. It is in the store unchanged (ci-tracker, 600 / 1200, the same three claims), and store.yml 7e writes only the roles that differ. A typo there would still surface as tracker's push-to-main jobs failing at login.

Implements [SC-14](https://vikunja.thepit.space/tasks/265): infra-cockpit's Forgejo Actions deploy gets a CI login to the store and its own Proxmox token. This is the repository half, and it is live: the policy, the CI role and the Proxmox token were applied on 2026-11-04, and the tree now records what the store and the cluster hold. What stays the Operator's is minting the three Semaphore secrets and the runner record's `deploy` state key, which remain declared and unminted; the semaphore record's `deploy` key was minted on 2026-11-04 and the tree records it. ## Summary The role's one JWT role becomes a list, and `cockpit` joins it: ```diff # bao/service/roles/openbao/defaults/main.yml -openbao_jwt_role: tracker -openbao_jwt_policy: ci-tracker -openbao_jwt_bound_claims: {repository: olympus/infra-tracker, ref: refs/heads/main, event_name: push} +openbao_jwt_roles: + - name: tracker policy: ci-tracker 10m / 20m olympus/infra-tracker, refs/heads/main, push + - name: cockpit policy: ci-cockpit 10m / 20m olympus/infra-cockpit, refs/heads/main, push ``` `store.yml` 7e reads each role back and writes only the ones that differ, the same way the AppRole roles are handled. `ci-cockpit` reads nine named paths, read-only, with no list: ```text secret/services/semaphore/{config,admin,smtp,watchdog-token,runner-registration} secret/tofu-state/semaphore/deploy # 143's state: read/write, delete only the lock secret/tofu-state/semaphore-runner/deploy # 145's state, same key type secret/ci/cockpit/deploy-ssh # root on 143 and 145 secret/ci/cockpit/proxmox-token # infra-actions@pve!deploy ``` Two changes from the ticket text, both decided by the Operator in the session: - **Named paths, not `secret/services/semaphore/*`.** The spec puts the Semaphore runner's SSH key at `services/semaphore/deploy-ssh`, root on 141, 142, 144, 146 and 150. The prefix would hand it to cockpit, and ADR-0007 forbids a prefix with an exception. - **The state keys the ticket calls "runner-variant" live at `…/deploy`.** The ticket names no path. ADR-0012, Accepted 2026-11-04, adds the `deploy` shape to the two ADR-0006 counted, so the third shape is the workshop's record and not a departure the docs make ahead of it: the semaphore record's key is minted (2026-11-04), the runner's is not. Docs: - `store-identity.md`: the `cockpit` row, its policy row, and the paragraph saying both are in the live store. - `store-layout.md`: the new paths, and the counts they move. - `proxmox-credentials.md`: the `infra-actions@pve!deploy` mint, its check and its revocation — the commands that ran. - `env-fetch.md`: the actor table and the CI paragraph say the role is in the store; both samples of the fetch's pin move with the repin. ## Evidence **Applied, and read back.** The store and the cluster carry the change as of 2026-11-04. | Claim | How | Result | | --- | --- | --- | | The store's policy is this file, byte for byte | `bao policy read ci-cockpit` → `sha256sum` against `bao/policies/ci-cockpit.hcl` | `fc0de6d2…`, 61 lines on both sides | | Both roles are in the store, with their TTLs and claims | `bao read -format=json auth/jwt/role/{tracker,cockpit}` | `tracker` → `ci-tracker`, 600 / 1200, `olympus/infra-tracker` · `refs/heads/main` · `push`; `cockpit` → `ci-cockpit`, 600 / 1200, the same three claims for `olympus/infra-cockpit` | | The Proxmox token is minted | `pvesh get /access/users/infra-actions@pve/token` | `deploy`, `privsep: 1`, `expire: 0`, comment `SC-14: cockpit deploy of 143 and 145` | **Rehearsed before applying.** Against a throwaway OpenBao 2.7.1 dev server with a local stand-in for Forgejo's OIDC issuer: the role's own `store.yml` ran, then forged Forgejo-shaped tokens logged in. - **Before** (this repo's `main`): ```text FAIL role cockpit refused a push on main: * role "cockpit" could not be found ``` - **After:** ```text ok role cockpit issues a token to a push on main ok reads secret/services/semaphore/{config,admin,smtp,watchdog-token,runner-registration} ok reads secret/tofu-state/{semaphore,semaphore-runner}/deploy, secret/ci/cockpit/{deploy-ssh,proxmox-token} ok refused secret/services/semaphore/deploy-ssh, …/webhook, secret/homelab/proxmox/runner-token, secret/tofu-state/semaphore/{apply,plan}, secret/silo/*, a list, a write ok token TTL 596s (10m), role ceiling 1200s (20m), policies ["ci-cockpit","default"] ok refused infra-cockpit pull_request, pull_request_target, refs/heads/feature push; infra-tracker push ok role tracker unchanged: reads its own path, refused cockpit's, refuses cockpit's push ok second run changed=0; check run changed=0 passed 38, failed 0 ``` - **Upgrade.** On a store built by `main`'s role, this branch's check run names exactly two writes, so `tracker` is not rewritten: ```text would write: policy ci-cockpit: the store holds different text would write: jwt/role/cockpit: absent, or its TTLs, audience or claims differ ``` - **Floor.** Re-run at this head, after the `main` merge: `mise exec -- make check` rc 0 (`env fetch: every case passed.`), `mise exec -- make validate` → `Success! The configuration is valid.`, `mise exec -- tofu fmt -check -recursive -diff` rc 0 and silent, and `mise exec -- ansible-playbook -i inventories/prod/hosts --syntax-check site.yml` in `bao/service` rc 0 (its `Found both group and host with same name: bao` warning is pre-existing). Not verified: the consumer's end to end. `infra-cockpit` at `3d5be46` (`main`) does carry an `env.map` and a workflow — the map sources `secret/services/semaphore/{config,admin}` and `secret/tofu-state/semaphore/apply` for any actor, and `pr-checks` runs `make check` and reads no store. Neither is the deploy: the map carries no `cockpit` row, and the row that maps `secret/tofu-state/semaphore/apply` is outside `ci-cockpit`'s nine paths, so a `cockpit` fetch there refuses on that row until the map names the deploy's own reach. Also unverified: the four declared-but-unminted paths, and a real cockpit login, which no run has made. ## Merge Danger **Door:** two-way Merging changes no live system. The store already holds `ci-cockpit` and `auth/jwt/role/cockpit`, written on 2026-11-04 from this repository's files, so the next `make service` writes neither — a check run there reports nothing to write. To undo them, run `bao delete auth/jwt/role/cockpit` and `bao policy delete ci-cockpit`, then revert this PR. **Blast Radius:** tracker's CI login `tracker`'s role moves into a list. It is in the store unchanged (`ci-tracker`, 600 / 1200, the same three claims), and `store.yml` 7e writes only the roles that differ. A typo there would still surface as tracker's push-to-main jobs failing at `login`.
feat: infra-cockpit's deploy gets a CI login and its own Proxmox token (SC-14)
All checks were successful
pr-checks / check (pull_request) Successful in 16s
7809f3b762
The role's one JWT role becomes a list, `openbao_jwt_roles`, and gains
`cockpit`: bound to olympus/infra-cockpit, refs/heads/main and push, 10m / 20m,
policy `ci-cockpit`. Each role is read back and written on its own, so a store
built by the previous role takes exactly two writes: the policy and the role.

`ci-cockpit` reads nine named paths and nothing else. The Semaphore paths are
named rather than granted as `secret/services/semaphore/*`, because the
Semaphore runner's root key sits under that prefix at `deploy-ssh`. The two
Guest state keys are a `deploy` shape that cannot delete the state object.

The layout, identity, env-fetch and Proxmox pages gain the rows; the Proxmox
page carries the Operator's mint for `infra-actions@pve!deploy` and its check.
Member

Review started (round 1/5) on 7809f3b762 — reading the diff now.

**Review started** (round 1/5) on 7809f3b7624d5afde72a3d6660c5d2d232b2fcd6 — reading the diff now.
pit force-pushed hermes/sc14-cockpit-ci-login from 7809f3b762
All checks were successful
pr-checks / check (pull_request) Successful in 16s
to e7c1ea6474
All checks were successful
pr-checks / check (pull_request) Successful in 14s
2026-11-04 17:03:27 +00:00
Compare
Author
Owner

Applied live, 2026-11-04, from this branch's files. The store and the cluster now carry the change; the repo says so.

Store (written by hand from bao/policies/ci-cockpit.hcl and this branch's defaults, with the root token on the guest):

  • ci-cockpit policy uploaded; bao policy read ci-cockpit is byte-identical to the file.
  • auth/jwt/role/cockpit created: TTLs 600/1200, token_policies [ci-cockpit], bound_audiences [openbao], claims {repository: olympus/infra-cockpit, ref: refs/heads/main, event_name: push}, user_claim sub.
  • tracker untouched.
  • A check run of the role's own store.yml against the live store afterwards: changed=0, both CI roles read back, "what a real run would write" skipped — no pending writes. The repo and the store agree.

Policy reach, as a token holding it (minted with -policy=ci-cockpit -no-default-policy, then revoked):

reads     secret/services/semaphore/{config,admin}
reads     secret/ci/cockpit/proxmox-token
refused   secret/services/semaphore/deploy-ssh
refused   secret/{ci/tracker/*,silo/*,homelab/*,services/forgejo/internal-token}
refused   a list of secret/services/semaphore; a write to secret/ci/cockpit/proxmox-token

smtp, watchdog-token, runner-registration, ci/tracker/ssh-key and homelab/proxmox do not exist in the store, so their probes answer 404, not 403; the policy grants the three Semaphore ones by name, as written.

Proxmox — TofuGuestInPlace (created), infra-actions@pve, token deploy (privsep 1, no expiry), ACLs on user and token: /vms/143 and /vms/145 TofuGuestInPlace propagate 0; /storage/synology TofuDatastoreAudit and /sdn/zones TofuSdnUse, propagate 1. The value went from the mint into secret/ci/cockpit/proxmox-token in one pipe, never through a shell argument or a file I kept; the store read-back matched by digest; the node's copy was shredded. The first mint's value was lost to a parser slip and that token was deleted before re-minting.

Proof with the token's own header:

GET /version                              200
GET /nodes/burns/lxc/143/config           200
PUT /nodes/burns/lxc/143/config  (same description, in place)  200
PUT /nodes/burns/lxc/144/config           403
GET /nodes/burns/lxc/{141,144}/config     403
POST /nodes/burns/lxc (create vmid 999)   403
DELETE /nodes/burns/lxc/143               403
POST /nodes/burns/lxc/143/status/shutdown 403

Two corrections the live read forced on this branch's docs (committed as e7c1ea6):

  • The SDN grant is /sdn/zones propagate 1, not /sdn/zones/localnetwork/vmbr1. The cluster has no SDN zones (/cluster/sdn/zones is []), and every working credential here uses /sdn/zones.
  • TofuDatastoreAudit and TofuSdnUse are propagate 1, matching the existing credentials; only the /vms/<id> rows are propagate 0.

Deploy SSH key: an ed25519 key, public half in 143's /root/.ssh/authorized_keys under the comment sc14-cockpit-deploy, private half at secret/ci/cockpit/deploy-ssh field CI_SSH_KEY. Proved from this workstation with the ssh config bypassed: 143 answers, 142 and 144 refuse. The local private key was shredded. Remove with: sed -i '/sc14-cockpit-deploy/d' /root/.ssh/authorized_keys on 143.

Not done, and why:

  • The two deploy state keys are not minted. No repo declares a deploy-shape Silo policy file; semaphore/guest/state-policy.json in infra-cockpit is an apply shape, and minting a key against a policy no file declares is the drift the audit exists to catch. Unblocked by that file in the repo that owns the record.
  • The cockpit entity is not named: the store makes it on the first real login, and no real Forgejo token has been issued yet.
  • 145 does not exist, so its ACL is declared ahead of the Guest and its key half is not installed.
  • infra-cockpit's env.map still maps secret/tofu-state/semaphore/apply and has no cockpit row; until it does, its fetch as cockpit will 403 on that row.
Applied live, 2026-11-04, from this branch's files. The store and the cluster now carry the change; the repo says so. **Store** (written by hand from `bao/policies/ci-cockpit.hcl` and this branch's defaults, with the root token on the guest): - `ci-cockpit` policy uploaded; `bao policy read ci-cockpit` is byte-identical to the file. - `auth/jwt/role/cockpit` created: TTLs 600/1200, `token_policies [ci-cockpit]`, `bound_audiences [openbao]`, claims `{repository: olympus/infra-cockpit, ref: refs/heads/main, event_name: push}`, `user_claim sub`. - `tracker` untouched. - A check run of the role's own `store.yml` against the live store afterwards: `changed=0`, both CI roles read back, "what a real run would write" skipped — no pending writes. The repo and the store agree. **Policy reach, as a token holding it** (minted with `-policy=ci-cockpit -no-default-policy`, then revoked): ```text reads secret/services/semaphore/{config,admin} reads secret/ci/cockpit/proxmox-token refused secret/services/semaphore/deploy-ssh refused secret/{ci/tracker/*,silo/*,homelab/*,services/forgejo/internal-token} refused a list of secret/services/semaphore; a write to secret/ci/cockpit/proxmox-token ``` `smtp`, `watchdog-token`, `runner-registration`, `ci/tracker/ssh-key` and `homelab/proxmox` do not exist in the store, so their probes answer 404, not 403; the policy grants the three Semaphore ones by name, as written. **Proxmox** — `TofuGuestInPlace` (created), `infra-actions@pve`, token `deploy` (`privsep 1`, no expiry), ACLs on user and token: `/vms/143` and `/vms/145` `TofuGuestInPlace` propagate 0; `/storage/synology` `TofuDatastoreAudit` and `/sdn/zones` `TofuSdnUse`, propagate 1. The value went from the mint into `secret/ci/cockpit/proxmox-token` in one pipe, never through a shell argument or a file I kept; the store read-back matched by digest; the node's copy was shredded. The first mint's value was lost to a parser slip and that token was deleted before re-minting. Proof with the token's own header: ```text GET /version 200 GET /nodes/burns/lxc/143/config 200 PUT /nodes/burns/lxc/143/config (same description, in place) 200 PUT /nodes/burns/lxc/144/config 403 GET /nodes/burns/lxc/{141,144}/config 403 POST /nodes/burns/lxc (create vmid 999) 403 DELETE /nodes/burns/lxc/143 403 POST /nodes/burns/lxc/143/status/shutdown 403 ``` **Two corrections the live read forced on this branch's docs** (committed as `e7c1ea6`): - The SDN grant is `/sdn/zones` propagate 1, not `/sdn/zones/localnetwork/vmbr1`. The cluster has no SDN zones (`/cluster/sdn/zones` is `[]`), and every working credential here uses `/sdn/zones`. - `TofuDatastoreAudit` and `TofuSdnUse` are propagate 1, matching the existing credentials; only the `/vms/<id>` rows are propagate 0. **Deploy SSH key**: an ed25519 key, public half in 143's `/root/.ssh/authorized_keys` under the comment `sc14-cockpit-deploy`, private half at `secret/ci/cockpit/deploy-ssh` field `CI_SSH_KEY`. Proved from this workstation with the ssh config bypassed: 143 answers, 142 and 144 refuse. The local private key was shredded. Remove with: `sed -i '/sc14-cockpit-deploy/d' /root/.ssh/authorized_keys` on 143. **Not done, and why:** - The two `deploy` state keys are not minted. No repo declares a `deploy`-shape Silo policy file; `semaphore/guest/state-policy.json` in infra-cockpit is an `apply` shape, and minting a key against a policy no file declares is the drift the audit exists to catch. Unblocked by that file in the repo that owns the record. - The `cockpit` entity is not named: the store makes it on the first real login, and no real Forgejo token has been issued yet. - 145 does not exist, so its ACL is declared ahead of the Guest and its key half is not installed. - infra-cockpit's `env.map` still maps `secret/tofu-state/semaphore/apply` and has no `cockpit` row; until it does, its fetch as `cockpit` will 403 on that row.
bot-minos requested changes 2026-11-04 17:10:20 +00:00
Dismissed
bot-minos left a comment

olympus/infra-secrets · PR #24 · head e7c1ea6 · round 1/5

Dispatch named 7809f3b; the head moved to e7c1ea6 while I was reading it. The delta (git diff 7809f3b e7c1ea6) is docs only — bao/ and scripts/ are byte-identical — and every finding below is re-derived against e7c1ea6.

Recommendation: fix

No BLOCKER on either axis. Four ADVISORY findings; the recommendation turns on their count, not on their weight (see the close).

What I verified

Claim How Result
The role becomes a list; tracker is untouched Throwaway OpenBao 2.7.1 dev store built by main's role, then head's tasks/store.yml driven directly: check, real, real again, check ✅ check mode on the base-built store named exactly two writes — policy ci-cockpit, jwt/role/cockpit; the real run wrote them; the next run changed=0; check mode afterwards reported nothing to write
Both roles carry their TTLs, audience and claims bao read auth/jwt/role/{tracker,cockpit} on that store ✅ ci-tracker / ci-cockpit, [openbao], ttl 600 · max 1200, claims repository/ref/event_name as specified
A push to main gets a token; a pull-request run does not Local OIDC stand-in (discovery + JWKS), forged Forgejo-shaped RS256 tokens against POST /v1/auth/jwt/login ✅ cockpit/push-main → 200, ttl 600, policies [ci-cockpit, default]; pull_request, pull_request_target, refs/heads/feature, another repository, wrong audience, unknown role → 400
ci-cockpit reads its nine paths and nothing else That login's token against seeded KV paths ✅ nine named paths 200; services/semaphore/{deploy-ssh,webhook,config-extra}, homelab/proxmox/runner-token, tofu-state/*/{apply,plan}, silo/*, ci/tracker/* → 403; list 403; write 403
tracker's login is unchanged Same stand-in, tracker-shaped token ✅ 200, [ci-tracker, default]; reads its own path, 403 on cockpit's
The repo's floor make check; mise exec -- ansible-playbook … --syntax-check ✅ rc 0 both
The Proxmox mint is on the cluster as the page now says Read-only pvesh get /access/{users,acls,roles} and pveum user token permissions ✅ user infra-actions@pve, token deploy privsep 1 expire 0; TofuGuestInPlace = the seven privileges, no VM.Monitor; ACL rows /vms/143, /vms/145 propagate 0, /storage/synology, /sdn/zones propagate 1, on user and token; the permissions table reads exactly the page's "want" line
143's key is in place; 145 does not exist pct exec 143 -- grep -c sc14-cockpit-deploy /root/.ssh/authorized_keys; pct status 145 ✅ 1 match; nodes/burns/lxc/145.conf absent, as store-layout.md:215 says
The layout's arithmetic 54 + 7 = 61, two written and five not ✅ agrees with the tables

Standards

ADVISORY — scripts/env.sh:383-386: the comment still describes the pre-change store. It reads "The store holds tracker's today and cockpit's arrives with its deploy ticket, so a cockpit fetch refuses at login until then". At this head the store holds both roles (docs/store-identity.md:20), so the sentence is false the moment this lands. This PR updated the same claim in docs/env-fetch.md and left the code's copy. Clears with: reword those lines to the completed state, or drop the parenthetical.

ADVISORY — the branch is one commit behind main, and ADR-0002 says a change behind main cannot merge. merge-base is f4c07aa; main is at e6e11ad (docs: the tracker names its SC identifier…). The delta is AGENTS.md and docs/agents/issue-tracker.md, no overlap with this PR, and git merge-tree is clean. Clears with: merge main in before the merge.

Spec

No gap against SC-14's four acceptance criteria. Two deliberate departures from the ticket's literal text are both narrowing and both argued in the body and in bao/policies/ci-cockpit.hcl: named paths instead of secret/services/semaphore/* (ADR-0007 forbids a prefix with an exception, and the runner's root key sits under that prefix), and the state keys named …/deploy because the ticket names no path.

ADVISORY — docs/env-fetch.md:84-86: the same stale claim, in a file this PR edited. "cockpit's reaches the live store on the next make service, and until then a cockpit fetch refuses at login" now contradicts this PR's own docs/store-identity.md:20-23, which reports the role written on 2026-11-04. A reader following env-fetch.md will believe the fetch cannot log in. Clears with: one sentence naming the role as present, as store-identity now does. The sentence also wants its noun back — "cockpit's reaches".

ADVISORY — the PR description still describes the pre-e7c1ea6 state. It says "Applying it to the live store, running pveum, and minting the values are the Operator's", lists proxmox-credentials.md as "written for the Operator and not run", and closes "Not verified: the live store, the cluster … and the localnetwork/vmbr1 zone path". e7c1ea6 says the opposite in three places: the policy and role were written on the live store by hand (store-identity.md:20), the mint's commands "are the ones that ran" (proxmox-credentials.md:100), and the zone path is gone. Merge Danger → "The next make service writes the policy and the role" is now false — the store already holds them, so that run writes neither. The blast-radius paragraph still holds. Clears with: re-state the Evidence and Merge Danger sections against e7c1ea6 — what has already happened, and what the next make service does now.

Checked, no finding

  • bao/service/roles/openbao/tasks/store.yml:262-320 — per-role read-back, the openbao_jwt_role_writes accumulator and the write loop are the AppRole shape applied to a list; an empty list is a skip, not a change. Convergence and check mode both reproduced.
  • bao/policies/ci-cockpit.hcl — nine secret/data/ paths, read only; matches docs/store-identity.md:142's "nine named paths" and the identities row.
  • docs/store-layout.md:82-83 — that ADR-0006's Update when "names exactly this run" is true: its second trigger is "a run appears that needs a third shape". The deploy keys stay declared and unminted, and the record stays Proposed.
  • docs/store-layout.md:309 — "61 paths", two written, five not: the tables agree.
  • The SDN row: the dispatch-named head (7809f3b) granted TofuSdnUse on /sdn/zones/localnetwork/vmbr1, a zone this cluster does not have (pvesh get /cluster/sdn/zones → []; no /etc/pve/sdn/zones.cfg; 143's Stack uses a plain bridge, infra-cockpit/semaphore/guest/variables.tf:35). e7c1ea6 replaces it with /sdn/zones, which is what the four sibling tokens carry and what the cluster now holds. Resolved in the head I reviewed; not charged.

Not verified

  • The live store. I hold no store credential. That the role and policy were written by hand, that the policy reads back byte-identical to bao/policies/ci-cockpit.hcl, and that secret/ci/cockpit/deploy-ssh holds a field named CI_SSH_KEY are the author's claims. The cluster half of the same commit I did verify.
  • The consumer side. infra-cockpit carries no env.map and no workflow at its current commit, so the actor and field names this PR relies on have nothing to agree with yet.
  • The five unwritten paths — three Semaphore secrets and the two deploy state keys — are declared, not minted, as the pages say.

Summary. Standards: 2 findings, worst ADVISORY (the stale comment; the branch one commit behind main). Spec: 2 findings, worst ADVISORY (the stale sentence in env-fetch.md; the description written for a head that no longer exists). Nothing blocks: no defect in the code, the policy or the runbook survives at e7c1ea6, and every claim this PR's body makes that I could reach reproduced. The fix above is the volume rule — four advisories, all one small commit — not a defect.

<!-- minos review-loop: repo=olympus/infra-secrets pr=24 head=e7c1ea64745c8b265de02d26755de1afff372142 round=1/5 axes=standards,spec --> **olympus/infra-secrets · PR #24 · head `e7c1ea6` · round 1/5** Dispatch named `7809f3b`; the head moved to `e7c1ea6` while I was reading it. The delta (`git diff 7809f3b e7c1ea6`) is docs only — `bao/` and `scripts/` are byte-identical — and every finding below is re-derived against `e7c1ea6`. Recommendation: fix No BLOCKER on either axis. Four ADVISORY findings; the recommendation turns on their count, not on their weight (see the close). ### What I verified | Claim | How | Result | | --- | --- | --- | | The role becomes a list; `tracker` is untouched | Throwaway OpenBao 2.7.1 dev store built by *main*'s role, then head's `tasks/store.yml` driven directly: check, real, real again, check | ✅ check mode on the base-built store named exactly two writes — `policy ci-cockpit`, `jwt/role/cockpit`; the real run wrote them; the next run `changed=0`; check mode afterwards reported nothing to write | | Both roles carry their TTLs, audience and claims | `bao read auth/jwt/role/{tracker,cockpit}` on that store | ✅ `ci-tracker` / `ci-cockpit`, `[openbao]`, ttl 600 · max 1200, claims `repository`/`ref`/`event_name` as specified | | A push to main gets a token; a pull-request run does not | Local OIDC stand-in (discovery + JWKS), forged Forgejo-shaped RS256 tokens against `POST /v1/auth/jwt/login` | ✅ cockpit/push-main → 200, ttl 600, policies `[ci-cockpit, default]`; `pull_request`, `pull_request_target`, `refs/heads/feature`, another repository, wrong audience, unknown role → 400 | | `ci-cockpit` reads its nine paths and nothing else | That login's token against seeded KV paths | ✅ nine named paths 200; `services/semaphore/{deploy-ssh,webhook,config-extra}`, `homelab/proxmox/runner-token`, `tofu-state/*/{apply,plan}`, `silo/*`, `ci/tracker/*` → 403; list 403; write 403 | | `tracker`'s login is unchanged | Same stand-in, tracker-shaped token | ✅ 200, `[ci-tracker, default]`; reads its own path, 403 on cockpit's | | The repo's floor | `make check`; `mise exec -- ansible-playbook … --syntax-check` | ✅ rc 0 both | | The Proxmox mint is on the cluster as the page now says | Read-only `pvesh get /access/{users,acls,roles}` and `pveum user token permissions` | ✅ user `infra-actions@pve`, token `deploy` privsep 1 expire 0; `TofuGuestInPlace` = the seven privileges, no `VM.Monitor`; ACL rows `/vms/143`, `/vms/145` propagate 0, `/storage/synology`, `/sdn/zones` propagate 1, on user **and** token; the permissions table reads exactly the page's "want" line | | 143's key is in place; 145 does not exist | `pct exec 143 -- grep -c sc14-cockpit-deploy /root/.ssh/authorized_keys`; `pct status 145` | ✅ 1 match; `nodes/burns/lxc/145.conf` absent, as `store-layout.md:215` says | | The layout's arithmetic | 54 + 7 = 61, two written and five not | ✅ agrees with the tables | ### Standards **ADVISORY — `scripts/env.sh:383-386`: the comment still describes the pre-change store.** It reads "The store holds `tracker`'s today and `cockpit`'s arrives with its deploy ticket, so a `cockpit` fetch refuses at `login` until then". At this head the store holds both roles (`docs/store-identity.md:20`), so the sentence is false the moment this lands. This PR updated the same claim in `docs/env-fetch.md` and left the code's copy. *Clears with:* reword those lines to the completed state, or drop the parenthetical. **ADVISORY — the branch is one commit behind `main`, and ADR-0002 says a change behind `main` cannot merge.** `merge-base` is `f4c07aa`; `main` is at `e6e11ad` (`docs: the tracker names its SC identifier…`). The delta is `AGENTS.md` and `docs/agents/issue-tracker.md`, no overlap with this PR, and `git merge-tree` is clean. *Clears with:* merge `main` in before the merge. ### Spec No gap against SC-14's four acceptance criteria. Two deliberate departures from the ticket's literal text are both narrowing and both argued in the body and in `bao/policies/ci-cockpit.hcl`: named paths instead of `secret/services/semaphore/*` (ADR-0007 forbids a prefix with an exception, and the runner's root key sits under that prefix), and the state keys named `…/deploy` because the ticket names no path. **ADVISORY — `docs/env-fetch.md:84-86`: the same stale claim, in a file this PR edited.** "`cockpit`'s reaches the live store on the next `make service`, and until then a `cockpit` fetch refuses at `login`" now contradicts this PR's own `docs/store-identity.md:20-23`, which reports the role written on 2026-11-04. A reader following env-fetch.md will believe the fetch cannot log in. *Clears with:* one sentence naming the role as present, as store-identity now does. The sentence also wants its noun back — "`cockpit`'s reaches". **ADVISORY — the PR description still describes the pre-`e7c1ea6` state.** It says "Applying it to the live store, running `pveum`, and minting the values are the Operator's", lists `proxmox-credentials.md` as "written for the Operator and not run", and closes "Not verified: the live store, the cluster … and the `localnetwork/vmbr1` zone path". `e7c1ea6` says the opposite in three places: the policy and role were written on the live store by hand (`store-identity.md:20`), the mint's commands "are the ones that ran" (`proxmox-credentials.md:100`), and the zone path is gone. **Merge Danger → "The next `make service` writes the policy and the role" is now false** — the store already holds them, so that run writes neither. The blast-radius paragraph still holds. *Clears with:* re-state the Evidence and Merge Danger sections against `e7c1ea6` — what has already happened, and what the next `make service` does now. ### Checked, no finding - `bao/service/roles/openbao/tasks/store.yml:262-320` — per-role read-back, the `openbao_jwt_role_writes` accumulator and the write loop are the AppRole shape applied to a list; an empty list is a skip, not a change. Convergence and check mode both reproduced. - `bao/policies/ci-cockpit.hcl` — nine `secret/data/` paths, `read` only; matches `docs/store-identity.md:142`'s "nine named paths" and the identities row. - `docs/store-layout.md:82-83` — that ADR-0006's *Update when* "names exactly this run" is true: its second trigger is "a run appears that needs a third shape". The `deploy` keys stay declared and unminted, and the record stays Proposed. - `docs/store-layout.md:309` — "61 paths", two written, five not: the tables agree. - The SDN row: the dispatch-named head (`7809f3b`) granted `TofuSdnUse` on `/sdn/zones/localnetwork/vmbr1`, a zone this cluster does not have (`pvesh get /cluster/sdn/zones` → `[]`; no `/etc/pve/sdn/zones.cfg`; 143's Stack uses a plain bridge, `infra-cockpit/semaphore/guest/variables.tf:35`). `e7c1ea6` replaces it with `/sdn/zones`, which is what the four sibling tokens carry and what the cluster now holds. Resolved in the head I reviewed; not charged. ### Not verified - **The live store.** I hold no store credential. That the role and policy were written by hand, that the policy reads back byte-identical to `bao/policies/ci-cockpit.hcl`, and that `secret/ci/cockpit/deploy-ssh` holds a field named `CI_SSH_KEY` are the author's claims. The cluster half of the same commit I did verify. - **The consumer side.** `infra-cockpit` carries no `env.map` and no workflow at its current commit, so the actor and field names this PR relies on have nothing to agree with yet. - **The five unwritten paths** — three Semaphore secrets and the two `deploy` state keys — are declared, not minted, as the pages say. **Summary.** Standards: 2 findings, worst ADVISORY (the stale comment; the branch one commit behind `main`). Spec: 2 findings, worst ADVISORY (the stale sentence in `env-fetch.md`; the description written for a head that no longer exists). Nothing blocks: no defect in the code, the policy or the runbook survives at `e7c1ea6`, and every claim this PR's body makes that I could reach reproduced. The `fix` above is the volume rule — four advisories, all one small commit — not a defect.
Member

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

**Acknowledged** (round 1/5) — fixing now; what changed and how I verified it follows.
The fetch's own comment and the page that documents it still described the
store before SC-14 landed: "the store holds tracker's today and cockpit's
arrives with its deploy ticket", and a table cell offering a cockpit fetch
"once make service has written its role". The role and its policy were written
on the live store on 2026-11-04, which store-identity.md records, and
proxmox-credentials.md says its commands are the ones that ran.

So the three sites state the completed fact. The comment also forced a repin of
scripts/env.sh, whose second line is the SHA-256 of its own body: the new value
is the one env-check's FAIL line printed, and docs/env-fetch.md quotes the pin
twice, so both samples move with it.
The branch was cut before e6e11ad (the tracker's SC identifier), and ADR-0002
says a change one commit behind main cannot merge. The delta is AGENTS.md and
docs/agents/issue-tracker.md, no overlap with this branch, and the merge is
clean.
docs: the fetch's comment names both roles without a date (SC-14)
All checks were successful
pr-checks / check (pull_request) Successful in 17s
011d7f3bf6
scripts/env.sh is vendored verbatim into four repositories, so a date inside it
travels where it is not the record; the page keeps the date and the comment
keeps the fact. The body changed, so the pin moved again — the value is the one
env-check printed, and the page's two pin samples move with it.
Member

Round 1 fix — all four advisories cleared. Nothing to disagree with; no finding left alone.

No BLOCKER was raised, and the recommendation was fix, so all four ADVISORY findings are addressed. Head is 011d7f3.

# Axis Finding Commit What changed
1 Standards scripts/env.sh:383-386 described the pre-change store 3c3a58a, 011d7f3 the comment now says both CI roles are in the store, named from openbao_jwt_roles; the body hash moved, so the pin did too
2 Standards the branch was one commit behind main (ADR-0002) 396e316 origin/main merged in (AGENTS.md, docs/agents/issue-tracker.md; no overlap, clean)
3 Spec docs/env-fetch.md:84-86 repeated the same stale claim, with its noun missing 3c3a58a the paragraph says both roles are in the live store, written on 2026-11-04, and points at store-identity.md
4 Spec the PR body described pre-e7c1ea6 state, and Merge Danger was false body edit Evidence and Merge Danger re-stated against what the store and the cluster now hold

1 and 3 — one fact with three sites, and a fourth the finding did not name. Beyond the two lines quoted, the same pre-change claim was the cockpit row of the actor table in env-fetch.md (yes, once make service has written its role). The census: grep -rn "arrives with\|until then\|deploy ticket\|has written its role" --include='*.md' --include='*.yml' --include='*.sh' now returns only bao/recipients/README.md:27-28, which is about the Semaphore runner's seed and is still true.

The env.sh edit forced a repin, since its second line is the SHA-256 of its own body — the value is the one env-check's FAIL line printed, and docs/env-fetch.md quotes the pin twice, so both samples moved with it. 011d7f3 drops a date I had first put in the script comment: env.sh is vendored verbatim into four repositories, so the date belongs on the page, which keeps it.

2 — the merge. merge-base was f4c07aa; main is e6e11ad. The merge is 396e316, --no-ff, and git merge-tree --write-tree was clean before it was made.

4 — the body. Evidence now reports what has already happened, and Merge Danger says the next make service writes neither the policy nor the role. The read-back below is what makes that true rather than asserted.

Verified

Command Output
./scripts/env.sh check ok scripts/env.sh matches infra-secrets@5dacf361… · ok env.map: 2 names, all declared in .env.example · rc 0
mise exec -- make check env fetch: every case passed. · rc 0
mise exec -- make validate Success! The configuration is valid. · rc 0
mise exec -- tofu fmt -check -recursive -diff no output · rc 0
mise exec -- ansible-playbook -i inventories/prod/hosts --syntax-check site.yml (in bao/service) playbook: site.yml · rc 0, with the pre-existing Found both group and host with same name: bao

Your Not verified: the live store can be closed for the parts this PR asserts. Read-only, on burns (pct exec 144, root token into a variable, metadata and hashes only — no values printed):

policy ci-cockpit: present, sha256 fc0de6d2e566bc3089e87f9159a9fa9300328a0ab832f763cd809d2f70c80b03, 61 lines
role tracker: {"ttl":600,"max":1200,"policies":["ci-tracker"],"bound_claims":{"event_name":"push","ref":"refs/heads/main","repository":"olympus/infra-tracker"}}
role cockpit: {"ttl":600,"max":1200,"policies":["ci-cockpit"],"bound_claims":{"event_name":"push","ref":"refs/heads/main","repository":"olympus/infra-cockpit"}}
policy list matching ci-: ci-cockpit ci-tracker

and sha256sum bao/policies/ci-cockpit.hcl is the same fc0de6d2…, so the store's text is the file's. pvesh get /access/users/infra-actions@pve/token reads {"tokenid":"deploy","privsep":1,"expire":0,"comment":"SC-14: cockpit deploy of 143 and 145"}.

The served page was checked, not the local one: docs/env-fetch.md read at 011d7f3 over /api/v1/repos/…/raw, rendered through POST /api/v1/markdown, then unescaped and whitespace-collapsed — the new sentences present, the three old ones absent, one table with a constant 5 cells per row, and the store-identity.md link resolving 200 at /src/commit/011d7f3/docs/store-identity.md.

Left alone, on purpose

  • c96b18d6… in the FAIL sample of env-fetch.md stays. It is the illustrative wrong value in that sample, not a pin the repo carries; only the the body hashes to half is real.
  • The four sibling copies of env.sh still carry the old pin. A repin here is a new pin there, taken in each repository's own change and never edited by hand — out of this PR's blast radius.
  • Still not verified: the consumer side (infra-cockpit has no env.map and no workflow at its commit), the five declared-but-unminted paths, and a real cockpit login, which no run has made yet.
**Round 1 fix — all four advisories cleared. Nothing to disagree with; no finding left alone.** No BLOCKER was raised, and the recommendation was `fix`, so all four ADVISORY findings are addressed. Head is `011d7f3`. | # | Axis | Finding | Commit | What changed | | --- | --- | --- | --- | --- | | 1 | Standards | `scripts/env.sh:383-386` described the pre-change store | `3c3a58a`, `011d7f3` | the comment now says both CI roles are in the store, named from `openbao_jwt_roles`; the body hash moved, so the pin did too | | 2 | Standards | the branch was one commit behind `main` (ADR-0002) | `396e316` | `origin/main` merged in (`AGENTS.md`, `docs/agents/issue-tracker.md`; no overlap, clean) | | 3 | Spec | `docs/env-fetch.md:84-86` repeated the same stale claim, with its noun missing | `3c3a58a` | the paragraph says both roles are in the live store, written on 2026-11-04, and points at `store-identity.md` | | 4 | Spec | the PR body described pre-`e7c1ea6` state, and *Merge Danger* was false | body edit | *Evidence* and *Merge Danger* re-stated against what the store and the cluster now hold | **1 and 3 — one fact with three sites, and a fourth the finding did not name.** Beyond the two lines quoted, the same pre-change claim was the `cockpit` row of the actor table in `env-fetch.md` (`yes, once make service has written its role`). The census: `grep -rn "arrives with\|until then\|deploy ticket\|has written its role" --include='*.md' --include='*.yml' --include='*.sh'` now returns only `bao/recipients/README.md:27-28`, which is about the Semaphore runner's seed and is still true. The `env.sh` edit forced a repin, since its second line is the SHA-256 of its own body — the value is the one `env-check`'s FAIL line printed, and `docs/env-fetch.md` quotes the pin twice, so both samples moved with it. `011d7f3` drops a date I had first put in the script comment: `env.sh` is vendored verbatim into four repositories, so the date belongs on the page, which keeps it. **2 — the merge.** `merge-base` was `f4c07aa`; `main` is `e6e11ad`. The merge is `396e316`, `--no-ff`, and `git merge-tree --write-tree` was clean before it was made. **4 — the body.** *Evidence* now reports what has already happened, and *Merge Danger* says the next `make service` writes neither the policy nor the role. The read-back below is what makes that true rather than asserted. ## Verified | Command | Output | | --- | --- | | `./scripts/env.sh check` | `ok scripts/env.sh matches infra-secrets@5dacf361…` · `ok env.map: 2 names, all declared in .env.example` · rc 0 | | `mise exec -- make check` | `env fetch: every case passed.` · rc 0 | | `mise exec -- make validate` | `Success! The configuration is valid.` · rc 0 | | `mise exec -- tofu fmt -check -recursive -diff` | no output · rc 0 | | `mise exec -- ansible-playbook -i inventories/prod/hosts --syntax-check site.yml` (in `bao/service`) | `playbook: site.yml` · rc 0, with the pre-existing `Found both group and host with same name: bao` | Your **Not verified: the live store** can be closed for the parts this PR asserts. Read-only, on `burns` (`pct exec 144`, root token into a variable, metadata and hashes only — no values printed): ```text policy ci-cockpit: present, sha256 fc0de6d2e566bc3089e87f9159a9fa9300328a0ab832f763cd809d2f70c80b03, 61 lines role tracker: {"ttl":600,"max":1200,"policies":["ci-tracker"],"bound_claims":{"event_name":"push","ref":"refs/heads/main","repository":"olympus/infra-tracker"}} role cockpit: {"ttl":600,"max":1200,"policies":["ci-cockpit"],"bound_claims":{"event_name":"push","ref":"refs/heads/main","repository":"olympus/infra-cockpit"}} policy list matching ci-: ci-cockpit ci-tracker ``` and `sha256sum bao/policies/ci-cockpit.hcl` is the same `fc0de6d2…`, so the store's text is the file's. `pvesh get /access/users/infra-actions@pve/token` reads `{"tokenid":"deploy","privsep":1,"expire":0,"comment":"SC-14: cockpit deploy of 143 and 145"}`. The served page was checked, not the local one: `docs/env-fetch.md` read at `011d7f3` over `/api/v1/repos/…/raw`, rendered through `POST /api/v1/markdown`, then unescaped and whitespace-collapsed — the new sentences present, the three old ones absent, one table with a constant 5 cells per row, and the `store-identity.md` link resolving `200` at `/src/commit/011d7f3/docs/store-identity.md`. ## Left alone, on purpose - **`c96b18d6…` in the FAIL sample** of `env-fetch.md` stays. It is the illustrative wrong value in that sample, not a pin the repo carries; only the `the body hashes to` half is real. - **The four sibling copies of `env.sh`** still carry the old pin. A repin here is a new pin there, taken in each repository's own change and never edited by hand — out of this PR's blast radius. - **Still not verified:** the consumer side (`infra-cockpit` has no `env.map` and no workflow at its commit), the five declared-but-unminted paths, and a real `cockpit` login, which no run has made yet.
Member

Review started (round 2/5) on 011d7f3bf6 — reading the diff now.

**Review started** (round 2/5) on 011d7f3bf66f5bd03787c6849d4431527a54f9fb — reading the diff now.
bot-minos approved these changes 2026-11-04 17:18:06 +00:00
Dismissed
bot-minos left a comment

olympus/infra-secrets · PR #24 · head 011d7f3 · round 2/5

Recommendation: merge

No BLOCKER. Round 1 raised none either — four advisories, and a fix that turned on their count. All four are closed at this head. The delta since e7c1ea6 is docs/env-fetch.md, scripts/env.sh (a comment and the pin), and the main merge; bao/ is byte-identical to the head round 1 executed, so I re-derived its behaviour here rather than inheriting that run.

Round-1 advisories — verified closed

# Axis Cleared by Evidence
1 Standards 3c3a58a, 011d7f3 scripts/env.sh:383-386 now reads "Both roles the store holds are named that way — tracker and cockpit, from openbao_jwt_roles". The sentence it replaced no longer exists anywhere: grep -rn "arrives with|until then|deploy ticket|has written its role" over *.md *.yml *.sh returns only bao/recipients/README.md:27-28, which is the runner's unseeded seed and still true.
2 Standards 396e316 git merge-base --is-ancestor e6e11ad 011d7f3 → true, so ADR-0002's clause holds. The merge also moved the diff base: the PR no longer carries AGENTS.md and docs/agents/issue-tracker.md, which are main's.
3 Spec 3c3a58a, 011d7f3 docs/env-fetch.md:84-88 now says both roles are in the live store, dated 2026-11-04, and links store-identity.md. The actor table's cockpit row (:70) reads yes, and the missing noun ("cockpit's reaches") is back.
4 Spec body edit Evidence reports what has already happened; Merge Danger is now two-way and says the next make service writes neither the policy nor the role. That matches the convergence I reproduced below.

What I verified at 011d7f3

Claim How Result
The repin is correct, not a guess sed 's/^# vendored from infra-secrets@.*$/# vendored from infra-secrets@/' scripts/env.sh | sha256sum ✅ 5dacf361…, identical to the recorded pin. The old body hashes to c0a26f15…, the value the old samples carried, so both revisions of the doc are right for their own body.
The repo's floor mise exec -- make check ✅ rc 0 — ok scripts/env.sh matches infra-secrets@5dacf361…, env.map: 2 names, env fetch: every case passed.
Formatting and the playbook still parse tofu fmt -check -recursive -diff; ansible-playbook --syntax-check site.yml in bao/service ✅ rc 0 both (the Found both group and host with same name: bao warning is pre-existing)
CI is green at this head GET /commits/011d7f3/statuses ✅ pr-checks / check (pull_request) → success
Both roles are written to a fresh store Throwaway OpenBao 2.7.1 dev store; the role's own tasks/store.yml §7e extracted verbatim and driven as a play ✅ WRITES=['tracker','cockpit']
A second run writes nothing Same play, second run ✅ changed=0, PENDING=[] — so the body's "the next make service writes neither" is the behaviour, not just a claim
Check mode reports nothing to write Same play, --check ✅ changed=0, four writes skipped
One edited role rewrites one role Forced tracker's token_ttl to 777 via the API, re-ran ✅ WRITES=['tracker'], changed=1; cockpit's .data digest identical before and after (29fa5300… both sides)
The binding is what the ticket asked for RS256 tokens forged against a static key: cockpit login on push/refs/heads/main for its own repo ✅ 200, policies [ci-cockpit, default]. pull_request, refs/heads/feature, olympus/infra-tracker asking for the cockpit role, and a wrong audience each → 400 with the failing claim named
tracker's login is untouched Same forge, tracker-shaped token ✅ 200, [ci-tracker, default]; reads its own path, 403 on cockpit's
ci-cockpit reads its nine paths and nothing else The logged-in token against 16 seeded paths ✅ nine named paths 200; services/semaphore/{deploy-ssh,webhook}, tofu-state/*/{apply,plan}, ci/tracker/*, homelab/proxmox/*, silo/* → 403; list 403; a write 403
The policy file is what the body says the store holds sha256sum bao/policies/ci-cockpit.hcl ✅ fc0de6d2e566bc30… — the same digest the body quotes for the store's read-back — 61 lines

Standards

Repo conventions: AGENTS.md §Checks (the floor is make check, run by pr-checks) and §Decisions (the workshop ADRs are read first). No CONTRIBUTING.md or coding-standards file exists.

Findings: none. Specifically:

  • ADR-0002's clause is satisfied by 396e316.
  • ADR-0007 ("a readable set is stated only as whole grants … a grant never carries an exception") is exactly what bao/policies/ci-cockpit.hcl implements by naming the nine paths instead of taking the secret/services/semaphore/* prefix; the file says so at :10-16.
  • ADR-0006's "two shapes and no third" is why the two deploy state keys stay declared and unminted, and docs/store-layout.md:79-93 states that conflict rather than papering over it.
  • Smell baseline: the per-role read-back → compare → write block (store.yml:262-316) is the AppRole block's shape applied to a list, which is this repository's own idiom, so the duplicated-shape heuristic is suppressed as the repo overrides it.

Spec

SC-14 is linked (vikunja…/tasks/265), but the tracker answers 401 to me — I hold no Vikunja credential. I judged against the PR description's restatement plus the ADRs the repo defers to; that limitation is recorded below rather than papered over.

Findings: none. Every claim in the body that I could reach reproduced. The two departures from the ticket's literal text — named paths instead of a prefix, and the state keys at …/deploy — are both narrowing, both argued in the body and in the policy comment, and both consistent with ADRs 0007 and 0006.

Not verified

  • The live store. I hold no store credential. That the policy and role were written by hand, that the policy reads back byte-identical, and that secret/ci/cockpit/deploy-ssh holds CI_SSH_KEY remain the author's claims — though the file's digest matching the quoted read-back is consistent with them.
  • The ticket text. 401 without a tracker token.
  • The consumer side. infra-cockpit carries no env.map row and no workflow at its current commit, so the actor and field names have nothing to agree with yet.
  • The five declared-but-unminted paths — three Semaphore secrets and the two deploy state keys — are declarations, and the pages say so.

Summary. Standards: 0 findings. Spec: 0 findings. No worst finding on either axis, because there is none. The change adds a CI identity that is bound to one repository, one branch and one event, reads nine named paths read-only, and holds a hypervisor token that is confined to two Guests — and all of that reproduced by hand at this head.

<!-- minos review-loop: repo=olympus/infra-secrets pr=24 head=011d7f3bf66f5bd03787c6849d4431527a54f9fb round=2/5 axes=standards,spec --> **olympus/infra-secrets · PR #24 · head `011d7f3` · round 2/5** Recommendation: merge No BLOCKER. Round 1 raised none either — four advisories, and a `fix` that turned on their count. All four are closed at this head. The delta since `e7c1ea6` is `docs/env-fetch.md`, `scripts/env.sh` (a comment and the pin), and the `main` merge; `bao/` is byte-identical to the head round 1 executed, so I re-derived its behaviour here rather than inheriting that run. ### Round-1 advisories — verified closed | # | Axis | Cleared by | Evidence | | --- | --- | --- | --- | | 1 | Standards | `3c3a58a`, `011d7f3` | `scripts/env.sh:383-386` now reads "Both roles the store holds are named that way — `tracker` and `cockpit`, from `openbao_jwt_roles`". The sentence it replaced no longer exists anywhere: `grep -rn "arrives with\|until then\|deploy ticket\|has written its role"` over `*.md` `*.yml` `*.sh` returns only `bao/recipients/README.md:27-28`, which is the runner's unseeded seed and still true. | | 2 | Standards | `396e316` | `git merge-base --is-ancestor e6e11ad 011d7f3` → true, so ADR-0002's clause holds. The merge also moved the diff base: the PR no longer carries `AGENTS.md` and `docs/agents/issue-tracker.md`, which are `main`'s. | | 3 | Spec | `3c3a58a`, `011d7f3` | `docs/env-fetch.md:84-88` now says both roles are in the live store, dated 2026-11-04, and links `store-identity.md`. The actor table's `cockpit` row (`:70`) reads `yes`, and the missing noun ("`cockpit`'s reaches") is back. | | 4 | Spec | body edit | *Evidence* reports what has already happened; *Merge Danger* is now two-way and says the next `make service` writes neither the policy nor the role. That matches the convergence I reproduced below. | ### What I verified at `011d7f3` | Claim | How | Result | | --- | --- | --- | | The repin is correct, not a guess | `sed 's/^# vendored from infra-secrets@.*$/# vendored from infra-secrets@/' scripts/env.sh \| sha256sum` | ✅ `5dacf361…`, identical to the recorded pin. The old body hashes to `c0a26f15…`, the value the old samples carried, so both revisions of the doc are right for their own body. | | The repo's floor | `mise exec -- make check` | ✅ rc 0 — `ok scripts/env.sh matches infra-secrets@5dacf361…`, `env.map: 2 names`, `env fetch: every case passed.` | | Formatting and the playbook still parse | `tofu fmt -check -recursive -diff`; `ansible-playbook --syntax-check site.yml` in `bao/service` | ✅ rc 0 both (the `Found both group and host with same name: bao` warning is pre-existing) | | CI is green at this head | `GET /commits/011d7f3/statuses` | ✅ `pr-checks / check (pull_request)` → success | | Both roles are written to a fresh store | Throwaway OpenBao 2.7.1 dev store; the role's own `tasks/store.yml` §7e extracted **verbatim** and driven as a play | ✅ `WRITES=['tracker','cockpit']` | | A second run writes nothing | Same play, second run | ✅ `changed=0`, `PENDING=[]` — so the body's "the next `make service` writes neither" is the behaviour, not just a claim | | Check mode reports nothing to write | Same play, `--check` | ✅ `changed=0`, four writes skipped | | One edited role rewrites one role | Forced `tracker`'s `token_ttl` to 777 via the API, re-ran | ✅ `WRITES=['tracker']`, `changed=1`; `cockpit`'s `.data` digest identical before and after (`29fa5300…` both sides) | | The binding is what the ticket asked for | RS256 tokens forged against a static key: `cockpit` login on `push`/`refs/heads/main` for its own repo | ✅ 200, policies `[ci-cockpit, default]`. `pull_request`, `refs/heads/feature`, `olympus/infra-tracker` asking for the `cockpit` role, and a wrong audience each → 400 with the failing claim named | | `tracker`'s login is untouched | Same forge, tracker-shaped token | ✅ 200, `[ci-tracker, default]`; reads its own path, 403 on `cockpit`'s | | `ci-cockpit` reads its nine paths and nothing else | The logged-in token against 16 seeded paths | ✅ nine named paths 200; `services/semaphore/{deploy-ssh,webhook}`, `tofu-state/*/{apply,plan}`, `ci/tracker/*`, `homelab/proxmox/*`, `silo/*` → 403; `list` 403; a write 403 | | The policy file is what the body says the store holds | `sha256sum bao/policies/ci-cockpit.hcl` | ✅ `fc0de6d2e566bc30…` — the same digest the body quotes for the store's read-back — 61 lines | ### Standards Repo conventions: `AGENTS.md` §Checks (the floor is `make check`, run by `pr-checks`) and §Decisions (the `workshop` ADRs are read first). No `CONTRIBUTING.md` or coding-standards file exists. **Findings: none.** Specifically: - ADR-0002's clause is satisfied by `396e316`. - ADR-0007 ("a readable set is stated only as whole grants … a grant never carries an exception") is exactly what `bao/policies/ci-cockpit.hcl` implements by naming the nine paths instead of taking the `secret/services/semaphore/*` prefix; the file says so at `:10-16`. - ADR-0006's "two shapes and no third" is why the two `deploy` state keys stay declared and unminted, and `docs/store-layout.md:79-93` states that conflict rather than papering over it. - Smell baseline: the per-role read-back → compare → write block (`store.yml:262-316`) is the AppRole block's shape applied to a list, which is this repository's own idiom, so the duplicated-shape heuristic is suppressed as the repo overrides it. ### Spec SC-14 is linked (`vikunja…/tasks/265`), but **the tracker answers 401 to me** — I hold no Vikunja credential. I judged against the PR description's restatement plus the ADRs the repo defers to; that limitation is recorded below rather than papered over. **Findings: none.** Every claim in the body that I could reach reproduced. The two departures from the ticket's literal text — named paths instead of a prefix, and the state keys at `…/deploy` — are both narrowing, both argued in the body and in the policy comment, and both consistent with ADRs 0007 and 0006. ### Not verified - **The live store.** I hold no store credential. That the policy and role were written by hand, that the policy reads back byte-identical, and that `secret/ci/cockpit/deploy-ssh` holds `CI_SSH_KEY` remain the author's claims — though the file's digest matching the quoted read-back is consistent with them. - **The ticket text.** 401 without a tracker token. - **The consumer side.** `infra-cockpit` carries no `env.map` row and no workflow at its current commit, so the actor and field names have nothing to agree with yet. - **The five declared-but-unminted paths** — three Semaphore secrets and the two `deploy` state keys — are declarations, and the pages say so. **Summary.** Standards: 0 findings. Spec: 0 findings. No worst finding on either axis, because there is none. The change adds a CI identity that is bound to one repository, one branch and one event, reads nine named paths read-only, and holds a hypervisor token that is confined to two Guests — and all of that reproduced by hand at this head.
docs: the semaphore record's deploy key is minted (SC-14)
All checks were successful
pr-checks / check (pull_request) Successful in 16s
ea12a3ed22
pit dismissed bot-minos's review 2026-11-04 17:26:13 +00:00
Reason:

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

Author
Owner

Item 1 done: the semaphore record's deploy state key exists, is declared in infra-silo, and is in the store.

New in infra-silo — olympus/infra-silo#16: silo/store/semaphore-deploy-state-policy.json, the apply file minus s3:DeleteObject on the .tfstate, plus the runbook 0003 §7 row and a paragraph naming the shape. make check passes there.

Minted, name tofu-deploy-state-semaphore, access key H7VWMI9GMPU7RKUY54XF, description "OpenTofu state backend (infra-cockpit, semaphore/guest deploy)". The pair went into secret/tofu-state/semaphore/deploy as AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY (version 1) and the read-back matched both by digest; the one-time answer was shredded after that, not before.

Proof:

make key-audit (infra-silo, against the running store)
ok  H7VWMI9GMPU7RKUY54XF  tofu-deploy-state-semaphore ← silo/store/semaphore-deploy-state-policy.json
key-audit: 17 key(s) under silo/, 16 audited, 1 out of scope, 0 failing

reach, with MC_HOST_probe holding the pair read from the store:
GET prod/semaphore.tfstate            allowed
GET prod/tracker-guest.tfstate        refused
GET prod/silo.tfstate                 refused
GET prod/openbao.tfstate              refused
PUT prod/semaphore.tfstate.tflock     allowed
DELETE prod/semaphore.tfstate.tflock  allowed

stored policy:
  Allow [GetBucketLocation, ListBucket]         -> tfstate
  Allow [GetObject, PutObject]                  -> prod/semaphore.tfstate
  Allow [DeleteObject, GetObject, PutObject]    -> prod/semaphore.tfstate.tflock

DeleteObject on the record is proven by that stored policy and by the same key being refused every other record; it was not attempted live, because the only way to test it is against the live record.

Two slips, both recovered: a pveum-style JSON parser mistake and then a shred ordered before a confirmed store write each destroyed a one-time secret, so two keys were minted and deleted before this one. The orphan check now runs before each mint, and key-audit reports 0 failing with 17 keys under silo/ — one more than before, which is this key.

Still open on this ticket: the runner record's deploy key (no runner/guest Stack, so no record and no policy file), the cockpit entity name (needs a first real login), secret/services/semaphore/{smtp,watchdog-token,runner-registration}, and infra-cockpit's env.map rows. This branch now records the mint at docs/store-layout.md.

Item 1 done: the semaphore record's `deploy` state key exists, is declared in infra-silo, and is in the store. **New in infra-silo** — [olympus/infra-silo#16](https://forgejo.thepit.space/olympus/infra-silo/pulls/16): `silo/store/semaphore-deploy-state-policy.json`, the apply file minus `s3:DeleteObject` on the `.tfstate`, plus the runbook 0003 §7 row and a paragraph naming the shape. `make check` passes there. **Minted**, name `tofu-deploy-state-semaphore`, access key `H7VWMI9GMPU7RKUY54XF`, description "OpenTofu state backend (infra-cockpit, semaphore/guest deploy)". The pair went into `secret/tofu-state/semaphore/deploy` as `AWS_ACCESS_KEY_ID` / `AWS_SECRET_ACCESS_KEY` (version 1) and the read-back matched both by digest; the one-time answer was shredded after that, not before. **Proof:** ```text make key-audit (infra-silo, against the running store) ok H7VWMI9GMPU7RKUY54XF tofu-deploy-state-semaphore ← silo/store/semaphore-deploy-state-policy.json key-audit: 17 key(s) under silo/, 16 audited, 1 out of scope, 0 failing reach, with MC_HOST_probe holding the pair read from the store: GET prod/semaphore.tfstate allowed GET prod/tracker-guest.tfstate refused GET prod/silo.tfstate refused GET prod/openbao.tfstate refused PUT prod/semaphore.tfstate.tflock allowed DELETE prod/semaphore.tfstate.tflock allowed stored policy: Allow [GetBucketLocation, ListBucket] -> tfstate Allow [GetObject, PutObject] -> prod/semaphore.tfstate Allow [DeleteObject, GetObject, PutObject] -> prod/semaphore.tfstate.tflock ``` `DeleteObject` on the record is proven by that stored policy and by the same key being refused every other record; it was not attempted live, because the only way to test it is against the live record. **Two slips, both recovered:** a `pveum`-style JSON parser mistake and then a shred ordered before a confirmed store write each destroyed a one-time secret, so two keys were minted and deleted before this one. The orphan check now runs before each mint, and `key-audit` reports 0 failing with 17 keys under `silo/` — one more than before, which is this key. **Still open on this ticket:** the runner record's `deploy` key (no `runner/guest` Stack, so no record and no policy file), the `cockpit` entity name (needs a first real login), `secret/services/semaphore/{smtp,watchdog-token,runner-registration}`, and infra-cockpit's `env.map` rows. This branch now records the mint at `docs/store-layout.md`.
Member

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

**Review started** (round 1/5) on ea12a3ed22a978db18845bcb197f3d283ff296b2 — reading the diff now.
bot-minos approved these changes 2026-11-04 17:32:01 +00:00
Dismissed
bot-minos left a comment

olympus/infra-secrets · PR #24 · head ea12a3e · round 1/5

Recommendation: fix

No BLOCKER. Three ADVISORY findings, all of them inside the one commit added since round 2's approval.

ea12a3e touches docs/store-layout.md and nothing else (git diff --name-only 011d7f3..ea12a3e), so bao/ and scripts/ are byte-identical to the head round 2 approved, and I re-derived their behaviour below rather than inheriting that run. The dispatch numbered this pass 1/5 and the timeline marker above matches it; the timeline also carries rounds 1 and 2 (e7c1ea6, then 011d7f3 APPROVED), so what follows reviews the whole change and concentrates on the delta.

What I verified at ea12a3e

Claim How Result
The vendored pin is the hash of env.sh's own body sed 's/^# vendored from infra-secrets@.*$/# …@/' scripts/env.sh | sha256sum ✅ 5dacf361…, identical to line 2 and to both samples in docs/env-fetch.md
The repo's floor make check; make validate; tofu fmt -check -recursive -diff; ansible-playbook --syntax-check site.yml in bao/service ✅ rc 0 each (Success! The configuration is valid., env fetch: every case passed., the pre-existing Found both group and host with same name: bao warning only)
CI is green at this head GET /repos/olympus/infra-secrets/commits/ea12a3e/statuses ✅ pr-checks / check (pull_request) → success (16s)
Both roles are written to a fresh store Throwaway OpenBao 2.7.1 dev store; the role's own tasks/store.yml §7e extracted verbatim and driven as a play ✅ WRITES=['tracker','cockpit'], both roles created
A second run writes nothing Same play, second run ✅ WRITES=[], changed=0
Check mode reports nothing to write Same play, --check ✅ changed=0, PENDING=[]
One edited role rewrites one role, and only that one Forced tracker's token_ttl to 777 through the API, re-ran ✅ WRITES=['tracker']; cockpit's .data digest identical before and after (29fa5300… both sides); tracker back at 600
The bindings are what the ticket asked for RS256 tokens forged against a static key: cockpit login on push / refs/heads/main for its own repo ✅ 200, policies [ci-cockpit, default], ttl 600. pull_request, pull_request_target, refs/heads/feature, wrong audience, and a role swap in both directions (tracker token asking for cockpit, cockpit token asking for tracker) each → 400 naming the failing claim
ci-cockpit reaches its nine paths and nothing else The policy uploaded to the dev store, 16 paths seeded, a token minted with it ✅ nine named paths 200; services/semaphore/{deploy-ssh,webhook}, tofu-state/{semaphore,semaphore-runner}/{apply,plan}, ci/tracker/*, silo/*, homelab/proxmox/* → 403; list secret/services/semaphore → 403; a write → 403
The new deploy key's policy is the apply policy minus s3:DeleteObject on the record Diffed infra-silo#16's silo/store/semaphore-deploy-state-policy.json against infra-silo main's semaphore-state-policy.json ✅ exactly that split: record [GetObject, PutObject], lock [GetObject, PutObject, DeleteObject]
The record that key guards is prod/semaphore.tfstate in the semaphore/guest Stack infra-cockpit/semaphore/guest/backend.tf:13 ✅
The policy file is the one the body quotes sha256sum bao/policies/ci-cockpit.hcl ✅ fc0de6d2e566bc30…, 61 lines

Standards

Repo conventions: AGENTS.md §Checks (the floor is make check, run by pr-checks) and §Decisions (the workshop ADRs are read first). No CONTRIBUTING.md or coding-standards file exists.

ADVISORY — docs/store-layout.md:93: "The Operator mints both and writes them here" now contradicts the table five lines above it. At this head :89 says the semaphore record's deploy key is "minted 2026-11-04 as tofu-deploy-state-semaphore", while :93 still reads "The policy each is minted from is not in this repository: state keys are declared in infra-silo's store half (SL-19). The Operator mints both and writes them here." One of the two is minted; the sentence says neither has been. Same commit, same page. Clears with: "The Operator mints the runner's and writes it here", or drop the sentence's second half.

ADVISORY — docs/store-layout.md:89: the policy the key was minted from has no landing page yet. The row names infra-silo:silo/store/semaphore-deploy-state-policy.json as the source. That file is not on infra-silo's main (git ls-tree -r --name-only origin/main lists only semaphore-plan-state-policy.json and semaphore-state-policy.json); it exists at f1113d4, the head of infra-silo#16, which is open and labelled review/needs-fix. A reader following the citation finds nothing, and if that PR's policy is amended in review, the live key keeps the shape it was minted with and only infra-silo's key-audit would notice. The file's content does match this page's description exactly, so nothing stated here is wrong — what is missing is where the file currently lives. No repo rule covers cross-repo citations, so this is judgement, not a written standard. Clears with: "…from infra-silo:silo/store/semaphore-deploy-state-policy.json (infra-silo#16, not yet merged)".

Spec

SC-14 is linked, but the tracker answers 401 to me, so this is judged against the PR description's restatement plus the ADRs the repo defers to. That limitation is recorded under Not verified.

No gap against the acceptance criteria as the body states them: a CI login bound to one repository, one branch and one event; nine named read-only paths, no prefix and no list; a Proxmox token confined to /vms/143 and /vms/145; the store's text recorded in the docs. All reproduced above.

ADVISORY — the PR body describes the state before its own last commit. It opens "What stays the Operator's is minting the three Semaphore secrets and the two deploy state keys, which remain declared and unminted", and its Not verified names "the five declared-but-unminted paths". At ea12a3e one of those two keys is minted (docs/store-layout.md:89; :309-311 reads "Three of the seven are written … and four are not"); the body's Evidence table carries no mint row. The description now under-reports its own branch in two places, which is the same class of staleness round 1 flagged and the author corrected then — this commit re-opened it in miniature. Clears with: one clause in each of the two sentences, or a line in Evidence recording the mint the way the store-layout row records it.

Checked, no finding

  • bao/policies/ci-cockpit.hcl — nine secret/data/ paths, read only, no prefix, no list; matches docs/store-identity.md:42's identities row and the file's own ADR-0007 note.
  • bao/service/roles/openbao/tasks/store.yml:262-316 — per-role read-back, the openbao_jwt_role_writes accumulator and the write loop are the AppRole block's shape applied to a list. Converges, is honest under --check, and is surgical when one role drifts. No stale singular reference survives anywhere in the tree: grep -rn 'openbao_jwt_role\b|openbao_jwt_policy\b|openbao_jwt_bound_claims|openbao_jwt_token_ttl' → 0 hits.
  • docs/store-layout.md:84 — "declared here" is still true of both paths; declared is not the same as minted, and the sentence no longer claims otherwise.
  • docs/store-layout.md:309-311 — 54 + 7 = 61; the tofu-state section's "fourteen paths" is 6 records × 2 shapes + 2 deploy; the 3-written / 4-not split agrees with the tables. Arithmetic closes.
  • docs/env-fetch.md, docs/store-identity.md, docs/proxmox-credentials.md — unchanged since the approved head, and consistent with the nine-path policy and the mint now recorded.
  • No secret material in the delta: the added lines carry no key/value pair, the mint's access-key id is public, and the secret half appears in no file or comment.

Not verified

  • The live store and the cluster. I hold no credential for either. That tofu-deploy-state-semaphore exists, that secret/tofu-state/semaphore/deploy holds its pair, that the KV path reads back as the page says, and that the Proxmox ACLs sit where proxmox-credentials.md puts them are the author's evidence in the PR comment — not mine. What I could reach, reproduced.
  • The ticket text. Vikunja answers 401 without a token.
  • The consumer side. infra-cockpit carries no cockpit row in env.max/env.map and no workflow at its head, so the actor and field names this PR relies on have nothing to agree with yet.

Summary. Standards: 2 findings, worst ADVISORY (the stale "mints both" sentence on the same page as the mint). Spec: 1 finding, worst ADVISORY (the description written for a head before the mint). No BLOCKER: the change does what it claims, converges, refuses what it says it refuses, and records a live mint accurately. The fix turns on the count — three advisories, all five lines of doc, clearable in one commit — not on the weight of any of them.

<!-- minos review-loop: repo=olympus/infra-secrets pr=24 head=ea12a3ed22a978db18845bcb197f3d283ff296b2 round=1/5 axes=standards,spec --> **olympus/infra-secrets · PR #24 · head `ea12a3e` · round 1/5** Recommendation: fix No BLOCKER. Three ADVISORY findings, all of them inside the one commit added since round 2's approval. `ea12a3e` touches `docs/store-layout.md` and nothing else (`git diff --name-only 011d7f3..ea12a3e`), so `bao/` and `scripts/` are byte-identical to the head round 2 approved, and I re-derived their behaviour below rather than inheriting that run. The dispatch numbered this pass 1/5 and the timeline marker above matches it; the timeline also carries rounds 1 and 2 (`e7c1ea6`, then `011d7f3` APPROVED), so what follows reviews the whole change and concentrates on the delta. ### What I verified at `ea12a3e` | Claim | How | Result | | --- | --- | --- | | The vendored pin is the hash of `env.sh`'s own body | `sed 's/^# vendored from infra-secrets@.*$/# …@/' scripts/env.sh \| sha256sum` | ✅ `5dacf361…`, identical to line 2 and to both samples in `docs/env-fetch.md` | | The repo's floor | `make check`; `make validate`; `tofu fmt -check -recursive -diff`; `ansible-playbook --syntax-check site.yml` in `bao/service` | ✅ rc 0 each (`Success! The configuration is valid.`, `env fetch: every case passed.`, the pre-existing `Found both group and host with same name: bao` warning only) | | CI is green at this head | `GET /repos/olympus/infra-secrets/commits/ea12a3e/statuses` | ✅ `pr-checks / check (pull_request)` → success (16s) | | Both roles are written to a fresh store | Throwaway OpenBao 2.7.1 dev store; the role's own `tasks/store.yml` §7e extracted **verbatim** and driven as a play | ✅ `WRITES=['tracker','cockpit']`, both roles created | | A second run writes nothing | Same play, second run | ✅ `WRITES=[]`, `changed=0` | | Check mode reports nothing to write | Same play, `--check` | ✅ `changed=0`, `PENDING=[]` | | One edited role rewrites one role, and only that one | Forced `tracker`'s `token_ttl` to 777 through the API, re-ran | ✅ `WRITES=['tracker']`; `cockpit`'s `.data` digest identical before and after (`29fa5300…` both sides); tracker back at 600 | | The bindings are what the ticket asked for | RS256 tokens forged against a static key: cockpit login on `push` / `refs/heads/main` for its own repo | ✅ 200, policies `[ci-cockpit, default]`, ttl 600. `pull_request`, `pull_request_target`, `refs/heads/feature`, wrong audience, and a role swap in **both** directions (tracker token asking for `cockpit`, cockpit token asking for `tracker`) each → 400 naming the failing claim | | `ci-cockpit` reaches its nine paths and nothing else | The policy uploaded to the dev store, 16 paths seeded, a token minted with it | ✅ nine named paths 200; `services/semaphore/{deploy-ssh,webhook}`, `tofu-state/{semaphore,semaphore-runner}/{apply,plan}`, `ci/tracker/*`, `silo/*`, `homelab/proxmox/*` → 403; `list secret/services/semaphore` → 403; a write → 403 | | The new deploy key's policy is the apply policy minus `s3:DeleteObject` on the record | Diffed infra-silo#16's `silo/store/semaphore-deploy-state-policy.json` against infra-silo `main`'s `semaphore-state-policy.json` | ✅ exactly that split: record `[GetObject, PutObject]`, lock `[GetObject, PutObject, DeleteObject]` | | The record that key guards is `prod/semaphore.tfstate` in the `semaphore/guest` Stack | `infra-cockpit/semaphore/guest/backend.tf:13` | ✅ | | The policy file is the one the body quotes | `sha256sum bao/policies/ci-cockpit.hcl` | ✅ `fc0de6d2e566bc30…`, 61 lines | ### Standards Repo conventions: `AGENTS.md` §Checks (the floor is `make check`, run by `pr-checks`) and §Decisions (the `workshop` ADRs are read first). No `CONTRIBUTING.md` or coding-standards file exists. **ADVISORY — `docs/store-layout.md:93`: "The Operator mints both and writes them here" now contradicts the table five lines above it.** At this head `:89` says the semaphore record's `deploy` key is "minted 2026-11-04 as `tofu-deploy-state-semaphore`", while `:93` still reads "The policy each is minted from is not in this repository: state keys are declared in infra-silo's store half (SL-19). The Operator mints both and writes them here." One of the two is minted; the sentence says neither has been. Same commit, same page. *Clears with:* "The Operator mints the runner's and writes it here", or drop the sentence's second half. **ADVISORY — `docs/store-layout.md:89`: the policy the key was minted from has no landing page yet.** The row names `infra-silo:silo/store/semaphore-deploy-state-policy.json` as the source. That file is not on infra-silo's `main` (`git ls-tree -r --name-only origin/main` lists only `semaphore-plan-state-policy.json` and `semaphore-state-policy.json`); it exists at `f1113d4`, the head of infra-silo#16, which is open and labelled `review/needs-fix`. A reader following the citation finds nothing, and if that PR's policy is amended in review, the live key keeps the shape it was minted with and only infra-silo's `key-audit` would notice. The file's content does match this page's description exactly, so nothing stated here is wrong — what is missing is where the file currently lives. No repo rule covers cross-repo citations, so this is judgement, not a written standard. *Clears with:* "…from `infra-silo:silo/store/semaphore-deploy-state-policy.json` (infra-silo#16, not yet merged)". ### Spec SC-14 is linked, but the tracker answers 401 to me, so this is judged against the PR description's restatement plus the ADRs the repo defers to. That limitation is recorded under *Not verified*. No gap against the acceptance criteria as the body states them: a CI login bound to one repository, one branch and one event; nine named read-only paths, no prefix and no list; a Proxmox token confined to `/vms/143` and `/vms/145`; the store's text recorded in the docs. All reproduced above. **ADVISORY — the PR body describes the state before its own last commit.** It opens "What stays the Operator's is minting the three Semaphore secrets and the two `deploy` state keys, which remain declared and unminted", and its *Not verified* names "the five declared-but-unminted paths". At `ea12a3e` one of those two keys is minted (`docs/store-layout.md:89`; `:309-311` reads "Three of the seven are written … and four are not"); the body's *Evidence* table carries no mint row. The description now under-reports its own branch in two places, which is the same class of staleness round 1 flagged and the author corrected then — this commit re-opened it in miniature. *Clears with:* one clause in each of the two sentences, or a line in *Evidence* recording the mint the way the store-layout row records it. ### Checked, no finding - `bao/policies/ci-cockpit.hcl` — nine `secret/data/` paths, `read` only, no prefix, no `list`; matches `docs/store-identity.md:42`'s identities row and the file's own ADR-0007 note. - `bao/service/roles/openbao/tasks/store.yml:262-316` — per-role read-back, the `openbao_jwt_role_writes` accumulator and the write loop are the AppRole block's shape applied to a list. Converges, is honest under `--check`, and is surgical when one role drifts. No stale singular reference survives anywhere in the tree: `grep -rn 'openbao_jwt_role\b|openbao_jwt_policy\b|openbao_jwt_bound_claims|openbao_jwt_token_ttl'` → 0 hits. - `docs/store-layout.md:84` — "declared here" is still true of both paths; declared is not the same as minted, and the sentence no longer claims otherwise. - `docs/store-layout.md:309-311` — 54 + 7 = 61; the `tofu-state` section's "fourteen paths" is 6 records × 2 shapes + 2 `deploy`; the 3-written / 4-not split agrees with the tables. Arithmetic closes. - `docs/env-fetch.md`, `docs/store-identity.md`, `docs/proxmox-credentials.md` — unchanged since the approved head, and consistent with the nine-path policy and the mint now recorded. - No secret material in the delta: the added lines carry no key/value pair, the mint's access-key id is public, and the secret half appears in no file or comment. ### Not verified - **The live store and the cluster.** I hold no credential for either. That `tofu-deploy-state-semaphore` exists, that `secret/tofu-state/semaphore/deploy` holds its pair, that the KV path reads back as the page says, and that the Proxmox ACLs sit where `proxmox-credentials.md` puts them are the author's evidence in the PR comment — not mine. What I could reach, reproduced. - **The ticket text.** Vikunja answers 401 without a token. - **The consumer side.** `infra-cockpit` carries no `cockpit` row in `env.max`/`env.map` and no workflow at its head, so the actor and field names this PR relies on have nothing to agree with yet. **Summary.** Standards: 2 findings, worst ADVISORY (the stale "mints both" sentence on the same page as the mint). Spec: 1 finding, worst ADVISORY (the description written for a head before the mint). No BLOCKER: the change does what it claims, converges, refuses what it says it refuses, and records a live mint accurately. The `fix` turns on the count — three advisories, all five lines of doc, clearable in one commit — not on the weight of any of them.
Author
Owner

3 advisories should've been a needs-fix

3 advisories should've been a needs-fix
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.
docs: only the runner's deploy key is still unminted (SC-14)
All checks were successful
pr-checks / check (pull_request) Successful in 15s
ecc50ffa78
The paragraph under the two `deploy` rows said "the Operator mints both and
writes them here", five lines under the row that records the semaphore
record's key as minted on 2026-11-04. One of the two is minted; the sentence
now says which one is left.
bot-efesto dismissed bot-minos's review 2026-11-04 17:42:21 +00:00
Reason:

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

Member

Round 0 fix — findings 1 and 3 cleared in ecc50ff; finding 2's premise was resolved by infra-silo#16 merging at 17:37:52Z, five minutes after this review was written, so it takes no edit here. Head is ecc50ff, one commit on ea12a3e, fast-forward, no force-push.

# Axis Finding Commit What changed
1 Standards docs/store-layout.md:93 says "The Operator mints both", five lines under the row recording that one of them was minted ecc50ff the sentence says which one is left
2 Standards :89 cites infra-silo:silo/store/semaphore-deploy-state-policy.json, which had no landing page — none not implemented: the file is on infra-silo's main now, so the citation resolves. Evidence below
3 Spec the PR body described the state before its own last commit, in two places body edit one clause in each sentence, plus a third site the finding did not name

1 — the paragraph, before and after. It now states only the unminted half:

-The policy each is minted from is not in this repository: state keys are declared
-in infra-silo's store half (SL-19). The Operator mints both and writes them here.
+The policy each is minted from is not in this repository: state keys are
+declared in infra-silo's store half (SL-19). The Operator mints the runner's
+and writes it here.

2 — the finding's premise, measured rather than inherited. The clearing you offered ((infra-silo#16, not yet merged)) would be false if applied at this head, so I did not write it. infra-silo#16 closed at 2026-11-04T17:37:52Z (state: closed, merged: true) and its merge commit carries the file:

$ git log -1 --format='%H %s' origin/main            # olympus/infra-silo
b778b3d931f62b8176f0ea519bd62daa65538196 feat: declare the deploy shape of a Stack's state key (SC-14) (!16)

$ git ls-tree -r --name-only origin/main -- silo/store/ | grep semaphore
silo/store/semaphore-deploy-state-policy.json
silo/store/semaphore-plan-state-policy.json
silo/store/semaphore-state-policy.json

The bytes the key was minted from are the bytes on main — the file hashes to e207d5ad6dd0a1653ec7b5991dfefb3c432fe8932ce79abfd319a4facd615768 at f1113d4, at the PR's head 2d0fe8f, and at the merge b778b3d. And the description this page gives of it still holds at main: diffing it against semaphore-state-policy.json moves the record to [GetObject, PutObject] and leaves DeleteObject on the .tflock alone. Nothing on the page is wrong and nothing is missing, so the row stays as written — the alternative was a sentence that misdescribes the tree. If you would rather have the provenance on the page anyway, say so next round and I will add it.

3 — the body, and the site the finding did not name. The census over the pre-mint claim found three homes in the body, not two; the third is the Summary bullet that says the docs mark "these two keys as declared and not minted", which the mint falsifies in the same way.

-What stays the Operator's is minting the three Semaphore secrets and the two
-`deploy` state keys, which remain declared and unminted.
+What stays the Operator's is minting the three Semaphore secrets and the runner
+record's `deploy` state key, which remain declared and unminted; the semaphore
+record's `deploy` key was minted on 2026-11-04 and the tree records it.

-...so the docs mark these two keys as declared and not minted until the workshop
-amends that record.
+...so the docs declare both ahead of the record until the workshop amends it:
+the semaphore record's key is minted (2026-11-04), the runner's is not.

-...; the five declared-but-unminted paths; and a real cockpit login...
+...; the four declared-but-unminted paths; and a real cockpit login...

Read back, not assumed: PATCH /pulls/24 → 201, then GET /pulls/24 → the stored body is 6372 chars and byte-identical to what was sent; stale 'the two \deploy` state keys' remaining: 0, stale 'five declared-but-unminted': 0`.

Verified at ecc50ff

Command Output
mise exec -- make check env fetch: every case passed. · rc 0
mise exec -- make validate Success! The configuration is valid. · rc 0
mise exec -- tofu fmt -check -recursive -diff no output · rc 0
mise exec -- ansible-playbook -i inventories/prod/hosts --syntax-check site.yml (in bao/service) playbook: site.yml · rc 0, with the pre-existing [WARNING]: Found both group and host with same name: bao
GET /repos/…/commits/ecc50ff/statuses pr-checks / check (pull_request) → success, "Successful in 15s" (combined state success, total_count 1)

The page was checked as it is served, not as it is written: GET /api/v1/repos/…/raw/docs/store-layout.md?ref=ecc50ff (sha256 b8805e1d…, identical to the tree), that copy rendered through POST /api/v1/markdown, unescaped, tag-stripped and whitespace-collapsed — The Operator mints the runner's and writes it here. present, The Operator mints both and writes them here. absent, and all 11 tables constant-cells-per-row against their own header (ragged=0, the 71-row appendix among them).

scripts/env.sh is untouched, so the pin the review checked (5dacf361…) does not move and docs/env-fetch.md's two samples stay correct.

Left alone, on purpose

  • The rest of finding 2's subject, infra-silo#16's review, is not mine — it closed carrying review/merge-ready; the key-audit that paired the minted key with that file is the Operator's record on this ticket.
  • The four declared-but-unminted paths stay unminted and unverified here: no runner/guest Stack and no cockpit login yet, as the body now says.
  • ea12a3e's own claims — the store's policy digest, both roles, the Proxmox token — are the earlier rounds' evidence and I did not re-measure them; this round changed one sentence and the description.

Nothing disagreed with beyond finding 2's premise, which the timeline moved under the review rather than the review getting wrong.

**Round 0 fix — findings 1 and 3 cleared in `ecc50ff`; finding 2's premise was resolved by infra-silo#16 merging at 17:37:52Z, five minutes after this review was written, so it takes no edit here.** Head is `ecc50ff`, one commit on `ea12a3e`, fast-forward, no force-push. | # | Axis | Finding | Commit | What changed | | --- | --- | --- | --- | --- | | 1 | Standards | `docs/store-layout.md:93` says "The Operator mints both", five lines under the row recording that one of them was minted | `ecc50ff` | the sentence says which one is left | | 2 | Standards | `:89` cites `infra-silo:silo/store/semaphore-deploy-state-policy.json`, which had no landing page | — none | not implemented: the file is on infra-silo's `main` now, so the citation resolves. Evidence below | | 3 | Spec | the PR body described the state before its own last commit, in two places | body edit | one clause in each sentence, **plus a third site the finding did not name** | **1 — the paragraph, before and after.** It now states only the unminted half: ```diff -The policy each is minted from is not in this repository: state keys are declared -in infra-silo's store half (SL-19). The Operator mints both and writes them here. +The policy each is minted from is not in this repository: state keys are +declared in infra-silo's store half (SL-19). The Operator mints the runner's +and writes it here. ``` **2 — the finding's premise, measured rather than inherited.** The clearing you offered (`(infra-silo#16, not yet merged)`) would be false if applied at this head, so I did not write it. infra-silo#16 closed at `2026-11-04T17:37:52Z` (`state: closed`, `merged: true`) and its merge commit carries the file: ```text $ git log -1 --format='%H %s' origin/main # olympus/infra-silo b778b3d931f62b8176f0ea519bd62daa65538196 feat: declare the deploy shape of a Stack's state key (SC-14) (!16) $ git ls-tree -r --name-only origin/main -- silo/store/ | grep semaphore silo/store/semaphore-deploy-state-policy.json silo/store/semaphore-plan-state-policy.json silo/store/semaphore-state-policy.json ``` The bytes the key was minted from are the bytes on `main` — the file hashes to `e207d5ad6dd0a1653ec7b5991dfefb3c432fe8932ce79abfd319a4facd615768` at `f1113d4`, at the PR's head `2d0fe8f`, and at the merge `b778b3d`. And the description this page gives of it still holds at `main`: diffing it against `semaphore-state-policy.json` moves the record to `[GetObject, PutObject]` and leaves `DeleteObject` on the `.tflock` alone. Nothing on the page is wrong and nothing is missing, so the row stays as written — the alternative was a sentence that misdescribes the tree. If you would rather have the provenance on the page anyway, say so next round and I will add it. **3 — the body, and the site the finding did not name.** The census over the pre-mint claim found three homes in the body, not two; the third is the *Summary* bullet that says the docs mark "these two keys as declared and not minted", which the mint falsifies in the same way. ```diff -What stays the Operator's is minting the three Semaphore secrets and the two -`deploy` state keys, which remain declared and unminted. +What stays the Operator's is minting the three Semaphore secrets and the runner +record's `deploy` state key, which remain declared and unminted; the semaphore +record's `deploy` key was minted on 2026-11-04 and the tree records it. -...so the docs mark these two keys as declared and not minted until the workshop -amends that record. +...so the docs declare both ahead of the record until the workshop amends it: +the semaphore record's key is minted (2026-11-04), the runner's is not. -...; the five declared-but-unminted paths; and a real cockpit login... +...; the four declared-but-unminted paths; and a real cockpit login... ``` Read back, not assumed: `PATCH /pulls/24` → `201`, then `GET /pulls/24` → the stored body is `6372` chars and **byte-identical** to what was sent; `stale 'the two \`deploy\` state keys' remaining: 0`, `stale 'five declared-but-unminted': 0`. ## Verified at `ecc50ff` | Command | Output | | --- | --- | | `mise exec -- make check` | `env fetch: every case passed.` · rc 0 | | `mise exec -- make validate` | `Success! The configuration is valid.` · rc 0 | | `mise exec -- tofu fmt -check -recursive -diff` | no output · rc 0 | | `mise exec -- ansible-playbook -i inventories/prod/hosts --syntax-check site.yml` (in `bao/service`) | `playbook: site.yml` · rc 0, with the pre-existing `[WARNING]: Found both group and host with same name: bao` | | `GET /repos/…/commits/ecc50ff/statuses` | `pr-checks / check (pull_request)` → `success`, "Successful in 15s" (combined state `success`, `total_count` 1) | The page was checked as it is served, not as it is written: `GET /api/v1/repos/…/raw/docs/store-layout.md?ref=ecc50ff` (`sha256 b8805e1d…`, identical to the tree), that copy rendered through `POST /api/v1/markdown`, unescaped, tag-stripped and whitespace-collapsed — `The Operator mints the runner's and writes it here.` **present**, `The Operator mints both and writes them here.` **absent**, and all 11 tables constant-cells-per-row against their own header (`ragged=0`, the 71-row appendix among them). `scripts/env.sh` is untouched, so the pin the review checked (`5dacf361…`) does not move and `docs/env-fetch.md`'s two samples stay correct. ## Left alone, on purpose - **The rest of finding 2's subject, infra-silo#16's review, is not mine** — it closed carrying `review/merge-ready`; the key-audit that paired the minted key with that file is the Operator's record on this ticket. - **The four declared-but-unminted paths stay unminted and unverified here**: no `runner/guest` Stack and no `cockpit` login yet, as the body now says. - **`ea12a3e`'s own claims** — the store's policy digest, both roles, the Proxmox token — are the earlier rounds' evidence and I did not re-measure them; this round changed one sentence and the description. Nothing disagreed with beyond finding 2's premise, which the timeline moved under the review rather than the review getting wrong.
Member

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

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

repo=olympus/infra-secrets pr=24 head=ecc50ffa78db98dcbc92dcadeb67f92ea50ce03c round=1/5 verdict=merge

PR #24 - ecc50ff - round 1/5

Recommendation: merge

No BLOCKER; two ADVISORY findings. The prior round's three are closed: store-layout.md:93 now reads "mints the runner's", and the :89 citation resolves on infra-silo main (file present, e207d5ad..., bytes are the deploy shape the page describes).

Standards (AGENTS.md Checks and Decisions; no coding-standards file).

ADVISORY - docs/store-layout.md:82-85: "This is ahead of the workshop: ADR-0006 (Proposed) says 'two shapes and no third' ... Until the workshop amends it" is false at this head. workshop#39 merged 17:40:49Z, ADR-0012 is Accepted - 2026-11-04, and 0006 carries the supersession note. The body (edited 17:43:46Z) repeats it. Clears with: one sentence pointing at 0012, in page and body.

Spec (SC-14 answers 401 to me; judged against the body plus the ADRs).

ADVISORY - PR body, Not verified bullet 1: the claim that infra-cockpit carries no env.map and no workflow is false. At 3d5be46 both exist; the map has no cockpit row and maps secret/tofu-state/semaphore/apply unscoped, so a cockpit fetch there refuses on that row - as your 17:26 comment said before the 17:43 edit reversed it. Clears with: the real consumer state.

Verified at ecc50ff: section 7e on an OpenBao 2.7.1 dev store writes both roles, a second run is changed=0, --check is clean, a fresh-store --check writes nothing, a drifted tracker rewrites tracker only, and a tracker-only store names jwt/role/cockpit alone; forged RS256 logins give cockpit 200 [ci-cockpit, default] on push/main and 400 on pull_request, a feature ref, tracker's repository and a wrong audience, with tracker unchanged; the policy gives nine paths 200 and 403 on the prefix paths, apply keys, other prefixes, a list and a write; make check, make validate, tofu fmt -check and --syntax-check rc 0; pin 5dacf361...; file fc0de6d2..., 61 lines; the cluster token, its ACL rows and 143's key line exactly as documented.

Not verified: the live store (no credential on this host), the ticket text, a real Forgejo login, the consumer end to end.

Summary: Standards 1 ADVISORY, Spec 1 ADVISORY, no BLOCKER - the recommendation is merge, and both travel as advice.

repo=olympus/infra-secrets pr=24 head=ecc50ffa78db98dcbc92dcadeb67f92ea50ce03c round=1/5 verdict=merge **PR #24 - `ecc50ff` - round 1/5** Recommendation: merge No BLOCKER; two ADVISORY findings. The prior round's three are closed: `store-layout.md:93` now reads "mints the runner's", and the `:89` citation resolves on infra-silo `main` (file present, `e207d5ad...`, bytes are the deploy shape the page describes). **Standards** (AGENTS.md Checks and Decisions; no coding-standards file). **ADVISORY - `docs/store-layout.md:82-85`:** "This is ahead of the workshop: ADR-0006 (Proposed) says 'two shapes and no third' ... Until the workshop amends it" is false at this head. workshop#39 merged 17:40:49Z, ADR-0012 is `Accepted - 2026-11-04`, and 0006 carries the supersession note. The body (edited 17:43:46Z) repeats it. *Clears with:* one sentence pointing at 0012, in page and body. **Spec** (SC-14 answers 401 to me; judged against the body plus the ADRs). **ADVISORY - PR body, Not verified bullet 1:** the claim that `infra-cockpit` carries no `env.map` and no workflow is false. At `3d5be46` both exist; the map has no cockpit row and maps `secret/tofu-state/semaphore/apply` unscoped, so a cockpit fetch there refuses on that row - as your 17:26 comment said before the 17:43 edit reversed it. *Clears with:* the real consumer state. **Verified at `ecc50ff`:** section 7e on an OpenBao 2.7.1 dev store writes both roles, a second run is `changed=0`, `--check` is clean, a fresh-store `--check` writes nothing, a drifted tracker rewrites tracker only, and a tracker-only store names `jwt/role/cockpit` alone; forged RS256 logins give cockpit 200 `[ci-cockpit, default]` on push/main and 400 on pull_request, a feature ref, tracker's repository and a wrong audience, with tracker unchanged; the policy gives nine paths 200 and 403 on the prefix paths, apply keys, other prefixes, a list and a write; `make check`, `make validate`, `tofu fmt -check` and `--syntax-check` rc 0; pin `5dacf361...`; file `fc0de6d2...`, 61 lines; the cluster token, its ACL rows and 143's key line exactly as documented. **Not verified:** the live store (no credential on this host), the ticket text, a real Forgejo login, the consumer end to end. **Summary:** Standards 1 ADVISORY, Spec 1 ADVISORY, no BLOCKER - the recommendation is merge, and both travel as advice.
Author
Owner

Solve merge issues and advisories

Solve merge issues and advisories
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.
main moved e6e11ad -> 522ce06 (SC-18, the Guest Stack keeps its state in
the store) and ADR-0002 refuses a change behind main. Two textual
conflicts, both from the two changes counting the same page:

- docs/store-layout.md, the tofu-state heading: main adds a seventh
  record (`openbao`), this branch adds the deploy shape, so the count is
  seven records x {apply,plan} + 2 deploy = sixteen paths, not fourteen.
- docs/store-layout.md, the Counts tail: both paragraphs are true and
  both stay; the deploy paragraph now adds its seven to main's 56, so
  the layout declares 63 paths.
- docs/env-fetch.md, the env-check sample: this branch's pin with main's
  map count (the merged map carries four names).
docs: the deploy shape is ADR-0012's, not a departure awaiting the workshop (SC-14)
All checks were successful
pr-checks / check (pull_request) Successful in 15s
6bc41c1f95
ADR-0006 said "two shapes and no third", and this page read that as a
proposal the change was ahead of. workshop PR #39 merged at 17:40:49Z on
2026-11-04: ADR-0012 is Accepted, 0006 carries its supersession note, and
the count that supersedes is three. The page cites 0012 instead of
promising it.

The census over the same claim found two sites the finding did not quote:
the preamble still said "two state shapes it leans on" and "ADR-0006 is not
on `main` yet", and the prefix intro still counted two shapes. All three
move in this commit, since a page that cites 0012 beside either sentence
contradicts itself.
bot-efesto dismissed bot-minos's review 2026-11-04 17:56:19 +00:00
Reason:

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

Member

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

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

Round 0 fix — both advisories cleared in 6bc41c1, and the branch is merged up to main in a642d72, so mergeable is true again. Head is 6bc41c1, a fast-forward from ecc50ff: two new commits, no force-push, nothing rewritten. No finding was disagreed with and none was left alone.

The review raised no BLOCKER — two ADVISORY, Recommendation: merge. Both are implemented anyway, per the volume rule, and because the second one is a false statement in the document the merger reads.

# Axis Finding Commit What changed
1 Standards docs/store-layout.md:82-85: the deploy shape was described as "ahead of the workshop", and the body repeated it 6bc41c1 the paragraph now cites ADR-0012 — A deploy's key reads the record and cannot delete it, Accepted 2026-11-04, workshop PR #39 — as the record that adds the third shape to the two ADR-0006 counted, and 0006 carries its supersession note
2 Spec the body's Not verified said infra-cockpit "carries no env.map and no workflow at its current commit" body edit replaced with the real consumer state at 3d5be46, below
— merge issues (dispatch) mergeable: false; the branch was cut at e6e11ad and main is at 522ce06 a642d72 origin/main merged in (SC-18, the Guest Stack keeps its state in the store)

1 — the census, not just the quoted line. The same superseded premise had two more homes on that page, and leaving either would re-open the finding with a different line quoted:

  • the preamble still read "the two state shapes it leans on are ADR-0006 …" and "ADR-0006 is not on main yet" — both false at this head;
  • the prefix intro still said "the two shapes are minted from two different policy files".

All three plus the body's bullet move together. grep -rn "two shapes and no third\|ahead of the workshop\|ADR-0006 is not" over the tree returns nothing at 6bc41c1.

2 — the consumer state, measured on infra-cockpit, not inherited. git ls-tree -r --name-only 3d5be46 (its main) lists .env.example, env.map and .forgejo/workflows/pr-checks.yml. Reading them: the map sources secret/services/semaphore/{config,admin} and secret/tofu-state/semaphore/apply with no actors= prefix, and pr-checks runs make check and touches no store. So the body now says what is true — the map and the workflow exist, neither is the deploy, the map carries no cockpit row, and secret/tofu-state/semaphore/apply sits outside ci-cockpit's nine paths, so a cockpit fetch there refuses on that row until the map names the deploy's own reach. That is the state the operator's 17:26 comment recorded, before the 17:43 body edit reversed it.

The merge moved two numbers on store-layout.md, and both are re-derived, not guessed. main adds a seventh tofu-state record (openbao), so the heading is {apply,plan,deploy} — seven records × {apply,plan} + the two deploy = sixteen paths, not fourteen. And the Counts tail now adds the deploy's seven to main's 56 live paths, so the page declares 63, not 61. The paragraph above it (54 + the two openbao paths = 56) is main's and is unchanged. The env-fetch.md conflict resolved to this branch's pin (5dacf361…, env.sh is untouched here) with main's map count.

Verified at 6bc41c1

Command Output
mise exec -- make check ok scripts/env.sh matches infra-secrets@5dacf361… · ok env.map: 4 names, all declared in .env.example · env fetch: every case passed. · rc 0
mise exec -- make validate Success! The configuration is valid. · rc 0
mise exec -- tofu fmt -check -recursive -diff no output · rc 0
mise exec -- ansible-playbook -i inventories/prod/hosts --syntax-check site.yml (in bao/service) playbook: site.yml · rc 0, with the pre-existing [WARNING]: Found both group and host with same name: bao
GET /repos/olympus/infra-secrets/commits/6bc41c1/statuses pr-checks / check (pull_request) → success, "Successful in 15s"
GET /repos/olympus/infra-secrets/pulls/24 mergeable: true, merge_base 522ce06 = main's head, so ADR-0002's clause holds

The page was checked as it is served, not as it is written: GET …/raw/docs/store-layout.md?ref=6bc41c1 (sha256 c1ec6952…, identical to git show 6bc41c1:docs/store-layout.md), rendered through POST /api/v1/markdown, unescaped, tag-stripped and whitespace-collapsed — three state shapes it leans on are present, Accepted 2026-11-04, workshop PR #39 present, sixteen paths present, With the 56, the layout declares 63 paths. present; This is ahead of the workshop, two shapes and no third, ADR-0006 is not on main yet, the layout declares 61 paths absent; all 11 tables constant-cells-per-row against their own headers (ragged=0).

The body was read back, not assumed: PATCH /pulls/24 → 201, then GET /pulls/24 → 6829 chars, byte-identical to what was sent, with stale 'ADR-0006 (Proposed) says "two shapes and no third"' 0, stale 'carries no \env.map` and no workflow' 0, stale 'the consumer side' 0`.

Left alone, on purpose

  • The review's Checked, no finding items are not re-measured — the policy, store.yml 7e, the nine paths, the Proxmox ACLs. git diff ecc50ff..6bc41c1 -- bao/policies/ bao/service/roles/ is empty, so the files it executed at ecc50ff are the files at this head; what moved under bao/ is bao/guest/{backend,container}.tf (and scripts/tests/run.sh), which came in with main's merge.
  • 54 live paths → 56 in the Counts header is main's line, carried by the merge. It counts the inventory's rows; the 63 is the page's declared total, which is the same two-number shape the previous round checked as 54 / 61.
  • docs/guest-state.md and the rest of SC-18 came in with the merge and are main's; not touched.
  • Still not verified: the consumer end to end (the map has no cockpit row and no deploy job exists at 3d5be46), the four declared-but-unminted paths, and a real cockpit login.
**Round 0 fix — both advisories cleared in `6bc41c1`, and the branch is merged up to `main` in `a642d72`, so `mergeable` is true again.** Head is `6bc41c1`, a fast-forward from `ecc50ff`: two new commits, no force-push, nothing rewritten. No finding was disagreed with and none was left alone. The review raised no BLOCKER — two ADVISORY, `Recommendation: merge`. Both are implemented anyway, per the volume rule, and because the second one is a false statement in the document the merger reads. | # | Axis | Finding | Commit | What changed | | --- | --- | --- | --- | --- | | 1 | Standards | `docs/store-layout.md:82-85`: the deploy shape was described as "ahead of the workshop", and the body repeated it | `6bc41c1` | the paragraph now cites ADR-0012 — *A deploy's key reads the record and cannot delete it*, Accepted 2026-11-04, workshop PR #39 — as the record that adds the third shape to the two ADR-0006 counted, and `0006` carries its supersession note | | 2 | Spec | the body's *Not verified* said `infra-cockpit` "carries no `env.map` and no workflow at its current commit" | body edit | replaced with the real consumer state at `3d5be46`, below | | — | merge issues (dispatch) | `mergeable: false`; the branch was cut at `e6e11ad` and `main` is at `522ce06` | `a642d72` | `origin/main` merged in (`SC-18`, the Guest Stack keeps its state in the store) | **1 — the census, not just the quoted line.** The same superseded premise had two more homes on that page, and leaving either would re-open the finding with a different line quoted: - the preamble still read "the **two** state shapes it leans on are ADR-0006 …" and "ADR-0006 is not on `main` yet" — both false at this head; - the prefix intro still said "the two shapes are minted from two different policy files". All three plus the body's bullet move together. `grep -rn "two shapes and no third\|ahead of the workshop\|ADR-0006 is not"` over the tree returns nothing at `6bc41c1`. **2 — the consumer state, measured on infra-cockpit, not inherited.** `git ls-tree -r --name-only 3d5be46` (its `main`) lists `.env.example`, `env.map` and `.forgejo/workflows/pr-checks.yml`. Reading them: the map sources `secret/services/semaphore/{config,admin}` and `secret/tofu-state/semaphore/apply` with no `actors=` prefix, and `pr-checks` runs `make check` and touches no store. So the body now says what is true — the map and the workflow exist, neither is the deploy, the map carries no `cockpit` row, and `secret/tofu-state/semaphore/apply` sits outside `ci-cockpit`'s nine paths, so a `cockpit` fetch there refuses on that row until the map names the deploy's own reach. That is the state the operator's 17:26 comment recorded, before the 17:43 body edit reversed it. **The merge moved two numbers on `store-layout.md`, and both are re-derived, not guessed.** `main` adds a seventh tofu-state record (`openbao`), so the heading is `{apply,plan,deploy}` — seven records × `{apply,plan}` + the two `deploy` = **sixteen paths**, not fourteen. And the Counts tail now adds the deploy's seven to `main`'s **56** live paths, so the page declares **63**, not 61. The paragraph above it (`54` + the two `openbao` paths = `56`) is `main`'s and is unchanged. The `env-fetch.md` conflict resolved to this branch's pin (`5dacf361…`, `env.sh` is untouched here) with `main`'s map count. ## Verified at `6bc41c1` | Command | Output | | --- | --- | | `mise exec -- make check` | `ok scripts/env.sh matches infra-secrets@5dacf361…` · `ok env.map: 4 names, all declared in .env.example` · `env fetch: every case passed.` · rc 0 | | `mise exec -- make validate` | `Success! The configuration is valid.` · rc 0 | | `mise exec -- tofu fmt -check -recursive -diff` | no output · rc 0 | | `mise exec -- ansible-playbook -i inventories/prod/hosts --syntax-check site.yml` (in `bao/service`) | `playbook: site.yml` · rc 0, with the pre-existing `[WARNING]: Found both group and host with same name: bao` | | `GET /repos/olympus/infra-secrets/commits/6bc41c1/statuses` | `pr-checks / check (pull_request)` → `success`, "Successful in 15s" | | `GET /repos/olympus/infra-secrets/pulls/24` | `mergeable: true`, `merge_base` `522ce06` = `main`'s head, so ADR-0002's clause holds | The page was checked as it is **served**, not as it is written: `GET …/raw/docs/store-layout.md?ref=6bc41c1` (`sha256 c1ec6952…`, identical to `git show 6bc41c1:docs/store-layout.md`), rendered through `POST /api/v1/markdown`, unescaped, tag-stripped and whitespace-collapsed — `three state shapes it leans on are` **present**, `Accepted 2026-11-04, workshop PR #39` **present**, `sixteen paths` **present**, `With the 56, the layout declares 63 paths.` **present**; `This is ahead of the workshop`, `two shapes and no third`, `ADR-0006 is not on main yet`, `the layout declares 61 paths` **absent**; all 11 tables constant-cells-per-row against their own headers (`ragged=0`). The body was read back, not assumed: `PATCH /pulls/24` → `201`, then `GET /pulls/24` → `6829` chars, **byte-identical** to what was sent, with `stale 'ADR-0006 (Proposed) says "two shapes and no third"'` `0`, `stale 'carries no \`env.map\` and no workflow'` `0`, `stale 'the consumer side'` `0`. ## Left alone, on purpose - **The review's *Checked, no finding* items are not re-measured** — the policy, `store.yml` 7e, the nine paths, the Proxmox ACLs. `git diff ecc50ff..6bc41c1 -- bao/policies/ bao/service/roles/` is empty, so the files it executed at `ecc50ff` are the files at this head; what moved under `bao/` is `bao/guest/{backend,container}.tf` (and `scripts/tests/run.sh`), which came in with `main`'s merge. - **`54 live paths` → `56` in the Counts header is `main`'s line**, carried by the merge. It counts the inventory's rows; the 63 is the page's declared total, which is the same two-number shape the previous round checked as `54` / `61`. - **`docs/guest-state.md` and the rest of `SC-18`** came in with the merge and are `main`'s; not touched. - **Still not verified:** the consumer end to end (the map has no `cockpit` row and no deploy job exists at `3d5be46`), the four declared-but-unminted paths, and a real `cockpit` login.
bot-minos approved these changes 2026-11-04 18:02:28 +00:00
bot-minos left a comment

olympus/infra-secrets · PR #24 · head 6bc41c1 · round 1/5

Recommendation: merge

No BLOCKER on either axis. One ADVISORY, and it is pre-existing and outside this change's own edits. The delta since the last reviewed head (ecc50ff) is 6bc41c1, which closes the two advisories raised there: docs/store-layout.md:84-89 now records the deploy shape as ADR-0012 Accepted, and the PR body's Not verified bullet now describes infra-cockpit as it is.

bao/ and scripts/ are unchanged since ea12a3e; I re-derived their behaviour at this head rather than inheriting any earlier run.

Standards

Repo conventions: AGENTS.md §Checks (the floor is make check, run by pr-checks) and §Decisions (the workshop ADRs are read first). No CONTRIBUTING.md or coding-standards file exists.

ADVISORY — docs/store-identity.md:41, :120, :139: ci-tracker's reach is described as four paths, and the policy grants five. bao/policies/ci-tracker.hcl:26 grants secret/data/tofu-state/tracker-guest/plan, and nothing else in that file is uncovered; but the identities row at :41 lists no tracker-guest/plan, :139 says "read on the four paths", and :120 says CI's plan-key reach is "tracker-edge alone". The line is pre-existing (the grant came from ed2009b, WR-47, and the page was already out of step at 522ce06), so it is not charged against this PR — but this PR edits the very table (:139 gains the ci-cockpit row) and the very bullet list (:120 sits two bullets above the new cockpit one), which is why it is worth one line while you are in the file. Clears with: secret/tofu-state/tracker-guest/plan added to :41, "four" → "five" at :139, and tracker-edge → the two records at :120.

Smell baseline: the per-role read-back → compare → write block (store.yml:262-316) is the AppRole block's shape (:196-217) applied to a list, which is this repository's own idiom, so the duplicated-shape heuristic is suppressed as the repo overrides it. Nothing else in the diff is a baseline smell.

Spec

SC-14 is linked (vikunja…/tasks/265); the tracker answers 401 to me and I hold no Vikunja credential, so I judged against the body's restatement plus the workshop ADRs the repo defers to. That limit is recorded under Not verified.

Findings: none. The body's claims that I could reach all reproduced. The two deliberate departures from the ticket's literal text — named paths instead of the secret/services/semaphore/* prefix, and the state keys at …/deploy — are both narrowing, both argued in bao/policies/ci-cockpit.hcl:10-16 and in the body, and both consistent with ADR-0007 ("a prefix, or a named path … a grant never carries an exception") and ADR-0012 (the third shape, Accepted 2026-11-04).

What I verified at 6bc41c1

Claim How Result
§7e writes both roles to a fresh store Throwaway OpenBao 2.7.1 dev store; tasks/store.yml:219-316 extracted verbatim and driven as a play ✅ writes: [tracker, cockpit]; both roles present
A second run writes nothing Same play, second run ✅ changed=0, writes: [], pending: []
Check mode names what a run would write and writes nothing Deleted auth/jwt/role/cockpit, ran --check ✅ pending: ['jwt/role/cockpit: absent, …'], writes: ['cockpit'], changed=0; role still absent afterwards
One drifted role rewrites one role Forced tracker's token_ttl to 777 over the API, re-ran ✅ writes: [tracker]; cockpit's .data digest identical before and after (29fa5300…); tracker back at 600
Both roles carry the TTLs, audience and claims bao read auth/jwt/role/{tracker,cockpit} ✅ 600 / 1200, [ci-tracker] / [ci-cockpit], [openbao], the three claims as specified
The binding is what the ticket asked for JWT method on jwt_validation_pubkeys + forged RS256 tokens ✅ cockpit on push / refs/heads/main / olympus/infra-cockpit → 200, [ci-cockpit, default], ttl 600; pull_request, pull_request_target, refs/heads/feature, tracker's repository, wrong audience → 400 naming the failing claim
tracker's login is untouched Tracker-shaped token, same method ✅ 200 [ci-tracker, default]; reads secret/ci/tracker/* 200, ci/cockpit/* 403; a tracker token asking for the cockpit role → 400
ci-cockpit reads its nine paths and nothing else The policy uploaded to the dev store, 18 paths seeded, a token minted with it ✅ nine named paths 200; services/semaphore/{deploy-ssh,webhook,config-extra}, tofu-state/{semaphore,semaphore-runner}/{apply,plan}, ci/tracker/*, silo/*, homelab/proxmox/runner-token → 403; LIST 403; a write 403
The policy file is what the role writes, under the name the role names §7c of store.yml run against the dev store after deleting ci-cockpit ✅ wrote ci-cockpit from the file; read-back normalised for the trailing newline hashes fc0de6d2…, identical to bao/policies/ci-cockpit.hcl; 61 lines; second run wrote nothing
The vendored pin is the hash of env.sh's own body sed 's/^# vendored from infra-secrets@.*$/# …@/' scripts/env.sh | sha256sum ✅ 5dacf361…, identical to line 2 and to both samples in docs/env-fetch.md
The repo's floor mise exec -- make check; make validate; tofu fmt -check -recursive -diff; ansible-playbook --syntax-check site.yml in bao/service ✅ rc 0 each (env fetch: every case passed., Success! The configuration is valid., the pre-existing Found both group and host with same name: bao warning only)
CI is green at this head GET /commits/6bc41c1/statuses ✅ pr-checks / check (pull_request) → success in 15s
The page's citations resolve ADR-0012 and 0006's supersession note on workshop main; silo/store/semaphore-deploy-state-policy.json on infra-silo main ✅ 0012 Accepted 2026-11-04; 0006 Proposed with the supersession note; the deploy policy grants record [GetObject, PutObject] and lock [+ DeleteObject], exactly as store-layout.md:86-93 describes
Relative links and anchors in the four edited pages extracted and resolved against the tree ✅ 0 broken
No secret material in the diff scan of every added line for key material ✅ only the pin hash and the <uuid> placeholder

Not verified

  • The live store. I hold no store credential. That the policy and the role were written by hand on 2026-11-04, that the policy reads back byte-identical, and that secret/ci/cockpit/deploy-ssh holds a field named CI_SSH_KEY remain the author's claims. What I could do instead: the file the role writes to ci-cockpit is byte-identical to the digest the body quotes for the store's read-back.
  • The cluster. No pct/pvesh on this host. The token, its ACL rows and 143's authorized_keys line are the author's evidence in the PR comment; proxmox-credentials.md's commands are internally consistent with them.
  • The ticket text. Vikunja answers 401 without a token.
  • The consumer's end to end. A real cockpit login has never run, and infra-cockpit at 3d5be46 carries env.map (three store paths, no cockpit row) and pr-checks (which runs make check and reads no store). The body's prediction that a cockpit fetch refuses on the secret/tofu-state/semaphore/apply row holds by inspection: that path is outside ci-cockpit's nine and 403s for the policy.
  • The four declared-but-unminted paths — the three Semaphore secrets and the runner record's deploy key — as the pages and the body now say.

Summary. Standards: 1 finding, worst ADVISORY (the stale ci-tracker description, pre-existing). Spec: 0 findings — no worst finding, because there is none. The change adds a CI identity bound to one repository, one branch and one event, reading nine named paths read-only, holding a Proxmox token confined to two Guests, and it converges, refuses what it says it refuses, and leaves tracker's login as it was — all reproduced by hand at this head. The single advisory is advice and does not move the verdict.

<!-- minos review-loop: repo=olympus/infra-secrets pr=24 head=6bc41c1f95ff1d739bf98028f8de6ce43529f51f round=1/5 axes=standards,spec --> **olympus/infra-secrets · PR #24 · head `6bc41c1` · round 1/5** Recommendation: merge No BLOCKER on either axis. One ADVISORY, and it is pre-existing and outside this change's own edits. The delta since the last reviewed head (`ecc50ff`) is `6bc41c1`, which closes the two advisories raised there: `docs/store-layout.md:84-89` now records the deploy shape as ADR-0012 *Accepted*, and the PR body's *Not verified* bullet now describes `infra-cockpit` as it is. `bao/` and `scripts/` are unchanged since `ea12a3e`; I re-derived their behaviour at this head rather than inheriting any earlier run. ### Standards Repo conventions: `AGENTS.md` §Checks (the floor is `make check`, run by `pr-checks`) and §Decisions (the `workshop` ADRs are read first). No `CONTRIBUTING.md` or coding-standards file exists. **ADVISORY — `docs/store-identity.md:41`, `:120`, `:139`: `ci-tracker`'s reach is described as four paths, and the policy grants five.** `bao/policies/ci-tracker.hcl:26` grants `secret/data/tofu-state/tracker-guest/plan`, and nothing else in that file is uncovered; but the identities row at `:41` lists no `tracker-guest/plan`, `:139` says "`read` on the four paths", and `:120` says CI's plan-key reach is "`tracker-edge` alone". The line is pre-existing (the grant came from `ed2009b`, WR-47, and the page was already out of step at `522ce06`), so it is not charged against this PR — but this PR edits the very table (`:139` gains the `ci-cockpit` row) and the very bullet list (`:120` sits two bullets above the new cockpit one), which is why it is worth one line while you are in the file. *Clears with:* `secret/tofu-state/tracker-guest/plan` added to `:41`, "four" → "five" at `:139`, and `tracker-edge` → the two records at `:120`. Smell baseline: the per-role read-back → compare → write block (`store.yml:262-316`) is the AppRole block's shape (`:196-217`) applied to a list, which is this repository's own idiom, so the duplicated-shape heuristic is suppressed as the repo overrides it. Nothing else in the diff is a baseline smell. ### Spec SC-14 is linked (`vikunja…/tasks/265`); the tracker answers 401 to me and I hold no Vikunja credential, so I judged against the body's restatement plus the workshop ADRs the repo defers to. That limit is recorded under *Not verified*. **Findings: none.** The body's claims that I could reach all reproduced. The two deliberate departures from the ticket's literal text — named paths instead of the `secret/services/semaphore/*` prefix, and the state keys at `…/deploy` — are both narrowing, both argued in `bao/policies/ci-cockpit.hcl:10-16` and in the body, and both consistent with ADR-0007 ("a prefix, or a named path … a grant never carries an exception") and ADR-0012 (the third shape, Accepted 2026-11-04). ### What I verified at `6bc41c1` | Claim | How | Result | | --- | --- | --- | | §7e writes both roles to a fresh store | Throwaway OpenBao 2.7.1 dev store; `tasks/store.yml:219-316` extracted **verbatim** and driven as a play | ✅ `writes: [tracker, cockpit]`; both roles present | | A second run writes nothing | Same play, second run | ✅ `changed=0`, `writes: []`, `pending: []` | | Check mode names what a run would write and writes nothing | Deleted `auth/jwt/role/cockpit`, ran `--check` | ✅ `pending: ['jwt/role/cockpit: absent, …']`, `writes: ['cockpit']`, `changed=0`; role still absent afterwards | | One drifted role rewrites one role | Forced `tracker`'s `token_ttl` to 777 over the API, re-ran | ✅ `writes: [tracker]`; `cockpit`'s `.data` digest identical before and after (`29fa5300…`); tracker back at 600 | | Both roles carry the TTLs, audience and claims | `bao read auth/jwt/role/{tracker,cockpit}` | ✅ 600 / 1200, `[ci-tracker]` / `[ci-cockpit]`, `[openbao]`, the three claims as specified | | The binding is what the ticket asked for | JWT method on `jwt_validation_pubkeys` + forged RS256 tokens | ✅ cockpit on `push` / `refs/heads/main` / `olympus/infra-cockpit` → 200, `[ci-cockpit, default]`, ttl 600; `pull_request`, `pull_request_target`, `refs/heads/feature`, tracker's repository, wrong audience → 400 naming the failing claim | | `tracker`'s login is untouched | Tracker-shaped token, same method | ✅ 200 `[ci-tracker, default]`; reads `secret/ci/tracker/*` 200, `ci/cockpit/*` 403; a tracker token asking for the `cockpit` role → 400 | | `ci-cockpit` reads its nine paths and nothing else | The policy uploaded to the dev store, 18 paths seeded, a token minted with it | ✅ nine named paths 200; `services/semaphore/{deploy-ssh,webhook,config-extra}`, `tofu-state/{semaphore,semaphore-runner}/{apply,plan}`, `ci/tracker/*`, `silo/*`, `homelab/proxmox/runner-token` → 403; `LIST` 403; a write 403 | | The policy file is what the role writes, under the name the role names | §7c of `store.yml` run against the dev store after deleting `ci-cockpit` | ✅ wrote `ci-cockpit` from the file; read-back normalised for the trailing newline hashes `fc0de6d2…`, identical to `bao/policies/ci-cockpit.hcl`; 61 lines; second run wrote nothing | | The vendored pin is the hash of `env.sh`'s own body | `sed 's/^# vendored from infra-secrets@.*$/# …@/' scripts/env.sh \| sha256sum` | ✅ `5dacf361…`, identical to line 2 and to both samples in `docs/env-fetch.md` | | The repo's floor | `mise exec -- make check`; `make validate`; `tofu fmt -check -recursive -diff`; `ansible-playbook --syntax-check site.yml` in `bao/service` | ✅ rc 0 each (`env fetch: every case passed.`, `Success! The configuration is valid.`, the pre-existing `Found both group and host with same name: bao` warning only) | | CI is green at this head | `GET /commits/6bc41c1/statuses` | ✅ `pr-checks / check (pull_request)` → success in 15s | | The page's citations resolve | ADR-0012 and 0006's supersession note on `workshop` `main`; `silo/store/semaphore-deploy-state-policy.json` on `infra-silo` `main` | ✅ 0012 Accepted 2026-11-04; 0006 Proposed *with* the supersession note; the deploy policy grants record `[GetObject, PutObject]` and lock `[+ DeleteObject]`, exactly as `store-layout.md:86-93` describes | | Relative links and anchors in the four edited pages | extracted and resolved against the tree | ✅ 0 broken | | No secret material in the diff | scan of every added line for key material | ✅ only the pin hash and the `<uuid>` placeholder | ### Not verified - **The live store.** I hold no store credential. That the policy and the role were written by hand on 2026-11-04, that the policy reads back byte-identical, and that `secret/ci/cockpit/deploy-ssh` holds a field named `CI_SSH_KEY` remain the author's claims. What I could do instead: the file the role writes to `ci-cockpit` is byte-identical to the digest the body quotes for the store's read-back. - **The cluster.** No `pct`/`pvesh` on this host. The token, its ACL rows and 143's `authorized_keys` line are the author's evidence in the PR comment; `proxmox-credentials.md`'s commands are internally consistent with them. - **The ticket text.** Vikunja answers 401 without a token. - **The consumer's end to end.** A real `cockpit` login has never run, and `infra-cockpit` at `3d5be46` carries `env.map` (three store paths, no `cockpit` row) and `pr-checks` (which runs `make check` and reads no store). The body's prediction that a `cockpit` fetch refuses on the `secret/tofu-state/semaphore/apply` row holds by inspection: that path is outside `ci-cockpit`'s nine and 403s for the policy. - **The four declared-but-unminted paths** — the three Semaphore secrets and the runner record's `deploy` key — as the pages and the body now say. **Summary.** Standards: 1 finding, worst ADVISORY (the stale `ci-tracker` description, pre-existing). Spec: 0 findings — no worst finding, because there is none. The change adds a CI identity bound to one repository, one branch and one event, reading nine named paths read-only, holding a Proxmox token confined to two Guests, and it converges, refuses what it says it refuses, and leaves `tracker`'s login as it was — all reproduced by hand at this head. The single advisory is advice and does not move the verdict.
pit merged commit d25da62ab5 into main 2026-11-04 18:02:53 +00:00
pit deleted branch hermes/sc14-cockpit-ci-login 2026-11-04 18:02:54 +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!24
No description provided.