policy: the runner reads the twelve plan keys the drift audit plans (paperclip:THE-11) #63

Merged
pit merged 3 commits from hermes/THE-11-plan-keys into main 2026-12-02 06:34:34 +00:00
Owner

Summary

THE-11's scheduled drift check (scripts/drift.sh in infra-cockpit) runs on the Semaphore runner as runner: it clones each repository at main and plans it against PROD's record. The runner held only deploy keys, so every plan read would have been refused.

This adds the plan half of the twelve records the check plans. Nothing else moves: no value written, no key minted, no identity added.

Path The record it reads
secret/tofu-state/tracker-guest/plan prod/tracker-guest.tfstate (142)
secret/tofu-state/tracker-edge/plan prod/tracker-edge.tfstate (the tracker's edge)
secret/tofu-state/forge-guest/plan prod/forge-guest.tfstate (141)
secret/tofu-state/forge-runner/plan prod/forge-runner.tfstate (146)
secret/tofu-state/forge-edge/plan prod/forge-edge.tfstate (the forge's edge)
secret/tofu-state/openbao/plan prod/openbao.tfstate (144, this repository's own)
secret/tofu-state/silo/plan prod/silo.tfstate (150, guest and store)
secret/tofu-state/hermes-guest/plan prod/hermes-guest.tfstate (135)
secret/tofu-state/paperclip-guest/plan prod/paperclip-guest.tfstate (153)
secret/tofu-state/semaphore/plan prod/semaphore.tfstate (143)
secret/tofu-state/semaphore-runner/plan prod/semaphore-runner.tfstate (145)
secret/tofu-state/semaphore-projects/plan prod/semaphore-projects.tfstate

Why all twelve

An earlier revision of this change left the twelfth record, openbao, out on the premise that its Stack declares no backend. It does: bao/guest/backend.tf declares the same S3 backend as the rest, with key = "prod/openbao.tfstate", and docs/guest-state.md is the procedure around it. This repository's own pull-request check already reads that plan key as a repository secret (.forgejo/workflows/plan.yml), so a plan reads the record like any other — and without the grant the audit could not read the one Guest the runner deploys, which is this repository's own.

The cockpit's own two Guests (143 and 145) are in the list because the check declares them in its coverage, and the two agent Guests (135 and 153) with them. infra-runner@pve!deploy holds /vms/141, /vms/142, /vms/144, /vms/146 and /vms/150 and none of those four, so today the check names four Guests uncovered; the state read is what it will use on the day the hypervisor's ACL grows.

The grant is the plan shape and nothing more. It reads the record, and could write only the lock beside it; the check passes -lock=false, so it does not even do that. The apply keys stay out of reach, which is what keeps a compromised main from writing a state record from this path.

The two authority pages move with the policy

  • docs/store-identity.md: the runner row becomes Deployer and Planner (the drift audit), its reads cell gains the twelve paths, and its does not reach cell narrows to every other apply key. A Planner row for runner joins the grants table, and the policy-text table's path count moves from forty to fifty-two.
  • docs/store-layout.md: the page said no policy names the projects and runner plan keys; automation-runner.hcl now does, and both rows say so.

Evidence

  • bao policy fmt: Success! Formatted policy, and the file is byte-identical to its output — the parser accepts it and it is already in the canonical form.
  • mise exec -- make check on this branch: rc 0, 591 ok lines, 0 FAILED, across env-check, env-test, host-env-check, host-env-test, plan-test, rotation-test, snapshot-test, prod-test and deploy-test. It reads no store and needs no credential.
  • All twelve plan keys exist in the store, read on 2026-12-02 — field names only, never a value: ten records carry AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY, forge-runner carries FORGE_RUNNER_STATE_* and openbao carries OPENBAO_STATE_*, which is why the policy's comment says the check reads the shape and not the spelling.
  • The fix round re-ran the surface at its own head: bao policy fmt leaves the file byte identical (sha256sum unchanged before and after), tofu fmt -check -recursive -diff rc 0 with no output, make validate rc 0 (Success! The configuration is valid.), and ansible-playbook --syntax-check rc 0 (its pre-existing Found both group and host with same name: bao warning). mise exec -- make check rc 0, 591 ok, 0 FAILED at this head too — the same figures as above. pvesh get /access/acl on the hypervisor was read the same way, which is where the four uncovered Guests below come from.

Merge Danger

Door: two-way. A policy file and two documentation pages. Reverting restores the previous reach at this repository's next deploy.

Blast Radius: read-only, and only on this store. Twelve KV paths gain read for the runner login; nothing gains write. A stolen runner credential can now read the fleet's declared shape, which it already deploys. The policy lands on this repository's own deploy: make prod runs the service role, which writes every file in bao/policies/.

Order: merge before infra-cockpit's drift pull request. That one declares six daily schedules that start the check at 03:15Z; until this policy is in the store, a plan read answers 403 and the check reports error for that repository — the honest reading, not a clean one, but a noisy first report.

Addresses paperclip:THE-11 — https://paperclip.thepit.space/THE/issues/THE-11

## Summary THE-11's scheduled drift check (`scripts/drift.sh` in infra-cockpit) runs on the Semaphore runner as `runner`: it clones each repository at `main` and plans it against PROD's record. The runner held only `deploy` keys, so every plan read would have been refused. This adds the `plan` half of the twelve records the check plans. Nothing else moves: no value written, no key minted, no identity added. | Path | The record it reads | | --- | --- | | `secret/tofu-state/tracker-guest/plan` | `prod/tracker-guest.tfstate` (142) | | `secret/tofu-state/tracker-edge/plan` | `prod/tracker-edge.tfstate` (the tracker's edge) | | `secret/tofu-state/forge-guest/plan` | `prod/forge-guest.tfstate` (141) | | `secret/tofu-state/forge-runner/plan` | `prod/forge-runner.tfstate` (146) | | `secret/tofu-state/forge-edge/plan` | `prod/forge-edge.tfstate` (the forge's edge) | | `secret/tofu-state/openbao/plan` | `prod/openbao.tfstate` (144, this repository's own) | | `secret/tofu-state/silo/plan` | `prod/silo.tfstate` (150, guest and store) | | `secret/tofu-state/hermes-guest/plan` | `prod/hermes-guest.tfstate` (135) | | `secret/tofu-state/paperclip-guest/plan` | `prod/paperclip-guest.tfstate` (153) | | `secret/tofu-state/semaphore/plan` | `prod/semaphore.tfstate` (143) | | `secret/tofu-state/semaphore-runner/plan` | `prod/semaphore-runner.tfstate` (145) | | `secret/tofu-state/semaphore-projects/plan` | `prod/semaphore-projects.tfstate` | ## Why all twelve An earlier revision of this change left the twelfth record, `openbao`, out on the premise that its Stack declares no backend. It does: `bao/guest/backend.tf` declares the same S3 backend as the rest, with `key = "prod/openbao.tfstate"`, and `docs/guest-state.md` is the procedure around it. This repository's own pull-request check already reads that plan key as a repository secret (`.forgejo/workflows/plan.yml`), so a plan reads the record like any other — and without the grant the audit could not read the one Guest the runner deploys, which is this repository's own. The cockpit's own two Guests (143 and 145) are in the list because the check declares them in its coverage, and the two agent Guests (135 and 153) with them. `infra-runner@pve!deploy` holds `/vms/141`, `/vms/142`, `/vms/144`, `/vms/146` and `/vms/150` and none of those four, so today the check names four Guests `uncovered`; the state read is what it will use on the day the hypervisor's ACL grows. The grant is the plan shape and nothing more. It reads the record, and could write only the lock beside it; the check passes `-lock=false`, so it does not even do that. The apply keys stay out of reach, which is what keeps a compromised `main` from writing a state record from this path. ## The two authority pages move with the policy - `docs/store-identity.md`: the `runner` row becomes `Deployer and Planner (the drift audit)`, its reads cell gains the twelve paths, and its `does not reach` cell narrows to every other apply key. A `Planner` row for `runner` joins the grants table, and the policy-text table's path count moves from forty to fifty-two. - `docs/store-layout.md`: the page said no policy names the projects and runner plan keys; `automation-runner.hcl` now does, and both rows say so. ## Evidence - `bao policy fmt`: `Success! Formatted policy`, and the file is byte-identical to its output — the parser accepts it and it is already in the canonical form. - `mise exec -- make check` on this branch: **rc 0**, **591** `ok` lines, **0 FAILED**, across `env-check`, `env-test`, `host-env-check`, `host-env-test`, `plan-test`, `rotation-test`, `snapshot-test`, `prod-test` and `deploy-test`. It reads no store and needs no credential. - All twelve plan keys exist in the store, read on 2026-12-02 — field names only, never a value: ten records carry `AWS_ACCESS_KEY_ID`/`AWS_SECRET_ACCESS_KEY`, `forge-runner` carries `FORGE_RUNNER_STATE_*` and `openbao` carries `OPENBAO_STATE_*`, which is why the policy's comment says the check reads the shape and not the spelling. - The fix round re-ran the surface at its own head: `bao policy fmt` leaves the file byte identical (`sha256sum` unchanged before and after), `tofu fmt -check -recursive -diff` **rc 0** with no output, `make validate` **rc 0** (`Success! The configuration is valid.`), and `ansible-playbook --syntax-check` **rc 0** (its pre-existing `Found both group and host with same name: bao` warning). `mise exec -- make check` **rc 0**, **591** `ok`, **0 FAILED** at this head too — the same figures as above. `pvesh get /access/acl` on the hypervisor was read the same way, which is where the four `uncovered` Guests below come from. ## Merge Danger **Door:** two-way. A policy file and two documentation pages. Reverting restores the previous reach at this repository's next deploy. **Blast Radius:** read-only, and only on this store. Twelve KV paths gain `read` for the runner login; nothing gains write. A stolen runner credential can now read the fleet's declared shape, which it already deploys. The policy lands on this repository's own deploy: `make prod` runs the service role, which writes every file in `bao/policies/`. **Order:** merge before infra-cockpit's drift pull request. That one declares six daily schedules that start the check at 03:15Z; until this policy is in the store, a plan read answers 403 and the check reports `error` for that repository — the honest reading, not a clean one, but a noisy first report. Addresses paperclip:THE-11 — https://paperclip.thepit.space/THE/issues/THE-11
policy: the runner reads the eleven plan keys the drift audit plans (paperclip:THE-11)
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 18s
pr-checks / check (pull_request) Successful in 45s
1f5f08ab8b
THE-11's scheduled drift check runs on the Semaphore runner as `runner`,
clones each repository at `main` and plans it against PROD's record. It held
only deploy keys, so every plan read would have been refused.

Eleven `plan` paths join `automation-runner.hcl`, one per record the audit
plans. The twelfth, `openbao`, stays out: its Guest Stack declares no backend
and keeps its state on the workspace that applied it, so the audit reports
that Guest `uncovered` and no plan reads the record. `silo` keeps its `apply`
grant and gains the plan half beside it.

The grant is the plan shape and nothing more: it reads the record and cannot
write it, and the check passes `-lock=false`, so it does not write the lock
either. The apply half stays out of reach — the fix a drift report leads to is
a pull request, not an apply.

The two authority pages move with it: the identity table gains a Planner row
for `runner` and its `does not reach` cell narrows to every other apply key
plus `openbao/plan`; the layout page stops saying no policy names the projects
and runner plan keys.

Evidence: `bao policy fmt` accepts the file unchanged; `make check` is green
(591 `ok`, 0 FAILED) and reads no store. Every path this file names was read
back from the store as `hermes` on 2026-12-02 before the grant, and the record
left out — `openbao/plan` — exists too; it is the one no plan reads.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
Member

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

**Review started** (round 1/5) on 1f5f08ab8b93e1144c2ccfb86eec0ec66d9c5b4e — reading the diff now.
bot-minos requested changes 2026-12-02 00:45:45 +00:00
Dismissed
bot-minos left a comment

repo: olympus/infra-secrets | pr: 63 | head: 1f5f08ab8b | round: 1/5 | verdict: request-changes

Recommendation: fix

Spec

BLOCKER — the twelfth record is excluded on a premise this repository contradicts. (bao/policies/automation-runner.hcl:322-325)

# One path per record, named rather than a prefix. Eleven of the twelve records
# are here; the twelfth, openbao, has no backend and keeps its state on the
# workspace that applied it, so the audit reports that Guest uncovered
# (infra-secrets docs/guest-state.md) and no plan reads its record.

Every clause of that is contradicted by the tree it ships in:

Claim Evidence
"declares no backend" bao/guest/backend.tf:13-15 — backend "s3" with key = "prod/openbao.tfstate"
"keeps its state on the workspace that applied it" docs/guest-state.md:4-9 — "no longer a file in the checkout … the object prod/openbao.tfstate in the tfstate bucket"
"a path nothing reads" (PR body) .forgejo/workflows/plan.yml:16-19 and :58-59 — every pull request on this repository plans bao/guest with exactly secret/tofu-state/openbao/plan, on a Forgejo runner
the record has no plan key docs/guest-state.md:27,29,30 — openbao-plan-state-policy.json, tofu-plan-state-openbao, secret/tofu-state/openbao/{apply,plan}; docs/store-layout.md:149

So docs/guest-state.md, cited as the authority for the exclusion, says the opposite of what it is cited for.

The consequence is not cosmetic. Policy line 51 asserts "THE-11's audit reads eleven records' state, which is every deployed Guest's declared configuration", while the record inventory is twelve (docs/store-layout.md:137-138, 142-151). As written, the daily check cannot read this repository's own Stack — the one Guest the runner deploys — so on the day infra-cockpit's drift PR merges, every run reports infra-secrets error on a 403. That is the noisy first report this PR's own Order section warns about, made permanent for its own repository. And the false premise is now written into the authority page: docs/store-identity.md:121, both cells.

Smallest fix: add

path "secret/data/tofu-state/openbao/plan" {
  capabilities = ["read"]
}

to the drift-audit block, and correct the prose at automation-runner.hcl:322-325 and :51, the reads and does not reach cells of docs/store-identity.md:121, and the count at :396 (see below — it becomes fifty-two).

Nothing else in the diff asks for more than the spec does: no scope creep found.

Standards

Repo conventions: AGENTS.md (ADRs in olympus/workshop bind; make check is the floor) — no CONTRIBUTING.md or coding-standards file exists. No documented-standard violation found.

ADVISORY — the policy index still says forty. (docs/store-identity.md:396)

read on the forty named paths in the identities table

The policy carries 51 path blocks at 1f5f08a (40 at b8f21fe). The PR claims both authority pages move with the policy; this row in the same page does not. Fix: fifty-one (fifty-two with the blocker's path).

ADVISORY — orphaned parenthetical. (docs/store-identity.md:121)

… every other apply key, and secret/tofu-state/openbao/plan (the silo record's apply key is the one it holds), every other repository's deploy paths …

That parenthetical explained why "every other apply key" excludes silo/apply; the insertion in front of it makes the cell read that openbao/plan is the silo record's apply key. Move it back beside "every other apply key". The blocker's rewrite of this cell covers it, but a reader who fixes only the path will leave this.

Verified

  • mise exec -- make check on a clean worktree at 1f5f08a: rc 0, 591 ok lines, 0 FAILED — the PR's numbers reproduced exactly.
  • mise exec -- bao policy fmt bao/policies/automation-runner.hcl: Success! Formatted policy; git status clean afterwards, so the file was already in canonical form — claim reproduced.
  • Path count 40 → 51; the eleven new paths match the PR's table one-for-one, and each names a record that exists in docs/store-layout.md:137-138, 142-151.
  • git diff --stat b8f21fe...HEAD: three files, 82/3/13 lines — a policy and two pages, no value, no key, no identity. No secret in the diff.
  • Round 1: list_pull_reviews is empty, so there is no earlier blocking finding to re-check.

Could not verify

  • The store read-back ("every path was read back from the store as hermes on 2026-12-02"): bot-minos holds no store identity, and I do not use another identity's credentials. Path existence is taken on the PR's word, cross-checked against the record inventory.
  • The consumer. scripts/drift.sh is not on infra-cockpit's main and infra-cockpit has no open PR, so "the eleven the check plans" cannot be checked against the script. I judged it against the repository's own record inventory instead — which is where the blocker comes from.
  • Whether 135 and 153 are uncovered too. docs/proxmox-credentials.md:48,79,124 name the runner token's reach as 141, 142, 144, 146 and 150 only; the agents' Guests are absent from that page entirely. If so, the PR's coverage note explains two of four unreachable Guests. Not a finding — I cannot read the hypervisor's ACL — but worth a line in the comment, since the audit's first report is the thing this PR exists to make clean.

Summary

Spec: 1 finding, 1 BLOCKER — the openbao exclusion, on a premise bao/guest/backend.tf, docs/guest-state.md and .forgejo/workflows/plan.yml all contradict.
Standards: 2 findings, 0 blockers — worst is the stale "forty named paths" at docs/store-identity.md:396.

Two advisories, below the volume threshold: the recommendation turns on the blocker alone. Both axes otherwise sound — the grant shape, the path spelling, the read-only reach and the accepted-risk note are right.

repo: olympus/infra-secrets | pr: 63 | head: 1f5f08ab8b93e1144c2ccfb86eec0ec66d9c5b4e | round: 1/5 | verdict: request-changes Recommendation: fix ## Spec **BLOCKER — the twelfth record is excluded on a premise this repository contradicts.** (`bao/policies/automation-runner.hcl:322-325`) > `# One path per record, named rather than a prefix. Eleven of the twelve records` > `# are here; the twelfth, openbao, has no backend and keeps its state on the` > `# workspace that applied it, so the audit reports that Guest uncovered` > `# (infra-secrets docs/guest-state.md) and no plan reads its record.` Every clause of that is contradicted by the tree it ships in: | Claim | Evidence | | --- | --- | | "declares no backend" | `bao/guest/backend.tf:13-15` — `backend "s3"` with `key = "prod/openbao.tfstate"` | | "keeps its state on the workspace that applied it" | `docs/guest-state.md:4-9` — "no longer a file in the checkout … the object `prod/openbao.tfstate` in the `tfstate` bucket" | | "a path nothing reads" (PR body) | `.forgejo/workflows/plan.yml:16-19` and `:58-59` — every pull request on this repository plans `bao/guest` with exactly `secret/tofu-state/openbao/plan`, on a Forgejo runner | | the record has no plan key | `docs/guest-state.md:27,29,30` — `openbao-plan-state-policy.json`, `tofu-plan-state-openbao`, `secret/tofu-state/openbao/{apply,plan}`; `docs/store-layout.md:149` | So `docs/guest-state.md`, cited as the authority for the exclusion, says the opposite of what it is cited for. The consequence is not cosmetic. Policy line 51 asserts "THE-11's audit reads eleven records' state, **which is every deployed Guest's declared configuration**", while the record inventory is twelve (`docs/store-layout.md:137-138, 142-151`). As written, the daily check cannot read this repository's own Stack — the one Guest the runner deploys — so on the day infra-cockpit's drift PR merges, every run reports infra-secrets `error` on a 403. That is the noisy first report this PR's own *Order* section warns about, made permanent for its own repository. And the false premise is now written into the authority page: `docs/store-identity.md:121`, both cells. Smallest fix: add ```hcl path "secret/data/tofu-state/openbao/plan" { capabilities = ["read"] } ``` to the drift-audit block, and correct the prose at `automation-runner.hcl:322-325` and `:51`, the reads and `does not reach` cells of `docs/store-identity.md:121`, and the count at `:396` (see below — it becomes fifty-two). Nothing else in the diff asks for more than the spec does: no scope creep found. ## Standards Repo conventions: `AGENTS.md` (ADRs in `olympus/workshop` bind; `make check` is the floor) — no `CONTRIBUTING.md` or coding-standards file exists. No documented-standard violation found. **ADVISORY — the policy index still says forty.** (`docs/store-identity.md:396`) > `read on the forty named paths in the identities table` The policy carries 51 `path` blocks at `1f5f08a` (40 at `b8f21fe`). The PR claims both authority pages move with the policy; this row in the same page does not. Fix: fifty-one (fifty-two with the blocker's path). **ADVISORY — orphaned parenthetical.** (`docs/store-identity.md:121`) > `… every other apply key, and secret/tofu-state/openbao/plan (the silo record's apply key is the one it holds), every other repository's deploy paths …` That parenthetical explained why "every other apply key" excludes `silo/apply`; the insertion in front of it makes the cell read that `openbao/plan` *is* the silo record's apply key. Move it back beside "every other apply key". The blocker's rewrite of this cell covers it, but a reader who fixes only the path will leave this. ## Verified - `mise exec -- make check` on a clean worktree at `1f5f08a`: **rc 0**, **591** `ok` lines, **0 FAILED** — the PR's numbers reproduced exactly. - `mise exec -- bao policy fmt bao/policies/automation-runner.hcl`: `Success! Formatted policy`; `git status` clean afterwards, so the file was already in canonical form — claim reproduced. - Path count 40 → 51; the eleven new paths match the PR's table one-for-one, and each names a record that exists in `docs/store-layout.md:137-138, 142-151`. - `git diff --stat b8f21fe...HEAD`: three files, 82/3/13 lines — a policy and two pages, no value, no key, no identity. No secret in the diff. - Round 1: `list_pull_reviews` is empty, so there is no earlier blocking finding to re-check. ## Could not verify - **The store read-back** ("every path was read back from the store as `hermes` on 2026-12-02"): bot-minos holds no store identity, and I do not use another identity's credentials. Path existence is taken on the PR's word, cross-checked against the record inventory. - **The consumer.** `scripts/drift.sh` is not on infra-cockpit's `main` and infra-cockpit has no open PR, so "the eleven the check plans" cannot be checked against the script. I judged it against the repository's own record inventory instead — which is where the blocker comes from. - **Whether 135 and 153 are `uncovered` too.** `docs/proxmox-credentials.md:48,79,124` name the runner token's reach as 141, 142, 144, 146 and 150 only; the agents' Guests are absent from that page entirely. If so, the PR's coverage note explains two of four unreachable Guests. Not a finding — I cannot read the hypervisor's ACL — but worth a line in the comment, since the audit's first report is the thing this PR exists to make clean. ## Summary Spec: **1 finding, 1 BLOCKER** — the `openbao` exclusion, on a premise `bao/guest/backend.tf`, `docs/guest-state.md` and `.forgejo/workflows/plan.yml` all contradict. Standards: **2 findings, 0 blockers** — worst is the stale "forty named paths" at `docs/store-identity.md:396`. Two advisories, below the volume threshold: the recommendation turns on the blocker alone. Both axes otherwise sound — the grant shape, the path spelling, the read-only reach and the accepted-risk note are right.
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.
bot-efesto changed title from policy: the runner reads the eleven plan keys the drift audit plans (paperclip:THE-11) to policy: the runner reads the twelve plan keys the drift audit plans (paperclip:THE-11) 2026-12-02 00:49:33 +00:00
policy: the drift audit reads the openbao record too (paperclip:THE-11)
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 17s
pr-checks / check (pull_request) Successful in 43s
7627c30f97
The twelfth record was left out on a premise this repository contradicts:
`bao/guest/backend.tf` declares the S3 backend for `prod/openbao.tfstate`, and
`.forgejo/workflows/plan.yml` already plans `bao/guest` against
`secret/tofu-state/openbao/plan` on every pull request. Without the grant the
audit cannot read the one Guest the runner deploys — this repository's own —
so its first report would carry a permanent 403 for infra-secrets.

So the block carries all twelve plan keys, and the prose that counted eleven
moves with it: the policy's header and accepted-risk note, the section banner
and its two paragraphs, the reads and `does not reach` cells of the `runner`
row and the `Planner` row in `docs/store-identity.md`, and the count in
`docs/store-layout.md`. The policy-text table's path count reads fifty-two
(forty at main, fifty-one on the branch before this commit).

Measured, not inherited: all twelve plan keys exist in the store, and their
field names are ten records on `AWS_ACCESS_KEY_ID`/`AWS_SECRET_ACCESS_KEY`,
`forge-runner` on `FORGE_RUNNER_STATE_*` and `openbao` on `OPENBAO_STATE_*` —
which is what the policy's comment about reading the shape already claimed.
policy: the uncovered Guests are four, not two (paperclip:THE-11)
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 18s
pr-checks / check (pull_request) Successful in 43s
82262e7643
Review round 1's *Could not verify* note asked for a line about the Guests the
runner's Proxmox token cannot reach, on the ground that the audit's first report
is the thing this change exists to make clean. Read off the hypervisor's ACL
rather than inherited: `infra-runner@pve!deploy` holds `/vms/141`, `/vms/142`,
`/vms/144`, `/vms/146` and `/vms/150`. So 143 and 145 are not the only two
Guests outside the reach — the agent Guests 135 and 153 are too, and the first
report will read `uncovered` for four.

The grant does not change: the plan key is the state read, and it is theirs on
the day each ACL grows. Comment only, no path added or removed.
Member

Round 1 fix — 1f5f08a → 7627c30 … 82262e7 on hermes/THE-11-plan-keys, two new commits, no force-push.

The dispatch's fixed text says "blocking findings"; this report carried one BLOCKER and two ADVISORY, recommendation fix. All three are worked below. I disagreed with none of them. The first finding in the table is the blocker; the last two rows are the advisories.

Spec — the blocker

You were right, and every clause of the excluded-record comment was contradicted by the tree it shipped in. I took the fix you prescribed, and the path you named:

Finding Change Where
BLOCKER: openbao excluded on a premise the repo contradicts path "secret/data/tofu-state/openbao/plan" { capabilities = ["read"] } added to the drift-audit block — placed after forge-edge/plan, the same record order the deploy grants above use bao/policies/automation-runner.hcl, 7627c30
" header (:11) and accepted-risk note (:51): eleven → twelve records same file, 7627c30
" section banner and both paragraphs rewritten: openbao's Stack declares the same S3 backend (bao/guest/backend.tf, key = "prod/openbao.tfstate"), and this repository's own pull-request check already reads that plan key (.forgejo/workflows/plan.yml), so a plan reads the record like any other same file, 7627c30
" docs/store-identity.md:121 — reads cell now carries openbao in the brace list and says "all twelve records it plans"; does not reach cell drops secret/tofu-state/openbao/plan docs/store-identity.md, 7627c30
" docs/store-identity.md:140 — the Planner row for runner reads twelve plan keys same page, 7627c30
" docs/store-layout.md:132 — "grants all twelve plan keys" docs/store-layout.md, 7627c30
the PR's own count, in the document a merger reads title, Summary, the path table (the openbao row added), the Why section (rewritten to record the correction), the two-page bullet, Blast Radius, Evidence PATCH /pulls/63, read back equal — no commit; the body is not in the diff

Standards — the two advisories

Finding Change Where
ADVISORY: "read on the forty named paths" docs/store-identity.md:396 now reads fifty-two — 40 at b8f21fe, 51 at 1f5f08a, 52 at 7627c30 7627c30
ADVISORY: orphaned parenthetical "The silo record's apply key is the one it holds" is back beside "every other apply key", where it explains that exclusion and nothing else 7627c30

One thing outside your three findings

Your Could not verify note asked for a line about the Guests the runner's Proxmox token cannot reach, since the audit's first report is what this change exists to make clean. I measured it instead of guessing: pvesh get /access/acl on the hypervisor shows infra-runner@pve!deploy holding /vms/141, /vms/142, /vms/144, /vms/146 and /vms/150. So 143 and 145 are not the only two outside that reach — the agent Guests 135 and 153 are too, and the first report will read uncovered for four. 82262e7 says so in the block's comment and in the PR body. No path changed: the plan key is the state read and it is theirs the day each ACL grows.

Verified at 82262e7

Run through the declared toolchain (mise exec --), never a bare entry point:

Command Output
mise exec -- make check rc 0, 591 ok lines, 0 FAILED on all nine suites — your numbers reproduced at this head
mise exec -- bao policy fmt bao/policies/automation-runner.hcl Success! Formatted policy; sha256sum -c against the pre-run hash → OK, so the file is already canonical
mise exec -- tofu fmt -check -recursive -diff rc 0, no output
mise exec -- make validate rc 0, Success! The configuration is valid.
mise exec -- ansible-playbook -i inventories/prod/hosts --syntax-check site.yml (from bao/service) rc 0, with the pre-existing [WARNING]: Found both group and host with same name: bao
grep -c '^path ' bao/policies/automation-runner.hcl 52
render check over both edited pages 4 and 17 tables, 0 ragged; the four new claims PRESENT, both stale strings ABSENT
scripts/docs-check.py . docs/*.md docs check: 1 problem(s) — the one is pre-existing and untouched: MISSING FILE proxmox-credentials.md: /THE/issues/THE-5, the documented limit of a repo-tree checker on a cross-project link that is on main too

CI at 82262e7: pr-checks / check (pull_request) success (43s) and plan / guest-plan-check (pull_request_target) success (18s), read from GET /commits/<sha>/status.

Your Could not verify list, re-read

  • The store read-back — measured now, not inherited. I read the twelve plan keys from inside Guest 144, field names only and never a value. All twelve exist; ten carry AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY, forge-runner carries FORGE_RUNNER_STATE_*, and openbao carries OPENBAO_STATE_*. That last one is why the "read the shape, not the spelling" paragraph now names both exceptions instead of one, and why the body's store bullet is restated.
  • The consumer. scripts/drift.sh is still not on infra-cockpit's main, so "the twelve the check plans" is still unverified against the script; your read stands and I have not restated it as mine. What the tree does answer is that a plan reads the record: .forgejo/workflows/plan.yml plans bao/guest with secret/tofu-state/openbao/plan on every pull request.
  • Whether 135 and 153 are uncovered too. Yes — see above; measured, and written down.

Nothing was left unfixed, and no finding needs a decision. The label moves to review/needs-review.

**Round 1 fix** — `1f5f08a` → `7627c30` … `82262e7` on `hermes/THE-11-plan-keys`, two new commits, no force-push. The dispatch's fixed text says "blocking findings"; this report carried **one BLOCKER and two ADVISORY**, recommendation `fix`. All three are worked below. I disagreed with none of them. The first finding in the table is the blocker; the last two rows are the advisories. ## Spec — the blocker You were right, and every clause of the excluded-record comment was contradicted by the tree it shipped in. I took the fix you prescribed, and the path you named: | Finding | Change | Where | | --- | --- | --- | | BLOCKER: `openbao` excluded on a premise the repo contradicts | `path "secret/data/tofu-state/openbao/plan" { capabilities = ["read"] }` added to the drift-audit block — placed after `forge-edge/plan`, the same record order the deploy grants above use | `bao/policies/automation-runner.hcl`, `7627c30` | | " | header (`:11`) and accepted-risk note (`:51`): eleven → twelve records | same file, `7627c30` | | " | section banner and both paragraphs rewritten: `openbao`'s Stack declares the same S3 backend (`bao/guest/backend.tf`, `key = "prod/openbao.tfstate"`), and this repository's own pull-request check already reads that plan key (`.forgejo/workflows/plan.yml`), so a plan reads the record like any other | same file, `7627c30` | | " | `docs/store-identity.md:121` — reads cell now carries `openbao` in the brace list and says "all twelve records it plans"; `does not reach` cell drops `secret/tofu-state/openbao/plan` | `docs/store-identity.md`, `7627c30` | | " | `docs/store-identity.md:140` — the `Planner` row for `runner` reads twelve plan keys | same page, `7627c30` | | " | `docs/store-layout.md:132` — "grants all twelve plan keys" | `docs/store-layout.md`, `7627c30` | | the PR's own count, in the document a merger reads | title, Summary, the path table (the `openbao` row added), the *Why* section (rewritten to record the correction), the two-page bullet, *Blast Radius*, *Evidence* | `PATCH /pulls/63`, read back equal — **no commit; the body is not in the diff** | ## Standards — the two advisories | Finding | Change | Where | | --- | --- | --- | | ADVISORY: "read on the forty named paths" | `docs/store-identity.md:396` now reads **fifty-two** — 40 at `b8f21fe`, 51 at `1f5f08a`, 52 at `7627c30` | `7627c30` | | ADVISORY: orphaned parenthetical | "The silo record's apply key is the one it holds" is back beside "every other apply key", where it explains that exclusion and nothing else | `7627c30` | ## One thing outside your three findings Your *Could not verify* note asked for a line about the Guests the runner's Proxmox token cannot reach, since the audit's first report is what this change exists to make clean. I measured it instead of guessing: `pvesh get /access/acl` on the hypervisor shows `infra-runner@pve!deploy` holding `/vms/141`, `/vms/142`, `/vms/144`, `/vms/146` and `/vms/150`. So 143 and 145 are **not** the only two outside that reach — the agent Guests **135 and 153** are too, and the first report will read `uncovered` for four. `82262e7` says so in the block's comment and in the PR body. No path changed: the plan key is the state read and it is theirs the day each ACL grows. ## Verified at `82262e7` Run through the declared toolchain (`mise exec --`), never a bare entry point: | Command | Output | | --- | --- | | `mise exec -- make check` | **rc 0**, **591** `ok` lines, **0 FAILED** on all nine suites — your numbers reproduced at this head | | `mise exec -- bao policy fmt bao/policies/automation-runner.hcl` | `Success! Formatted policy`; `sha256sum -c` against the pre-run hash → `OK`, so the file is already canonical | | `mise exec -- tofu fmt -check -recursive -diff` | **rc 0**, no output | | `mise exec -- make validate` | **rc 0**, `Success! The configuration is valid.` | | `mise exec -- ansible-playbook -i inventories/prod/hosts --syntax-check site.yml` (from `bao/service`) | **rc 0**, with the pre-existing `[WARNING]: Found both group and host with same name: bao` | | `grep -c '^path ' bao/policies/automation-runner.hcl` | **52** | | render check over both edited pages | 4 and 17 tables, **0 ragged**; the four new claims PRESENT, both stale strings ABSENT | | `scripts/docs-check.py . docs/*.md` | `docs check: 1 problem(s)` — the one is pre-existing and untouched: `MISSING FILE proxmox-credentials.md: /THE/issues/THE-5`, the documented limit of a repo-tree checker on a cross-project link that is on `main` too | **CI at `82262e7`:** `pr-checks / check (pull_request)` **success** (43s) and `plan / guest-plan-check (pull_request_target)` **success** (18s), read from `GET /commits/<sha>/status`. ## Your *Could not verify* list, re-read - **The store read-back — measured now, not inherited.** I read the twelve plan keys from inside Guest 144, field names only and never a value. All twelve exist; ten carry `AWS_ACCESS_KEY_ID`/`AWS_SECRET_ACCESS_KEY`, `forge-runner` carries `FORGE_RUNNER_STATE_*`, and `openbao` carries `OPENBAO_STATE_*`. That last one is why the "read the shape, not the spelling" paragraph now names both exceptions instead of one, and why the body's store bullet is restated. - **The consumer.** `scripts/drift.sh` is still not on infra-cockpit's `main`, so "the twelve the check plans" is still unverified against the script; your read stands and I have not restated it as mine. What the tree does answer is that a plan reads the record: `.forgejo/workflows/plan.yml` plans `bao/guest` with `secret/tofu-state/openbao/plan` on every pull request. - **Whether 135 and 153 are `uncovered` too.** Yes — see above; measured, and written down. Nothing was left unfixed, and no finding needs a decision. The label moves to `review/needs-review`.
Member

Review started (round 2/5) on 82262e7643 — reading the diff now.

**Review started** (round 2/5) on 82262e7643aad5cb74fe16b0409cb194a10ca28f — reading the diff now.
bot-minos approved these changes 2026-12-02 00:57:27 +00:00
bot-minos left a comment

repo: olympus/infra-secrets | pr: 63 | head: 82262e7643 | round: 2/5 | verdict: merge

Recommendation: merge

Round 1 (1f5f08a) carried one BLOCKER and two ADVISORY. All three are re-driven below at this head. The delta since that review is 1f5f08a..82262e7 (7627c30, 82262e7), three files, 27+/18−, and every hunk maps to a round-1 finding or to the line round 1's Could not verify note asked for. Nothing new is chargeable.

Round 1's blocker — resolved

The openbao record was excluded on a premise the repository contradicted. Every site of that claim now reads the corrected fact:

Site At this head What it says
the grant bao/policies/automation-runner.hcl:353-355 path "secret/data/tofu-state/openbao/plan" { capabilities = ["read"] }
the exclusion paragraph bao/policies/automation-runner.hcl:322-327 "All twelve records are here. openbao … declares the same S3 backend"
header, accepted risk bao/policies/automation-runner.hcl:11, :51 eleven → twelve
identities row, both cells docs/store-identity.md:121 openbao in the brace list; the does not reach cell drops it
grants table docs/store-identity.md:140 a Planner row for runner, the twelve plan keys
layout count docs/store-layout.md:132 "grants all twelve plan keys"

The premise is true, driven rather than read: bao/guest/backend.tf:13-15 declares backend "s3" with key = "prod/openbao.tfstate"; .forgejo/workflows/plan.yml:17,58-59 plans bao/guest with secrets.OPENBAO_PLAN_STATE_*; and plan / guest-plan-check is success at this head — a check AGENTS.md makes red when it cannot read, so the record is readable with that plan key. The new grant is also strictly weaker than the openbao/deploy key the runner already holds.

Round 1's advisories — both retired

  • "forty named paths" → docs/store-identity.md:396 now says fifty-two, and grep -c '^path ' over the policy answers 52.
  • The orphaned parenthetical is back beside "every other apply key" (docs/store-identity.md:121), where it explains the silo/apply exclusion again.

Standards — 0 findings

Repo rules read at the head: AGENTS.md (make check the floor, org ADRs bind) and olympus/workshop docs/adr/ at origin/main — 0006, 0012 and 0013 read in full.

  • The grant is the Planner shape and nothing wider. ADR-0013 scopes that role to "the plan-shaped state key of each Stack it plans, read": twelve named paths, each under secret/data/, no prefix, no list, no write — and narrower than the plan key a Stack may hold (ADR-0006/0012), because the store side carries read alone.
  • The counts agree across artifacts. The policy's twelve */plan paths and the brace list at docs/store-identity.md:121 are the same set — 12 and 12, symmetric difference empty — and 52 path blocks match "fifty-two".
  • No stale number survives. A whole-tree census for "eleven" and "forty" finds nothing; the two remaining "eleven" lines (docs/store-identity.md:67,77) are the SC-16 history about the forge's paths.
  • bao policy fmt leaves the file byte-identical (sha256sum -c → OK, git status clean), so it is canonical HCL.

Spec — 0 findings

Spec sources, in the order used: the PR description (re-read at post time, unchanged), then paperclip:THE-11 read live — issue, plan document, and its two comments (GET /api/issues/<id>/comments, http 200, entries=2).

  • THE-11 §6 asks for "12 state plan pairs … automation-runner, widened by this track to the plan paths". Delivered exactly: twelve records, the plan half only, no value written, no key minted, no identity added.
  • §2's "no lock is taken" and "the check changes nothing" are matched by a read-only store grant.
  • The twelfth record is a correction the ticket itself does not carry; the spec count stands at zero because the substance is right and evidenced above, not because the ticket happened to say so.

Named, not charged

  • THE-11's own documents still say eleven. Its plan document (§5 "uncovered — see below", "11 plans and 8 service rehearsals") and its 2026-12-02T00:29:35Z hand-off comment ("infra-secrets: 11 plan-key reads") restate the premise this change corrects. The ticket lives outside this repo and the body does not claim to edit it — but one line there, so the next round does not inherit "11", is worth the minute.
  • The runner holds two roles. Deployer and Planner on one identity is the ticket's disclosed follow-up (§6: a dedicated drift AppRole), and ADR-0013 grants a role per row — both rows are written at docs/store-identity.md:121 and :140. Not this change's to resolve.

Verified

Probe Result
mise exec -- make check at 82262e7 rc 0, 591 ok, 0 FAILED — the PR's figures reproduced
mise exec -- bao policy fmt Success!, file byte-identical (sha256sum -c OK)
grep -c '^path ' 52, matching docs/store-identity.md:396
plan-path set vs the brace list 12 = 12, symmetric difference empty
docs-check.py (workshop's copy, run from the head worktree) all 3 assertions hold
table render, both pages 21 tables, 0 ragged rows
commit statuses at this head pr-checks / check success (43s), plan / guest-plan-check success (18s)
head re-read after the wave ls-remote refs/pull/63/head = 82262e7

Could not verify

  • The store read-back ("all twelve plan keys exist, read on 2026-12-02"): bot-minos holds no store identity and I used none. Cross-checked against the record inventory at docs/store-layout.md:142-151, which lists all twelve.
  • The consumer. scripts/drift.sh is not on infra-cockpit's main (4fe794d) and infra-cockpit has no open PR, so "the check names four Guests uncovered" is forward-looking. Its premise is documented, not inferred: docs/proxmox-credentials.md:708 records infra-runner@pve!deploy narrowed to 141, 142, 144, 146 and 150, and the same identities row's does not reach cell says "any Guest outside" those five.

Charter

A policy grant in the secrets store would sit under the charter's tier-1 clause. This dispatch puts the hold on the board and the review state with the findings, so I applied that narrowing: the approval this review carries is the findings', and merging remains the board's gate. The board's card for this work, read live, is paperclip:THE-11 (status blocked), waiting on paperclip:THE-114, whose hand-off comment names both PRs — so no new escalation.

Summary

Spec: 0 findings, 0 blockers — worst: none.
Standards: 0 findings, 0 blockers — worst: none.

Round 1's blocker and both advisories are cleared at 82262e7, and nothing in the delta is newly chargeable. The recommendation is merge.

<!-- minos review-loop: repo=olympus/infra-secrets pr=63 head=82262e7643aad5cb74fe16b0409cb194a10ca28f round=2/5 axes=standards,spec --> repo: olympus/infra-secrets | pr: 63 | head: 82262e7643aad5cb74fe16b0409cb194a10ca28f | round: 2/5 | verdict: merge Recommendation: merge Round 1 (`1f5f08a`) carried one BLOCKER and two ADVISORY. All three are re-driven below at this head. The delta since that review is `1f5f08a..82262e7` (`7627c30`, `82262e7`), three files, 27+/18−, and every hunk maps to a round-1 finding or to the line round 1's *Could not verify* note asked for. Nothing new is chargeable. ## Round 1's blocker — resolved **The `openbao` record was excluded on a premise the repository contradicted.** Every site of that claim now reads the corrected fact: | Site | At this head | What it says | | --- | --- | --- | | the grant | `bao/policies/automation-runner.hcl:353-355` | `path "secret/data/tofu-state/openbao/plan" { capabilities = ["read"] }` | | the exclusion paragraph | `bao/policies/automation-runner.hcl:322-327` | "All twelve records are here. `openbao` … declares the same S3 backend" | | header, accepted risk | `bao/policies/automation-runner.hcl:11`, `:51` | eleven → twelve | | identities row, both cells | `docs/store-identity.md:121` | `openbao` in the brace list; the `does not reach` cell drops it | | grants table | `docs/store-identity.md:140` | a Planner row for `runner`, the twelve plan keys | | layout count | `docs/store-layout.md:132` | "grants all twelve plan keys" | The premise is true, driven rather than read: `bao/guest/backend.tf:13-15` declares `backend "s3"` with `key = "prod/openbao.tfstate"`; `.forgejo/workflows/plan.yml:17,58-59` plans `bao/guest` with `secrets.OPENBAO_PLAN_STATE_*`; and `plan / guest-plan-check` is **success** at this head — a check `AGENTS.md` makes red when it cannot read, so the record is readable with that plan key. The new grant is also strictly weaker than the `openbao/deploy` key the runner already holds. ## Round 1's advisories — both retired - "forty named paths" → `docs/store-identity.md:396` now says **fifty-two**, and `grep -c '^path '` over the policy answers **52**. - The orphaned parenthetical is back beside "every other apply key" (`docs/store-identity.md:121`), where it explains the `silo/apply` exclusion again. ## Standards — 0 findings Repo rules read at the head: `AGENTS.md` (`make check` the floor, org ADRs bind) and `olympus/workshop` `docs/adr/` at `origin/main` — 0006, 0012 and 0013 read in full. - **The grant is the Planner shape and nothing wider.** ADR-0013 scopes that role to "the plan-shaped state key of each Stack it plans, read": twelve named paths, each under `secret/data/`, no prefix, no `list`, no write — and narrower than the plan key a Stack may hold (ADR-0006/0012), because the store side carries `read` alone. - **The counts agree across artifacts.** The policy's twelve `*/plan` paths and the brace list at `docs/store-identity.md:121` are the same set — 12 and 12, symmetric difference empty — and 52 path blocks match "fifty-two". - **No stale number survives.** A whole-tree census for "eleven" and "forty" finds nothing; the two remaining "eleven" lines (`docs/store-identity.md:67,77`) are the SC-16 history about the forge's paths. - `bao policy fmt` leaves the file byte-identical (`sha256sum -c` → OK, `git status` clean), so it is canonical HCL. ## Spec — 0 findings Spec sources, in the order used: the PR description (re-read at post time, unchanged), then `paperclip:THE-11` read live — issue, plan document, and its two comments (`GET /api/issues/<id>/comments`, http 200, entries=2). - THE-11 §6 asks for "12 state plan pairs … `automation-runner`, widened by this track to the `plan` paths". Delivered exactly: twelve records, the plan half only, no value written, no key minted, no identity added. - §2's "no lock is taken" and "the check changes nothing" are matched by a `read`-only store grant. - The twelfth record is a correction the ticket itself does not carry; the spec count stands at zero because the substance is right and evidenced above, not because the ticket happened to say so. ## Named, not charged - **THE-11's own documents still say eleven.** Its plan document (§5 "uncovered — see below", "11 plans and 8 service rehearsals") and its 2026-12-02T00:29:35Z hand-off comment ("infra-secrets: 11 plan-key reads") restate the premise this change corrects. The ticket lives outside this repo and the body does not claim to edit it — but one line there, so the next round does not inherit "11", is worth the minute. - **The runner holds two roles.** Deployer and Planner on one identity is the ticket's disclosed follow-up (§6: a dedicated `drift` AppRole), and ADR-0013 grants a role per row — both rows are written at `docs/store-identity.md:121` and `:140`. Not this change's to resolve. ## Verified | Probe | Result | | --- | --- | | `mise exec -- make check` at `82262e7` | rc 0, **591** `ok`, **0 FAILED** — the PR's figures reproduced | | `mise exec -- bao policy fmt` | `Success!`, file byte-identical (`sha256sum -c` OK) | | `grep -c '^path '` | 52, matching `docs/store-identity.md:396` | | plan-path set vs the brace list | 12 = 12, symmetric difference empty | | `docs-check.py` (workshop's copy, run from the head worktree) | all 3 assertions hold | | table render, both pages | 21 tables, 0 ragged rows | | commit statuses at this head | `pr-checks / check` success (43s), `plan / guest-plan-check` success (18s) | | head re-read after the wave | `ls-remote refs/pull/63/head` = `82262e7` | ## Could not verify - **The store read-back** ("all twelve plan keys exist, read on 2026-12-02"): bot-minos holds no store identity and I used none. Cross-checked against the record inventory at `docs/store-layout.md:142-151`, which lists all twelve. - **The consumer.** `scripts/drift.sh` is not on infra-cockpit's `main` (`4fe794d`) and infra-cockpit has no open PR, so "the check names four Guests `uncovered`" is forward-looking. Its premise is documented, not inferred: `docs/proxmox-credentials.md:708` records `infra-runner@pve!deploy` narrowed to 141, 142, 144, 146 and 150, and the same identities row's `does not reach` cell says "any Guest outside" those five. ## Charter A policy grant in the secrets store would sit under the charter's tier-1 clause. This dispatch puts the hold on the board and the review state with the findings, so I applied that narrowing: the approval this review carries is the findings', and merging remains the board's gate. The board's card for this work, read live, is **paperclip:THE-11** (status `blocked`), waiting on **paperclip:THE-114**, whose hand-off comment names both PRs — so no new escalation. ## Summary Spec: **0 findings, 0 blockers** — worst: none. Standards: **0 findings, 0 blockers** — worst: none. Round 1's blocker and both advisories are cleared at `82262e7`, and nothing in the delta is newly chargeable. The recommendation is merge.
pit merged commit 7829c8f0ec into main 2026-12-02 06:34:34 +00:00
pit deleted branch hermes/THE-11-plan-keys 2026-12-02 06:34:34 +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!63
No description provided.