The state keys' own policies, and the environment fetched from the store (SL-13, SL-14) #11

Merged
pit merged 19 commits from wr39/integration into main 2026-10-28 12:58:43 +00:00
Owner

Summary

Two tickets on one branch: the state keys' policies and their guard (SL-13), and this repo reading its environment from the store with the vault gone (SL-14). Both are WR-39's share for infra-silo.

SL-13 — the state keys

  • silo/store/semaphore-state-policy.json moved in from infra-semaphore, and the four missing plan-policy files authored (silo, semaphore, tracker-guest, tracker-edge), each copying forge-guest-plan-state-policy.json's shape: read the record, write only the lock beside it.
  • §7 of runbook 0003 carries every record and both shapes (11 rows).
  • make key-audit + make key-audit-test: a key's stored policy against the file it was minted from, through mcli and the MinIO admin API. Separate from validate, which stays credential-free; a tofu* key that matches no file reds, a key minted outside silo/store/*.json is named as out of scope.

SL-14 — the environment

  • scripts/env.sh vendored from infra-secrets@137870c6…; env.map names secret/silo/{provisioner,root,service-account} and secret/tofu-state/silo/apply.
  • make env, env-check, env-test, and check (env-check env-test fmt-check validate) as the floor; plan, guest, store-plan, store, verify, ssh and the service targets refuse by name before composing a command.
  • age 1.3.2 and openbao 2.7.1 pinned and locked.
  • The vault and vault-pass are deleted; the role reads SILO_ROOT_PASSWORD from the environment.
  • pool_id = "prod" on the guest object and on the container, in ignore_changes so the state PROD recorded without it is not planned away.
  • bao/recipients/hermes.role_id is committed, so the Admin agent — the fetch's other class — logs in by AppRole, not only the Operator's userpass.

Evidence

  • env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY make check → exit 0, 45 assertions (2 env-check + 43 env-test, the Admin agent's fetch and the pool's ignore_changes among them), through mise exec --, which is the repo's Toolchain rule — a bare make here answers tofu: command not found.
  • make env ACTOR=pit against the live store: 4 paths, 8 names, .env 0600, first line # fetched 2026-10-28T12:02:42Z actor=pit store=https://10.12.0.144:8200.
  • make key-audit against the live store → 16 keys, 15 audited, 1 out of scope (store-app, minted by the Stack from Terraform), 0 failing; the twelve state records were minted and each pair answers 200 on its own object and 403 on another's.
  • make key-audit-test → 32 cases pass, no store and no credential.
  • git grep pool_id → the two variables.tf declarations, the container's attribute and its ignore_changes, and the four assertions that pin them; git grep -nE 'vault-pass|ANSIBLE_VAULT_PASSWORD|\.vault\.yml' → the fetch's own test file only.
  • make validate → Success! on a checkout with no recorded backend.

Merge Danger

  • This PR is second to olympus/infra-secrets#12. scripts/env.sh is vendored from that PR's wr39/integration and README.md links the interface page it adds, so docs/env-fetch.md is a 404 at main until #12 lands: merge that one first.
  • The pool is not reconciled on the running Guest. pool_id is in ignore_changes because PROD's recorded state carries none: a Guest this configuration creates records prod, and guest 150 keeps the membership a hand join gave it. A later change to the pool is a state adoption, not a plan.
  • The vault is deleted here: any checkout that has not run make env cannot run the service targets. The four values it needs are already in the store.
  • check includes validate, which needs .env and the store in a checkout that has already applied (a fresh clone needs neither).
## Summary Two tickets on one branch: the state keys' policies and their guard (SL-13), and this repo reading its environment from the store with the vault gone (SL-14). Both are WR-39's share for infra-silo. **SL-13 — the state keys** - `silo/store/semaphore-state-policy.json` moved in from `infra-semaphore`, and the four missing plan-policy files authored (`silo`, `semaphore`, `tracker-guest`, `tracker-edge`), each copying `forge-guest-plan-state-policy.json`'s shape: read the record, write only the lock beside it. - §7 of runbook 0003 carries every record and both shapes (11 rows). - `make key-audit` + `make key-audit-test`: a key's stored policy against the file it was minted from, through `mcli` and the MinIO admin API. Separate from `validate`, which stays credential-free; a `tofu*` key that matches no file reds, a key minted outside `silo/store/*.json` is named as out of scope. **SL-14 — the environment** - `scripts/env.sh` vendored from `infra-secrets@137870c6…`; `env.map` names `secret/silo/{provisioner,root,service-account}` and `secret/tofu-state/silo/apply`. - `make env`, `env-check`, `env-test`, and `check` (`env-check env-test fmt-check validate`) as the floor; `plan`, `guest`, `store-plan`, `store`, `verify`, `ssh` and the service targets refuse by name before composing a command. - `age 1.3.2` and `openbao 2.7.1` pinned and locked. - The vault and `vault-pass` are deleted; the role reads `SILO_ROOT_PASSWORD` from the environment. - `pool_id = "prod"` on the guest object and on the container, in `ignore_changes` so the state PROD recorded without it is not planned away. - `bao/recipients/hermes.role_id` is committed, so the Admin agent — the fetch's other class — logs in by AppRole, not only the Operator's `userpass`. ## Evidence - `env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY make check` → exit 0, 45 assertions (2 `env-check` + 43 `env-test`, the Admin agent's fetch and the pool's `ignore_changes` among them), through `mise exec --`, which is the repo's Toolchain rule — a bare `make` here answers `tofu: command not found`. - `make env ACTOR=pit` against the live store: 4 paths, 8 names, `.env` 0600, first line `# fetched 2026-10-28T12:02:42Z actor=pit store=https://10.12.0.144:8200`. - `make key-audit` against the live store → 16 keys, 15 audited, 1 out of scope (`store-app`, minted by the Stack from Terraform), 0 failing; the twelve state records were minted and each pair answers 200 on its own object and 403 on another's. - `make key-audit-test` → 32 cases pass, no store and no credential. - `git grep pool_id` → the two `variables.tf` declarations, the container's attribute and its `ignore_changes`, and the four assertions that pin them; `git grep -nE 'vault-pass|ANSIBLE_VAULT_PASSWORD|\.vault\.yml'` → the fetch's own test file only. - `make validate` → `Success!` on a checkout with no recorded backend. ## Merge Danger - **This PR is second to `olympus/infra-secrets#12`.** `scripts/env.sh` is vendored from that PR's `wr39/integration` and `README.md` links the interface page it adds, so `docs/env-fetch.md` is a 404 at `main` until #12 lands: merge that one first. - **The pool is not reconciled on the running Guest.** `pool_id` is in `ignore_changes` because PROD's recorded state carries none: a Guest this configuration creates records `prod`, and guest 150 keeps the membership a hand join gave it. A later change to the pool is a state adoption, not a plan. - The vault is deleted here: any checkout that has not run `make env` cannot run the service targets. The four values it needs are already in the store. - `check` includes `validate`, which needs `.env` and the store in a checkout that has already applied (a fresh clone needs neither).
pit added 15 commits 2026-10-28 12:04:28 +00:00
The store's policies are the whole of what a key may do, and 157's mints read
them off §7. Three of the five records it mints for had no policy to read:

  - silo/store/semaphore-state-policy.json, moved in from
    infra-semaphore/semaphore/guest/state-policy.json unchanged. The file names
    prod/semaphore.tfstate already, so the move needed no edit; the mint against
    it is 159's.
  - the four plan policies — silo's own record, semaphore's, and the tracker's
    two — in the shape SL-12 fixed for the forge: the bucket-level pair, GetObject
    on the record, Get/Put/Delete on the lock beside it, and no write at the
    record at all (ADR 0009).

§7 gains their rows, the semaphore's two and this repository's own plan key, and
its mint count follows the table: eleven rows, so eleven mints and eleven uses of
the root credential.
Runbook 0003 §4 states as a fact that a key keeps the policy it was minted with,
so an edit to a policy file reaches the running key nowhere earlier than a
rotation. Nothing compared the two: a store whose keys had drifted looked
exactly like one that had not.

`make key-audit` is that comparison, and it is the one Target here that needs a
credential — which is why it is not inside `validate`, whose being credential-free
is what a fresh clone runs. It asks the store's admin API, as the root user, for
every access key under `silo/`, canonicalises the policy each one holds, and
matches it against the policies `silo/store/` declares. A key holding a policy
no file declares is named with the nearest file and the statements that differ,
in actions and resources; statement order and a string where a list would do
canonicalise equal, so it compares reach rather than spelling. An implied policy
is a red of its own: a key that inherits its parent's reach on the root user can
do the whole store.

The credential arrives as mcli's own `MC_HOST_silo`, never in an `mcli alias`,
which writes it cleartext to disk. It talks through the client rather than over
the wire because the admin API encrypts its responses with the caller's secret
key; `MCLI` is the seam, which is what makes `key-audit-test` possible: the
guard's comparison reds on a policy flipped by one action, offline, against a
stubbed client.
`silo/backend.tf` reads AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY and nothing
else, and the file that declares them said nothing about which pair they are.
They are the pair of the record being read: minted against that record's policy
in silo/store/ (runbook 0003 §0 for this Stack, §7 for every other), one per
record, so a second Stack — here or in another repository — has a key of its own
rather than a share of this one.

The names stay: they are the two the backend reads, and 162's env.map fills them
from secret/tofu-state/silo/apply. What changes is the instruction the file was
missing, and the live `.env` is not touched here — the pair in it is still what
reads the state until that mint lands.
Two sentences described the key set before 157's rows existed: the S3 pair as
"the key the state is read and written through", and the plan-only keys as the
forge's two. The pair belongs to one record and every Stack that plans carries
one, so both sentences now say what the table says.
The provisioning key runbook 0002 §0 mints is a child of the same user the state
keys are — `mcli admin accesskey create silo/ --policy provisioner-policy.json`
— so an audit that compared keys against the state policies alone would red on
the one key the Stack itself runs as. Every `*-policy.json` in silo/store is a
policy this repository declares, which is the set the audit means; the test now
carries the provisioning key as a case that must stay green.
Five Stacks outside this repository hold a record here now, so the sentence that
counts what sits under prod/ says five.
The stub answered a table the real client never prints, so the guard was written
against a shape that does not exist and its own test could not pass. Measured
against the live store, `mcli admin accesskey ls silo/` is a `User:` heading,
then `  Access Keys:`, then one `    <key>, expires: never, sts: false` per key —
several users' headings in one answer — and `info silo/ <KEY> --json` is one JSON
object whose `policy` is the whole document.

So the key is now the field before `, expires:`: shape, not spelling. The
`[A-Z0-9]{20}` rule was not merely fragile, it was wrong on this store — the
provisioning key is `3FvGHiwGY1aVzYzvFqR0`, and that rule skipped it without a
word, so the audit read 15 keys where the store lists 16. An answer that is not
that object is now the store failing to answer, and a failure; it used to fall
through into "holds the implied policy", which is a red that names the wrong
thing.
Live, the audit read every key under `silo/` and red on exactly one: store-app,
the application credential the Stack mints from `silo/store/service-account.tf`.
That key's policy is declared in HCL and in no `*-policy.json` file, so a
file-by-file comparison can never match it — the guard reded on the one key the
Stack is built to have, and no rotation could ever make it green.

The rule is the mint's name: a key minted from a `silo/store/*-policy.json` is
named `tofu…`, and those are the keys this audits. Any other key is printed on
its own line as out of scope — with the note when it holds no policy of its own,
because that line is where the reader learns the key's reach is Terraform's to
state — and is not a failure. A `tofu…` key that matches no file still fails:
the rule is not an escape hatch. The summary line now counts all three.

The test pins the boundary the same way: the out-of-scope key holds a real
policy no file declares, and still does not fail; a key minted elsewhere and
holding nothing of its own does not fail either; a `tofu-rogue` key holding
`admin:CreateUser` does.
`pool_id = "prod"` on the guest object and on the container resource. The
Proxmox credentials this Stack plans and applies with are granted on
`/pool/prod` rather than on `/vms`, so confinement is pool membership and never
a vmid range: a container created outside the pool is one they cannot see.
Guest 150 is already a member of `prod`, so the plan for the field is no drift.
`scripts/env.sh` is the vendored interface, byte-for-byte what its pin says
(`# vendored from infra-secrets@137870c6…`, 0755, never edited in place), and
`env.map` is this repo's only input to it: the provisioning pair, the root
password, the application's secret and the state pair, each at the store path
the layout names for it, plus the two Proxmox names no path can fill.

`make env` writes the root `.env` whole at 0600 under a stamp naming the actor,
the time and the store; `make env-check` reads no store and lives on the floor
inside `make check`; `make env-test` proves both against a stub store and a
closed port, and needs nothing. `age` and `bao` are declared and locked, because
the fetch is the target that fails on exactly the machine it is for.

The Targets that read the file now refuse without a credential instead of
planning: a missing `.env` names the file `make env` writes, and an empty name
names the variable, before anything is composed. `validate` keeps its
conditional `.env` so a clone that has applied nothing still runs it.
The PROD Inventory's vault file is deleted and `ansible.cfg` no longer names a
password file: the object store's root password is at `secret/silo/root` in the
store, `make env` writes it to the root `.env` as `SILO_ROOT_PASSWORD`, and the
role reads it from the environment it is handed — a default that looks it up,
and a template that consumes it under the name the value now has. `make service`
and `make service-check` source that file and refuse when the name is empty.

The docs follow in the repo's own voice: the runbooks derive the root password
from `.env` instead of viewing a vaulted file, the provisioning and state pairs
are written to their store paths rather than typed into a hand-made `.env`, the
workflow page states the new credential rule and the floor, and the glossary
retires the term. `README` points at `infra-secrets`' `docs/env-fetch.md`.

The `.env` this repo passed between machines was world-readable; its first fetch
writes it at 0600, and the docs say so rather than chmodding a file by hand.
bot-minos requested changes 2026-10-28 12:12:00 +00:00
Dismissed
bot-minos left a comment

olympus/infra-silo #11 · head 437d8553c2ae7a10d388e6521ee264b504ea325c · round 1/5 · axes: standards + spec · spec: SL-13 (Vikunja task 157, "Mint every Stack's state keys from its own policy") and SL-14 (task 162, "infra-silo reads its environment from the store and loses its vault"), both open, no comments.

Recommendation: fix

Verdict

One blocker, four advisories. The two halves do what their tickets say, and the tests behind them fail for the right reasons — I re-ran both suites and drove the fetch by hand. The blocker is the pool_id addition: SL-14 does ask for it, but as written it makes every plan of the Guest half propose a replacement of the container that runs the store, which the resource's own lifecycle { prevent_destroy = true } then refuses — so no data loss, but make plan, make guest and make prod stop working against PROD's state, while the comment beside the attribute says the plan is "no drift". Your own Merge Danger section already says this PR should not merge before the resolution lands; the review agrees, and the smallest way out is to drop the three pool_id edits from this PR rather than to hold it open.

Spec

[BLOCKER] pool_id plans a replacement the guard then refuses, and the comments state the opposite

silo/guest/container.tf:16-21 (attribute at :21), silo/guest/variables.tf:24, silo/variables.tf:11-15,30,44

The comment at container.tf:16-21 says:

Create-time in the provider — the pool is set on create and clone — and the Guest is already a member of prod, so the plan is no drift rather than a move.

and silo/variables.tf:14-15 repeats it ("the plan for this field is no drift"). Both are false against the provider this repo resolves.

Evidence, in order:

  1. tofu init in this tree installs bpg/proxmox v0.116.1, and the resource schema at that tag is pool_id: {Type: string, Optional: true, ForceNew: true, Default: dvPoolID} (proxmoxtf/resource/container/container.go:1034-1040). pool_id is read from the configuration at create/clone (:1335, :2225) and never written back in a read — there is no d.Set(mkPoolID, …) anywhere in the file — so a state recorded before this change carries pool_id = "" and cannot absorb the new value by refresh.
  2. Driven on a throwaway Stack with the same resource at the same version, a hand-written state carrying pool_id = "", and plan -refresh=false:
    • control (pool=""): Plan: 0 to add, 1 to change, 0 to destroy.
    • treatment (pool="prod"): -/+ destroy and then create replacement, + pool_id = "prod" # forces replacement, Plan: 1 to add, 0 to change, 1 to destroy.
  3. Adding the resource's real lifecycle { prevent_destroy = true } (container.tf:79) to the same probe turns the plan into an error: Error: Resource instance cannot be destroyed … has prevent_destroy set, but the plan calls for it to be destroyed.

So the guard holds and nothing is destroyed — but make plan (which plans -target=module.guest), make guest and make prod all stop at plan time on PROD's state until the attribute is removed or the guard lifted, and docs/agents/workflow.md:90 still lists plan among the targets that "mutate nothing and are safe to run at will". Your body's own measurement agrees with mine and contradicts the comment — + pool_id = "prod" # forces replacement — which makes the comment the thing that would send the next operator down the path the Merge Danger warns about.

The requirement is the ticket's (SL-14: "Both guests and the store half declare pool_id = "prod""), so this is a sequencing block, not a refusal of the work.

Clearing change: remove silo/guest/container.tf:16-21, silo/guest/variables.tf:24, and silo/variables.tf:11-15,30,44 from this PR, and land them with the pool-membership / state-adoption resolution your Merge Danger names. If you would rather keep them here, the two comments must say what the plan does (-/+, refused by prevent_destroy) and the PR cannot be merge-ready before that resolution — which leaves the same work in the same round.

[ADVISORY] The Admin agent cannot fetch an environment in this repository

scripts/env.sh:45,234 vs AGENTS.md:25-27

AGENTS.md as this PR rewrites it says "the Operator or the Admin agent fetches". An AppRole actor's login reads $ROOT/bao/recipients/<actor>.role_id (scripts/env.sh:234), and this repo carries no bao/ directory at all (git ls-files | grep -c '^bao/' → 0; infra-secrets carries hermes.role_id, minos.role_id, efesto.role_id, runner.role_id). Driven against the stub store with a seeded HOME:

refused: the AppRole role_id for hermes is not at …/bao/recipients/hermes.role_id; it is committed material, and nothing is written without it.

The Operator path (ACTOR=pit, userpass) works — I drove it — so the ticket's make env is satisfied for the Operator only.

Clearing change: commit bao/recipients/hermes.role_id (37 bytes, non-secret, as infra-secrets does), or narrow AGENTS.md:25-27 to the Operator.

[ADVISORY] The body's case count is one more than the suite runs

scripts/tests/key-audit.test.sh (whole file; body claim under Evidence)

The body says "make key-audit-test → 33 cases pass". The suite prints 32 assertion lines (31 expect_* call sites plus one direct pass); mise exec -- make key-audit-test | grep -c '^ok' → 32, and it exits 0. The other count in the body checks out: make check prints 41 (2 from env-check, 39 from env-test), which is what "41 assertions" names.

Clearing change: correct the number to 32 (or say "32 assertions").

Standards

[ADVISORY] ADR-0001's own update trigger fires in this change, and the record is left describing the opposite

docs/adr/0001-version-and-administrative-credential-are-reviewable.md:18-20,41-44,49-54

:53 says the record is to be updated when "The credential moves to a store outside the repository: who can read it changes then, and so does what rotating it costs" — which is exactly what SL-14 does here. The record still reads "The administrative credential is a value the repository carries, committed only in encrypted form" (:18-20) and "Rotating it is a change to an encrypted file, not an operation on a running machine" (:41-44). The diff touches docs/adr/ nowhere: git diff --name-only <base> HEAD -- docs/adr is empty.

Clearing change: amend ADR-0001's decision and consequences for the store, or add the superseding record — one paragraph, in this PR, so the decision text and the tree agree.

README.md:125 (also named at AGENTS.md:27, env.map:17)

The link is
https://forgejo.thepit.space/olympus/infra-secrets/src/branch/main/docs/env-fetch.md →
HTTP 404 today; the page exists only on infra-secrets' wr39/integration branch. README.md is the front door and the sentence calls that page "the one interface"; a reader merging this before the sibling lands clicks into a 404.

Clearing change: point the link at the branch that carries the page, or land infra-secrets' WR-39 PR first and say so in this body — one line either way.

Verified

What How Result
The credential-free floor env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make check in a fresh worktree at the reviewed head exit 0; env-check 2 + env-test 39 = 41 assertions
The audit's offline half mise exec -- make key-audit-test exit 0, 32 assertions, including the one-action flip (case 2) red with only in the key: s3:PutObject
A good fetch scripts/env.sh fetch against scripts/tests/stub-store.py, ACTOR=pit 4 path lines with (rev N), actor pit · method userpass · ttl 3600s, target …/.env (0600), stamp # fetched 2026-10-28T12:09:40Z actor=pit store=…
Store unreachable same fetch with ENV_STORE_ADDR=http://127.0.0.1:9 and a stale .env refused: … nothing written; .env sha256 identical before/after; no .env.tmp
env-check in both directions sandbox copies green control; red on a one-character pin (does not match its pin, naming both hashes); red on a mapped name missing from .env.example; red on a declared name no row sources
The vendored copy infra-secrets @ wr39/integration, scripts/env.sh byte-identical body, same pin line 137870c6…, mode 100755
§7 and the policy files docs/runbooks/0003-the-state-in-the-store.md 11 rows; silo/store/ tracks semaphore-state-policy.json and semaphore-plan-state-policy.json
Targets still compose make -n for env env-check env-test fmt-check check key-audit key-audit-test plan guest store-plan store verify ssh prod service service-check all compose
Relative links in the changed docs all inline ](…) targets in the 8 changed markdown files none dead
The store the pins name GET /v1/sys/health version 2.7.1, sealed false — matches mise.toml's pin rationale
The pool_id behaviour provider source at the resolved tag + plan pair + prevent_destroy as quoted in the blocker

Could not verify

  • Anything behind the store's root credential: make key-audit's live census (body: 16 keys, 15 audited, 1 out of scope), the twelve minted pairs' 200-on-own/403-on-other, and SL-13's mcli admin accesskey ls silo/ check. I have no MC_HOST_silo credential and did not look for one.
  • make env against the live store (body: 4 paths, 8 names, first line …store=https://10.12.0.144:8200). Driven against the stub only, where it prints 6 names because the age class is absent; the two Proxmox names need ~/.secrets/proxmox/prod.age.
  • "Guest 150 is a member of prod" on the node — no Proxmox credential. It does not matter to the blocker either way: the replacement is proposed from the state, not from the node.
  • The mints themselves — operator actions, not in the diff.

Checked and accepted

  • .gitignore loses silo/service/vault-pass and *.plaintext: both named the vault this PR deletes, no doc names either any more, and the control row still holds — .env is ignored, and git ls-files -ci --exclude-standard prints nothing.
  • scripts/env.sh is vendored verbatim, so its comment volume is not this repository's to edit; the same goes for its bao/recipients convention, which is charged above only where this repo's own text promises it.
  • pool_id being in SL-14's text is acknowledged in the blocker; the finding is the sequencing and the two comments, not the requirement.
  • No secret in the diff: .env.example is names only, scripts/tests/stub-store.py holds stub values, and the removed vault.yml is ciphertext.

Note

Round 1/5 as dispatched. The PR carried no reviews and no comments when this review was composed, and the head I read is the head it is pinned to (437d8553).

<!-- minos review-loop: repo=olympus/infra-silo pr=11 head=437d8553c2ae7a10d388e6521ee264b504ea325c round=1/5 axes=standards,spec --> **olympus/infra-silo #11** · head `437d8553c2ae7a10d388e6521ee264b504ea325c` · round **1/5** · axes: **standards** + **spec** · spec: SL-13 (Vikunja task 157, "Mint every Stack's state keys from its own policy") and SL-14 (task 162, "infra-silo reads its environment from the store and loses its vault"), both open, no comments. Recommendation: fix ## Verdict One blocker, four advisories. The two halves do what their tickets say, and the tests behind them fail for the right reasons — I re-ran both suites and drove the fetch by hand. The blocker is the `pool_id` addition: SL-14 does ask for it, but as written it makes every plan of the Guest half propose a replacement of the container that runs the store, which the resource's own `lifecycle { prevent_destroy = true }` then refuses — so no data loss, but `make plan`, `make guest` and `make prod` stop working against PROD's state, while the comment beside the attribute says the plan is "no drift". Your own **Merge Danger** section already says this PR should not merge before the resolution lands; the review agrees, and the smallest way out is to drop the three `pool_id` edits from this PR rather than to hold it open. ## Spec ### [BLOCKER] `pool_id` plans a replacement the guard then refuses, and the comments state the opposite `silo/guest/container.tf:16-21` (attribute at `:21`), `silo/guest/variables.tf:24`, `silo/variables.tf:11-15,30,44` The comment at `container.tf:16-21` says: > Create-time in the provider — the pool is set on create and clone — and the Guest is already a member of `prod`, so the plan is no drift rather than a move. and `silo/variables.tf:14-15` repeats it ("the plan for this field is no drift"). Both are false against the provider this repo resolves. Evidence, in order: 1. `tofu init` in this tree installs **bpg/proxmox v0.116.1**, and the resource schema at that tag is `pool_id: {Type: string, Optional: true, ForceNew: true, Default: dvPoolID}` (`proxmoxtf/resource/container/container.go:1034-1040`). `pool_id` is read from the configuration at create/clone (`:1335`, `:2225`) and **never written back in a read** — there is no `d.Set(mkPoolID, …)` anywhere in the file — so a state recorded before this change carries `pool_id = ""` and cannot absorb the new value by refresh. 2. Driven on a throwaway Stack with the same resource at the same version, a hand-written state carrying `pool_id = ""`, and `plan -refresh=false`: - control (`pool=""`): `Plan: 0 to add, 1 to change, 0 to destroy.` - treatment (`pool="prod"`): `-/+ destroy and then create replacement`, `+ pool_id = "prod" # forces replacement`, `Plan: 1 to add, 0 to change, 1 to destroy.` 3. Adding the resource's real `lifecycle { prevent_destroy = true }` (`container.tf:79`) to the same probe turns the plan into an error: `Error: Resource instance cannot be destroyed … has prevent_destroy set, but the plan calls for it to be destroyed.` So the guard holds and nothing is destroyed — but `make plan` (which plans `-target=module.guest`), `make guest` and `make prod` all stop at plan time on PROD's state until the attribute is removed or the guard lifted, and `docs/agents/workflow.md:90` still lists `plan` among the targets that "mutate nothing and are safe to run at will". Your body's own measurement agrees with mine and contradicts the comment — `+ pool_id = "prod" # forces replacement` — which makes the comment the thing that would send the next operator down the path the Merge Danger warns about. The requirement is the ticket's (`SL-14`: "Both guests and the store half declare `pool_id = "prod"`"), so this is a sequencing block, not a refusal of the work. **Clearing change:** remove `silo/guest/container.tf:16-21`, `silo/guest/variables.tf:24`, and `silo/variables.tf:11-15,30,44` from this PR, and land them with the pool-membership / state-adoption resolution your Merge Danger names. If you would rather keep them here, the two comments must say what the plan does (`-/+`, refused by `prevent_destroy`) and the PR cannot be merge-ready before that resolution — which leaves the same work in the same round. ### [ADVISORY] The Admin agent cannot fetch an environment in this repository `scripts/env.sh:45,234` vs `AGENTS.md:25-27` `AGENTS.md` as this PR rewrites it says "the Operator or the Admin agent fetches". An AppRole actor's login reads `$ROOT/bao/recipients/<actor>.role_id` (`scripts/env.sh:234`), and this repo carries no `bao/` directory at all (`git ls-files | grep -c '^bao/'` → `0`; `infra-secrets` carries `hermes.role_id`, `minos.role_id`, `efesto.role_id`, `runner.role_id`). Driven against the stub store with a seeded `HOME`: ``` refused: the AppRole role_id for hermes is not at …/bao/recipients/hermes.role_id; it is committed material, and nothing is written without it. ``` The Operator path (`ACTOR=pit`, userpass) works — I drove it — so the ticket's `make env` is satisfied for the Operator only. **Clearing change:** commit `bao/recipients/hermes.role_id` (37 bytes, non-secret, as `infra-secrets` does), or narrow `AGENTS.md:25-27` to the Operator. ### [ADVISORY] The body's case count is one more than the suite runs `scripts/tests/key-audit.test.sh` (whole file; body claim under **Evidence**) The body says "`make key-audit-test` → 33 cases pass". The suite prints **32** assertion lines (`31` `expect_*` call sites plus one direct `pass`); `mise exec -- make key-audit-test | grep -c '^ok'` → `32`, and it exits 0. The other count in the body checks out: `make check` prints `41` (`2` from `env-check`, `39` from `env-test`), which is what "41 assertions" names. **Clearing change:** correct the number to 32 (or say "32 assertions"). ## Standards ### [ADVISORY] ADR-0001's own update trigger fires in this change, and the record is left describing the opposite `docs/adr/0001-version-and-administrative-credential-are-reviewable.md:18-20,41-44,49-54` `:53` says the record is to be updated when "The credential moves to a store outside the repository: who can read it changes then, and so does what rotating it costs" — which is exactly what SL-14 does here. The record still reads "The administrative credential is a value the repository carries, committed only in encrypted form" (`:18-20`) and "Rotating it is a change to an encrypted file, not an operation on a running machine" (`:41-44`). The diff touches `docs/adr/` nowhere: `git diff --name-only <base> HEAD -- docs/adr` is empty. **Clearing change:** amend ADR-0001's decision and consequences for the store, or add the superseding record — one paragraph, in this PR, so the decision text and the tree agree. ### [ADVISORY] The README's link to the interface page is dead at `main` `README.md:125` (also named at `AGENTS.md:27`, `env.map:17`) The link is `https://forgejo.thepit.space/olympus/infra-secrets/src/branch/main/docs/env-fetch.md` → **HTTP 404** today; the page exists only on `infra-secrets`' `wr39/integration` branch. `README.md` is the front door and the sentence calls that page "the one interface"; a reader merging this before the sibling lands clicks into a 404. **Clearing change:** point the link at the branch that carries the page, or land `infra-secrets`' WR-39 PR first and say so in this body — one line either way. ## Verified | What | How | Result | | --- | --- | --- | | The credential-free floor | `env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make check` in a fresh worktree at the reviewed head | exit 0; `env-check` 2 + `env-test` 39 = 41 assertions | | The audit's offline half | `mise exec -- make key-audit-test` | exit 0, 32 assertions, including the one-action flip (case 2) red with `only in the key: s3:PutObject` | | A good fetch | `scripts/env.sh fetch` against `scripts/tests/stub-store.py`, `ACTOR=pit` | 4 path lines with `(rev N)`, `actor pit · method userpass · ttl 3600s`, `target …/.env (0600)`, stamp `# fetched 2026-10-28T12:09:40Z actor=pit store=…` | | Store unreachable | same fetch with `ENV_STORE_ADDR=http://127.0.0.1:9` and a stale `.env` | `refused: … nothing written`; `.env` sha256 identical before/after; no `.env.tmp` | | `env-check` in both directions | sandbox copies | green control; red on a one-character pin (`does not match its pin`, naming both hashes); red on a mapped name missing from `.env.example`; red on a declared name no row sources | | The vendored copy | `infra-secrets` @ `wr39/integration`, `scripts/env.sh` | byte-identical body, same pin line `137870c6…`, mode `100755` | | §7 and the policy files | `docs/runbooks/0003-the-state-in-the-store.md` | 11 rows; `silo/store/` tracks `semaphore-state-policy.json` and `semaphore-plan-state-policy.json` | | Targets still compose | `make -n` for `env env-check env-test fmt-check check key-audit key-audit-test plan guest store-plan store verify ssh prod service service-check` | all compose | | Relative links in the changed docs | all inline `](…)` targets in the 8 changed markdown files | none dead | | The store the pins name | `GET /v1/sys/health` | `version 2.7.1`, `sealed false` — matches `mise.toml`'s pin rationale | | The `pool_id` behaviour | provider source at the resolved tag + plan pair + `prevent_destroy` | as quoted in the blocker | ## Could not verify - **Anything behind the store's root credential**: `make key-audit`'s live census (body: 16 keys, 15 audited, 1 out of scope), the twelve minted pairs' 200-on-own/403-on-other, and SL-13's `mcli admin accesskey ls silo/` check. I have no `MC_HOST_silo` credential and did not look for one. - **`make env` against the live store** (body: 4 paths, 8 names, first line `…store=https://10.12.0.144:8200`). Driven against the stub only, where it prints 6 names because the age class is absent; the two Proxmox names need `~/.secrets/proxmox/prod.age`. - **"Guest 150 is a member of `prod`"** on the node — no Proxmox credential. It does not matter to the blocker either way: the replacement is proposed from the state, not from the node. - **The mints themselves** — operator actions, not in the diff. ## Checked and accepted - `.gitignore` loses `silo/service/vault-pass` and `*.plaintext`: both named the vault this PR deletes, no doc names either any more, and the control row still holds — `.env` is ignored, and `git ls-files -ci --exclude-standard` prints nothing. - `scripts/env.sh` is vendored verbatim, so its comment volume is not this repository's to edit; the same goes for its `bao/recipients` convention, which is charged above only where this repo's own text promises it. - `pool_id` being in SL-14's text is acknowledged in the blocker; the finding is the sequencing and the two comments, not the requirement. - No secret in the diff: `.env.example` is names only, `scripts/tests/stub-store.py` holds stub values, and the removed `vault.yml` is ciphertext. ## Note Round 1/5 as dispatched. The PR carried no reviews and no comments when this review was composed, and the head I read is the head it is pinned to (`437d8553`).
The Admin agent is the other class the env interface admits, and its AppRole
login reads `bao/recipients/<actor>.role_id` from the checkout rather than a
password typed at a prompt. The repository carried no `bao/` at all, so `make env
ACTOR=hermes` refused before it reached the store — while the store's identity
table grants `hermes` `secret/*`, which is this repository's paths. The role_id
is committed here as `infra-secrets` commits it: 37 bytes, the public half of an
AppRole pair, useless without the `secret_id` sealed to that actor's key.
`.gitignore` keeps the directory to those two public shapes, so a stray
`git add` cannot commit a private one.

`env-test` proves the paths rather than the files. The stub store answers the
AppRole login, and a fetch as the Admin agent writes the `.env` and prints
`actor hermes · method approle`; take the role_id away and those cases red, with
the refusal the review quoted. The Guest's pool gets the assertion it was
missing too: the field is declared, and it is in `ignore_changes`, so the state
PROD recorded without it is not planned away.

ADR 0001's own update trigger fired: the administrative credential is no longer
a value the repository carries in ciphertext, but one the store holds under a
policy the repository carries. The record and the index row that summarises it
are written for the store, under a dated note at the top saying what moved and
what did not — the shape 0007 already uses for a correction that leaves the
decision standing, rather than a superseding file.
Member

Answering round 1/5 at 23d3226. One blocker, four advisories: the blocker was cleared by a commit that landed on this branch while I was fixing it, and my commit carries the four advisories plus the assertion the clearing was missing.

The head moved mid-round

8adc3cd — guest: the pool is creation-time, so ignore it and stop planning a rebuild (SL-14) — arrived on wr39/integration at 12:15:33Z from pit, taking the second branch the review offered: the field stays declared, and ignore_changes = [initialization[0].user_account, pool_id] stops the plan proposing the replacement. I had cut the removal the review recommended as its smallest way out; the owner's commit supersedes it, so rather than push a commit that undoes his fix I rebased onto it and dropped mine. 23d3226 sits on top of 8adc3cd, nothing of his is rewritten, and the history is a fast-forward.

Findings

Finding Resolution Where
[BLOCKER] pool_id plans a replacement the guard refuses, and the comments state the opposite pool_id stays declared on the guest object and the container, and is added to the container's ignore_changes, so a recorded state that carries none is not planned away; the lifecycle comment now says what the plan did and what it does instead 8adc3cd (author), pinned by 23d3226
[ADVISORY] the Admin agent cannot fetch an environment in this repository bao/recipients/hermes.role_id committed — 37 bytes, the AppRole public half, byte-identical to infra-secrets' copy — with infra-secrets' .gitignore shape keeping the directory to .pub/.role_id; env-test now drives a fetch as hermes by AppRole 23d3226
[ADVISORY] the body's case count is one more than the suite runs body corrected: make key-audit-test prints 32, and the assertion tallies are re-measured at this head body edit, no commit
[ADVISORY] ADR-0001's update trigger fired and the record describes the opposite the second decision bullet and the second consequence are written for the store, under a dated note saying what moved and what did not — the shape 0007 already uses for a correction that leaves the decision standing — and the index row follows 23d3226
[ADVISORY] the README's link to the interface page is dead at main taken as the review's second branch: the body's Merge Danger now says this PR is second to olympus/infra-secrets#12, which carries docs/env-fetch.md. The link needs no edit and stops being a 404 when that PR lands body edit, no commit

Why the first-listed clearing for the Admin agent, not the narrowing

The AGENTS.md sentence ("the Operator or the Admin agent fetches") is true only if hermes can log in here. The interface's identity table grants hermes secret/*, which is this repository's paths, and the vendored script reads the recipient from the checkout — so the missing half was the file, not the class. Narrowing the sentence would have written a repository-local exception to a cross-repository contract, and it would have had to be written in five places that say it (AGENTS.md, README.md, Makefile, runbook 0001, docs/agents/workflow.md), then un-written the moment the recipient landed. The file carries no secret: infra-secrets' own bao/recipients/README.md says a role_id is useless without the secret_id sealed to that actor's key.

Verified at 23d3226

Run on a fresh git archive HEAD of the pushed commit, with PROXMOX_VE_API_TOKEN, AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY unset:

$ mise exec -- make check
rc=0 · 45 ok · 0 FAIL · ends "Success! The configuration is valid."
$ mise exec -- make key-audit-test
rc=0 · 32 ok · "key-audit-test: every case passed"
$ mise exec -- make env-check   → rc=0, 2 assertions
$ mise exec -- make env-test    → rc=0, 43 assertions

A bare make check answers tofu: command not found (rc=2) — the Toolchain rule; the body now says so instead of claiming both forms.

The two new assertions red on purpose, at the same revision:

# bao/recipients/hermes.role_id moved aside, nothing else changed
rc=2 · 3 FAIL, the fetch answering:
  refused: the AppRole role_id for hermes is not at …/bao/recipients/hermes.role_id; it is
  committed material, and nothing is written without it.
# ", pool_id" removed from the container's ignore_changes
rc=2 · FAIL  silo/guest ignores pool_id, so the recorded state is not planned away

The recipient's guard:

$ git check-ignore -q -- bao/recipients/hermes.role_id   → not ignored (committable)
$ git check-ignore -q -- bao/recipients/hermes.key       → ignored
$ git check-ignore -q -- bao/recipients/hermes.secret_id.age → ignored
$ git check-ignore -q -- .env silo/plan.out              → both still ignored

The records, re-run on the round that changed them: the banned-token sweep over docs/adr/0*.md returns no hits, 0001 has no line over 80 columns, its ../runbooks/0002-store-contents.md link resolves, and all nine index labels still match their record titles.

Not verified

  • The plan pair. make plan cannot run here — every state-touching Target sources .env unconditionally, no checkout carries one, and there is no Proxmox credential — so I did not re-drive the reviewer's throwaway Stack. I went to the provider instead: at the tag this repo resolves, bpg/proxmox v0.116.1, mkPoolID is schema.TypeString, Optional, ForceNew: true, Default: dvPoolID (proxmoxtf/resource/container/container.go:1034-1040), it is read from the configuration at :1335 and :2225, and d.Set(mkPoolID, …) appears nowhere in the file — so the recorded state cannot absorb the value by refresh, and ignore_changes is what stops the replacement, the mechanism this resource already relies on for initialization[0].user_account. A plan against PROD's state is the Operator's to run.
  • The live half of the Admin agent's login: the committed recipient and the fetch path are proved against the stub; hermes' own secret_id and the store's grant are not reachable from here.
  • make env ACTOR=pit against the live store and the live make key-audit census (the body's 4 paths / 8 names, and 16 keys / 15 audited): no store credential here. Those two evidence lines are the author's runs, not mine.

Self-review

code-review was run over 8adc3cd..23d3226, both axes, by me in one context: no claude, codex or agent CLI exists on this path, so the two passes were mine and not parallel sub-agents. What the passes changed before the commit: the stub age printed stub-operator-password although both fetching classes now use it (renamed stub-secret); the stub's docstring counted five requests and one login after a second login had been added (rewritten); and the ADR note's first line ran to 82 columns in an 80-column register, which the width check flagged (reflowed). One judgement call left standing: the Admin agent's case repeats the Operator's fixture shape rather than sharing a helper — two cases do not earn the indirection.

<!-- fix-meta repo=olympus/infra-silo pr=11 head=23d32263fcc490d8066b6b8ebd3c4f102b6bef16 round=1/5 disposition=fixed --> Answering round 1/5 at `23d3226`. One blocker, four advisories: the blocker was cleared by a commit that landed on this branch while I was fixing it, and my commit carries the four advisories plus the assertion the clearing was missing. ## The head moved mid-round `8adc3cd` — *guest: the pool is creation-time, so ignore it and stop planning a rebuild (SL-14)* — arrived on `wr39/integration` at 12:15:33Z from `pit`, taking the second branch the review offered: the field stays declared, and `ignore_changes = [initialization[0].user_account, pool_id]` stops the plan proposing the replacement. I had cut the removal the review recommended as its smallest way out; the owner's commit supersedes it, so rather than push a commit that undoes his fix I rebased onto it and dropped mine. `23d3226` sits on top of `8adc3cd`, nothing of his is rewritten, and the history is a fast-forward. ## Findings | Finding | Resolution | Where | | --- | --- | --- | | **[BLOCKER]** `pool_id` plans a replacement the guard refuses, and the comments state the opposite | `pool_id` stays declared on the guest object and the container, and is added to the container's `ignore_changes`, so a recorded state that carries none is not planned away; the lifecycle comment now says what the plan did and what it does instead | `8adc3cd` (author), pinned by `23d3226` | | **[ADVISORY]** the Admin agent cannot fetch an environment in this repository | `bao/recipients/hermes.role_id` committed — 37 bytes, the AppRole public half, byte-identical to `infra-secrets`' copy — with infra-secrets' `.gitignore` shape keeping the directory to `.pub`/`.role_id`; `env-test` now drives a fetch as `hermes` by AppRole | `23d3226` | | **[ADVISORY]** the body's case count is one more than the suite runs | body corrected: `make key-audit-test` prints **32**, and the assertion tallies are re-measured at this head | body edit, no commit | | **[ADVISORY]** ADR-0001's update trigger fired and the record describes the opposite | the second decision bullet and the second consequence are written for the store, under a dated note saying what moved and what did not — the shape 0007 already uses for a correction that leaves the decision standing — and the index row follows | `23d3226` | | **[ADVISORY]** the README's link to the interface page is dead at `main` | taken as the review's second branch: the body's Merge Danger now says this PR is **second to `olympus/infra-secrets#12`**, which carries `docs/env-fetch.md`. The link needs no edit and stops being a 404 when that PR lands | body edit, no commit | ## Why the first-listed clearing for the Admin agent, not the narrowing The `AGENTS.md` sentence ("the Operator or the Admin agent fetches") is true only if `hermes` can log in here. The interface's identity table grants `hermes` `secret/*`, which is this repository's paths, and the vendored script reads the recipient from the checkout — so the missing half was the file, not the class. Narrowing the sentence would have written a repository-local exception to a cross-repository contract, and it would have had to be written in five places that say it (`AGENTS.md`, `README.md`, `Makefile`, runbook 0001, `docs/agents/workflow.md`), then un-written the moment the recipient landed. The file carries no secret: `infra-secrets`' own `bao/recipients/README.md` says a `role_id` is useless without the `secret_id` sealed to that actor's key. ## Verified at `23d3226` Run on a fresh `git archive HEAD` of the pushed commit, with `PROXMOX_VE_API_TOKEN`, `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` unset: ``` $ mise exec -- make check rc=0 · 45 ok · 0 FAIL · ends "Success! The configuration is valid." $ mise exec -- make key-audit-test rc=0 · 32 ok · "key-audit-test: every case passed" $ mise exec -- make env-check → rc=0, 2 assertions $ mise exec -- make env-test → rc=0, 43 assertions ``` A bare `make check` answers `tofu: command not found` (rc=2) — the Toolchain rule; the body now says so instead of claiming both forms. The two new assertions red on purpose, at the same revision: ``` # bao/recipients/hermes.role_id moved aside, nothing else changed rc=2 · 3 FAIL, the fetch answering: refused: the AppRole role_id for hermes is not at …/bao/recipients/hermes.role_id; it is committed material, and nothing is written without it. # ", pool_id" removed from the container's ignore_changes rc=2 · FAIL silo/guest ignores pool_id, so the recorded state is not planned away ``` The recipient's guard: ``` $ git check-ignore -q -- bao/recipients/hermes.role_id → not ignored (committable) $ git check-ignore -q -- bao/recipients/hermes.key → ignored $ git check-ignore -q -- bao/recipients/hermes.secret_id.age → ignored $ git check-ignore -q -- .env silo/plan.out → both still ignored ``` The records, re-run on the round that changed them: the banned-token sweep over `docs/adr/0*.md` returns no hits, `0001` has no line over 80 columns, its `../runbooks/0002-store-contents.md` link resolves, and all nine index labels still match their record titles. ## Not verified - **The plan pair.** `make plan` cannot run here — every state-touching Target sources `.env` unconditionally, no checkout carries one, and there is no Proxmox credential — so I did not re-drive the reviewer's throwaway Stack. I went to the provider instead: at the tag this repo resolves, `bpg/proxmox v0.116.1`, `mkPoolID` is `schema.TypeString, Optional, ForceNew: true, Default: dvPoolID` (`proxmoxtf/resource/container/container.go:1034-1040`), it is read from the configuration at `:1335` and `:2225`, and `d.Set(mkPoolID, …)` appears **nowhere** in the file — so the recorded state cannot absorb the value by refresh, and `ignore_changes` is what stops the replacement, the mechanism this resource already relies on for `initialization[0].user_account`. A plan against PROD's state is the Operator's to run. - **The live half of the Admin agent's login**: the committed recipient and the fetch path are proved against the stub; `hermes`' own `secret_id` and the store's grant are not reachable from here. - **`make env ACTOR=pit` against the live store and the live `make key-audit` census** (the body's 4 paths / 8 names, and 16 keys / 15 audited): no store credential here. Those two evidence lines are the author's runs, not mine. ## Self-review `code-review` was run over `8adc3cd..23d3226`, both axes, by me in one context: no `claude`, `codex` or `agent` CLI exists on this path, so the two passes were mine and not parallel sub-agents. What the passes changed before the commit: the stub `age` printed `stub-operator-password` although both fetching classes now use it (renamed `stub-secret`); the stub's docstring counted five requests and one login after a second login had been added (rewritten); and the ADR note's first line ran to 82 columns in an 80-column register, which the width check flagged (reflowed). One judgement call left standing: the Admin agent's case repeats the Operator's fixture shape rather than sharing a helper — two cases do not earn the indirection.
bot-minos approved these changes 2026-10-28 12:29:14 +00:00
Dismissed
bot-minos left a comment

olympus/infra-silo #11 · head 23d32263fcc490d8066b6b8ebd3c4f102b6bef16 · round 2/5 · axes: standards + spec · spec: SL-13 (Vikunja task 157) and SL-14 (task 162), both read live this round — still open, still no comments.

Recommendation: merge

Verdict

Round 1's blocker is closed, and closed by driving it rather than reading it: the container's new ignore_changes suppresses the replacement, which I reproduced against the real provider at the version this repo locks. Its four advisories are closed too — the AppRole recipient is committed and its fetch case reds when it is taken away, the ADR follows the credential, and both body counts now match the suites. Two advisories remain, both advice: one editing pass over ADR-0001's text, and one test assertion that pins more than it needs.

No blocker. The state follows that: APPROVE under the mapping the dispatch states, and the label goes to review/merge-ready because two advisories is under the three-advisory volume trip. The advisories travel as advice and move neither.

Round 1 — closure

Round-1 finding Now Where it is closed
[BLOCKER] pool_id plans a replacement the guard refuses, and the comments state the opposite closed 8adc3cd (author) adds ignore_changes = [initialization[0].user_account, pool_id] at silo/guest/container.tf:92; 23d3226 pins it at scripts/tests/env.test.sh:323-324
[ADVISORY] the Admin agent cannot fetch an environment here closed bao/recipients/hermes.role_id, 37 bytes, byte-identical to infra-secrets@wr39/integration:bao/recipients/hermes.role_id; read at scripts/env.sh:234; driven by scripts/tests/env.test.sh:209-224
[ADVISORY] the body's case count closed body now says 32 (key-audit-test) and 45 (2 env-check + 43 env-test); both re-measured
[ADVISORY] ADR-0001's update trigger fired and the record describes the opposite closed docs/adr/0001-version-and-administrative-credential-are-reviewable.md:3-9,26-28,49-53; index row docs/adr/index.md:14
[ADVISORY] the README's link is dead at main closed, second branch taken body, Merge Danger: this PR is second to olympus/infra-secrets#12, which carries docs/env-fetch.md

8adc3cd landed 3.5 minutes after round 1 was posted and was never reviewed; it is reviewed here as new work, and it is the commit that carries the actual clear.

Standards

[ADVISORY] ADR-0001's correction is narrower than the record, and its new note mis-cites the trigger

docs/adr/0001-version-and-administrative-credential-are-reviewable.md:3-4,16-18,26-28,62-63

Three sentences and one cross-reference, in text this delta adds:

  1. :26-28 — The administrative credential is a value the store holds, under a policy the repository carries and a reviewer can read. This repository carries no such policy. git ls-files | grep -E '\.hcl$' returns only silo/.terraform.lock.hcl, and git grep -n 'path "secret' returns nothing; the silo/store/*.json files are MinIO policies, not the store's. The grants are infra-secrets': bao/policies/operator.hcl (path "secret/data/*", create, update, read) and bao/policies/admin-agent.hcl (path "secret/*", read). This repo's own env.map:12-15 already says the paths and the reach are infra-secrets'.
  2. :3-4 — the note says the credential's home moved, which is the second of Update when below, but the same commit rewrote that item: :62-63 now reads The credential leaves the store that holds it now…. The citation no longer names the trigger that fired.
  3. :16-18 (pre-existing text this round left standing) — values the repository states … in ciphertext and never in the clear now contradicts the note at :3-9 and the bullet at :26-28.

Clearing change: one editing pass over the record: name infra-secrets in :26-28, reword the note's reference to the trigger that fired, rewritten below for the store, and put :16-18 in the past tense.

[ADVISORY] The new assertion pins the whole line where its siblings tolerate spacing

scripts/tests/env.test.sh:323-324

grep -q 'ignore_changes = \[initialization\[0\]\.user_account, pool_id\]' silo/guest/container.tf — exact spacing, exact list. Its four siblings immediately above match the attribute name with *= * (:317-322). A third ignored attribute, or tofu fmt wrapping the list, reds the case while the behaviour stands.

Clearing change: grep -q 'ignore_changes *= *\[.*pool_id' silo/guest/container.tf.

Spec

No findings.

The delta adds nothing the tickets did not ask for. The pool_id work is SL-14's own line — Both guests and the store half declare pool_id = prod — and the recipient, the .gitignore shape and the ADR edits answer round 1's advisories rather than widening scope. Both tickets are still open with no resolution comment, which is the merge's business, not this diff's.

Verified

What How Result
The credential-free floor env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make check in a worktree at 23d3226 rc 0 · 45 ok · 0 FAIL · ends Success! The configuration is valid.
The audit's offline half mise exec -- make key-audit-test rc 0 · 32 ok · 0 FAIL
The blocker's fix, on the real provider throwaway Stack, bpg/proxmox 0.116.1, hand-written state with pool_id = "", plan -refresh=false, prevent_destroy as in container.tf:79 control (ignore_changes without pool_id): + pool_id = prod # forces replacement, Plan: 1 to add, 0 to change, 1 to destroy, then Error: Resource instance cannot be destroyed — round 1 reproduced. Treatment (head's block): Plan: 0 to add, 1 to change, 0 to destroy, pool_id absent from the diff, guard never triggered
The new pool assertion can fail head tree with , pool_id cut from ignore_changes rc 2 · exactly 1 FAIL · silo/guest ignores pool_id, so the recorded state is not planned away
The new AppRole cases can fail head tree with bao/recipients/hermes.role_id removed rc 2 · 3 FAIL — the two Admin cases, answering refused: the AppRole role_id for hermes is not at …/bao/recipients/hermes.role_id, plus the committed-role assertion
The control for both same tree, unmutated 43 ok in env-test, 0 FAIL
The recipient is the public half git show of both copies byte-identical, 37 bytes; git check-ignore -q: *.role_id and *.pub committable, .key, .secret_id, .secret_id.age ignored, .env / silo/plan.out / state still ignored; git ls-files -ci --exclude-standard prints nothing
The record width, links, index no line over 80 characters; ../runbooks/0002-store-contents.md resolves; 9 index rows, every row target resolves
Currency PR base.sha against git ls-remote origin refs/heads/main both 5fe22839 — current
The store the pins name GET /v1/sys/health version 2.7.1, sealed false
Guest 150's pool pvesh get /pools/prod on burns, read-only 150 silo running — a member
The reviewed revision git ls-remote origin refs/pull/11/head + refs/heads/wr39/integration both 23d32263, matching the dispatch

Could not verify

  • Anything behind the store's root credential: the live census (body: 16 keys, 15 audited, 1 out of scope) and the twelve pairs' 200-on-own / 403-on-other. No MC_HOST_silo credential in this session.
  • make env ACTOR=pit against the live store (body: 4 paths, 8 names, the stamp line). No pit seed on this host; the fetch is proved against the stub.
  • The login half of the Admin agent: the committed recipient and the fetch's read of it are proved against the stub; hermes' own secret_id and the store's grant for it are not reachable from here.

Checked and accepted

  • silo/guest/container.tf:16-21 and silo/variables.tf:13-15 still say the plan is no drift rather than a move. Round 1 charged those as false; both halves now hold — the plan proposes nothing (driven above) and guest 150 is a member of prod (read live off the cluster). What remains is that the clause credits membership where the mechanism is ignore_changes, and the block's own comment at :87-91 names it, so a reader of the file gets both. Not charged.
  • The role_id now exists in two repositories. The fetch reads it from the checkout because env.sh is vendored verbatim, so the duplicate is the vendoring's consequence, and nothing written down forbids it.
  • scripts/env.sh is vendored, so its comment volume is not this repository's to edit.
  • No secret in this delta: a role_id is the public half and useless without a secret_id (infra-secrets' bao/recipients/README.md), and .env.example and the stub hold names and stub values.

Summary

Standards: 2 findings, 0 blockers — the worst is the ADR's claim that this repository carries the policy that decides who can read the administrative credential, which it does not. Spec: 0 findings — the worst is none. Prior round: 1 blocker and 4 advisories, all five closed.

Round 2/5 as dispatched. The timeline carries one review before this one (437d8553), so this is its second review; the head was re-read immediately before composing and had not moved.

<!-- minos review-loop: repo=olympus/infra-silo pr=11 head=23d32263fcc490d8066b6b8ebd3c4f102b6bef16 round=2/5 axes=standards,spec --> **olympus/infra-silo #11** · head `23d32263fcc490d8066b6b8ebd3c4f102b6bef16` · round **2/5** · axes: **standards** + **spec** · spec: SL-13 (Vikunja task 157) and SL-14 (task 162), both read live this round — still open, still no comments. Recommendation: merge ## Verdict Round 1's blocker is closed, and closed by driving it rather than reading it: the container's new `ignore_changes` suppresses the replacement, which I reproduced against the real provider at the version this repo locks. Its four advisories are closed too — the AppRole recipient is committed and its fetch case reds when it is taken away, the ADR follows the credential, and both body counts now match the suites. Two advisories remain, both advice: one editing pass over ADR-0001's text, and one test assertion that pins more than it needs. No blocker. The state follows that: `APPROVE` under the mapping the dispatch states, and the label goes to `review/merge-ready` because two advisories is under the three-advisory volume trip. The advisories travel as advice and move neither. ## Round 1 — closure | Round-1 finding | Now | Where it is closed | | --- | --- | --- | | **[BLOCKER]** `pool_id` plans a replacement the guard refuses, and the comments state the opposite | **closed** | `8adc3cd` (author) adds `ignore_changes = [initialization[0].user_account, pool_id]` at `silo/guest/container.tf:92`; `23d3226` pins it at `scripts/tests/env.test.sh:323-324` | | **[ADVISORY]** the Admin agent cannot fetch an environment here | **closed** | `bao/recipients/hermes.role_id`, 37 bytes, byte-identical to `infra-secrets@wr39/integration:bao/recipients/hermes.role_id`; read at `scripts/env.sh:234`; driven by `scripts/tests/env.test.sh:209-224` | | **[ADVISORY]** the body's case count | **closed** | body now says 32 (`key-audit-test`) and 45 (2 `env-check` + 43 `env-test`); both re-measured | | **[ADVISORY]** ADR-0001's update trigger fired and the record describes the opposite | **closed** | `docs/adr/0001-version-and-administrative-credential-are-reviewable.md:3-9,26-28,49-53`; index row `docs/adr/index.md:14` | | **[ADVISORY]** the README's link is dead at `main` | **closed**, second branch taken | body, **Merge Danger**: this PR is second to `olympus/infra-secrets#12`, which carries `docs/env-fetch.md` | `8adc3cd` landed 3.5 minutes after round 1 was posted and was never reviewed; it is reviewed here as new work, and it is the commit that carries the actual clear. ## Standards ### [ADVISORY] ADR-0001's correction is narrower than the record, and its new note mis-cites the trigger `docs/adr/0001-version-and-administrative-credential-are-reviewable.md:3-4,16-18,26-28,62-63` Three sentences and one cross-reference, in text this delta adds: 1. `:26-28` — *The administrative credential is a value the store holds, under a policy the repository carries and a reviewer can read.* This repository carries no such policy. `git ls-files | grep -E '\.hcl$'` returns only `silo/.terraform.lock.hcl`, and `git grep -n 'path "secret'` returns nothing; the `silo/store/*.json` files are MinIO policies, not the store's. The grants are `infra-secrets`': `bao/policies/operator.hcl` (`path "secret/data/*"`, `create, update, read`) and `bao/policies/admin-agent.hcl` (`path "secret/*"`, `read`). This repo's own `env.map:12-15` already says the paths and the reach are `infra-secrets`'. 2. `:3-4` — the note says the credential's home moved, *which is the second of **Update when** below*, but the same commit rewrote that item: `:62-63` now reads *The credential leaves the store that holds it now…*. The citation no longer names the trigger that fired. 3. `:16-18` (pre-existing text this round left standing) — *values the repository states … in ciphertext and never in the clear* now contradicts the note at `:3-9` and the bullet at `:26-28`. **Clearing change:** one editing pass over the record: name `infra-secrets` in `:26-28`, reword the note's reference to *the trigger that fired, rewritten below for the store*, and put `:16-18` in the past tense. ### [ADVISORY] The new assertion pins the whole line where its siblings tolerate spacing `scripts/tests/env.test.sh:323-324` `grep -q 'ignore_changes = \[initialization\[0\]\.user_account, pool_id\]' silo/guest/container.tf` — exact spacing, exact list. Its four siblings immediately above match the attribute name with `*= *` (`:317-322`). A third ignored attribute, or `tofu fmt` wrapping the list, reds the case while the behaviour stands. **Clearing change:** `grep -q 'ignore_changes *= *\[.*pool_id' silo/guest/container.tf`. ## Spec No findings. The delta adds nothing the tickets did not ask for. The `pool_id` work is SL-14's own line — *Both guests and the store half declare `pool_id = prod`* — and the recipient, the `.gitignore` shape and the ADR edits answer round 1's advisories rather than widening scope. Both tickets are still open with no resolution comment, which is the merge's business, not this diff's. ## Verified | What | How | Result | | --- | --- | --- | | The credential-free floor | `env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make check` in a worktree at `23d3226` | rc 0 · 45 ok · 0 FAIL · ends `Success! The configuration is valid.` | | The audit's offline half | `mise exec -- make key-audit-test` | rc 0 · 32 ok · 0 FAIL | | **The blocker's fix**, on the real provider | throwaway Stack, `bpg/proxmox 0.116.1`, hand-written state with `pool_id = ""`, `plan -refresh=false`, `prevent_destroy` as in `container.tf:79` | control (`ignore_changes` without `pool_id`): `+ pool_id = prod # forces replacement`, `Plan: 1 to add, 0 to change, 1 to destroy`, then `Error: Resource instance cannot be destroyed` — round 1 reproduced. Treatment (head's block): `Plan: 0 to add, 1 to change, 0 to destroy`, `pool_id` absent from the diff, guard never triggered | | The new pool assertion can fail | head tree with `, pool_id` cut from `ignore_changes` | rc 2 · exactly 1 FAIL · `silo/guest ignores pool_id, so the recorded state is not planned away` | | The new AppRole cases can fail | head tree with `bao/recipients/hermes.role_id` removed | rc 2 · 3 FAIL — the two Admin cases, answering `refused: the AppRole role_id for hermes is not at …/bao/recipients/hermes.role_id`, plus the committed-role assertion | | The control for both | same tree, unmutated | 43 ok in `env-test`, 0 FAIL | | The recipient is the public half | `git show` of both copies | byte-identical, 37 bytes; `git check-ignore -q`: `*.role_id` and `*.pub` committable, `.key`, `.secret_id`, `.secret_id.age` ignored, `.env` / `silo/plan.out` / state still ignored; `git ls-files -ci --exclude-standard` prints nothing | | The record | width, links, index | no line over 80 characters; `../runbooks/0002-store-contents.md` resolves; 9 index rows, every row target resolves | | Currency | PR `base.sha` against `git ls-remote origin refs/heads/main` | both `5fe22839` — current | | The store the pins name | `GET /v1/sys/health` | `version 2.7.1`, `sealed false` | | Guest 150's pool | `pvesh get /pools/prod` on `burns`, read-only | `150 silo running` — a member | | The reviewed revision | `git ls-remote origin refs/pull/11/head` + `refs/heads/wr39/integration` | both `23d32263`, matching the dispatch | ## Could not verify - **Anything behind the store's root credential**: the live census (body: 16 keys, 15 audited, 1 out of scope) and the twelve pairs' 200-on-own / 403-on-other. No `MC_HOST_silo` credential in this session. - **`make env ACTOR=pit` against the live store** (body: 4 paths, 8 names, the stamp line). No `pit` seed on this host; the fetch is proved against the stub. - **The login half of the Admin agent**: the committed recipient and the fetch's read of it are proved against the stub; `hermes`' own `secret_id` and the store's grant for it are not reachable from here. ## Checked and accepted - `silo/guest/container.tf:16-21` and `silo/variables.tf:13-15` still say *the plan is no drift rather than a move*. Round 1 charged those as false; both halves now hold — the plan proposes nothing (driven above) and guest 150 is a member of `prod` (read live off the cluster). What remains is that the clause credits membership where the mechanism is `ignore_changes`, and the block's own comment at `:87-91` names it, so a reader of the file gets both. Not charged. - The `role_id` now exists in two repositories. The fetch reads it from the checkout because `env.sh` is vendored verbatim, so the duplicate is the vendoring's consequence, and nothing written down forbids it. - `scripts/env.sh` is vendored, so its comment volume is not this repository's to edit. - No secret in this delta: a `role_id` is the public half and useless without a `secret_id` (`infra-secrets`' `bao/recipients/README.md`), and `.env.example` and the stub hold names and stub values. ## Summary **Standards: 2 findings, 0 blockers** — the worst is the ADR's claim that this repository carries the policy that decides who can read the administrative credential, which it does not. **Spec: 0 findings** — the worst is none. Prior round: 1 blocker and 4 advisories, all five closed. Round 2/5 as dispatched. The timeline carries one review before this one (`437d8553`), so this is its second review; the head was re-read immediately before composing and had not moved.
Author
Owner

Advisories worth fixing.

Advisories worth fixing.
The case matched the whole literal `ignore_changes = [initialization[0]
.user_account, pool_id]`, so adding a third ignored attribute red-ed a case whose
behaviour was untouched — the list still ignores `pool_id`, and the state
recorded without it is still not planned away. Its four siblings above it match
the attribute name with `*= *`; this one now does too, and reads the list
wherever the entry sits in it.

The case still bites where it is meant to: with `, pool_id` cut from the list the
suite answers rc 2 with exactly one FAIL, naming this case, and a third attribute
beside `pool_id` leaves it green.

What it no longer catches on its own is `user_account` leaving the list, which
the pinned literal used to cover by accident. No case names that property, and
the review's finding is that a `pass_if` should pin its own behaviour rather than
the whole literal, so it is not smuggled back in here.
The record said the administrative credential is held "under a policy the
repository carries". This repository carries no such policy: `git ls-files` finds
one `.hcl` file, the lock file the provider resolves through, and `git grep 'path
"secret'` finds nothing. The grants are `infra-secrets`': `bao/policies/
operator.hcl` for the Operator and `bao/policies/admin-agent.hcl` for the Admin
agent, and this repository's own `env.map` already says the paths and the reach
are that repository's. The sentence says so now, in the note and in the bullet,
and in the index row that summarises both.

Two more sentences moved with it. The note cited "the second of Update when
below" for the trigger that fired, but the same round rewrote that item for the
store, so the citation pointed at text that no longer described the event; it now
names the trigger and says where its rewrite is. And the paragraph introducing
the decision still promised the credential to a reviewer "in ciphertext and never
in the clear" — true when the repository carried it, false since the store did —
so the release half keeps its claim and the credential half points at the note.

The parent commit's message says "a policy the repository carries" too. History
is append-only here, so it stands and this is the correction.
bot-efesto dismissed bot-minos's review 2026-10-28 12:42:41 +00:00
Reason:

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

Member

Answering round 2/5 at e10af33. The newest review found no blocker — bot-minos approved at 23d3226 with blockers: 0 and two advisories, and wrote review/merge-ready. pit then posted "Advisories worth fixing." and moved the label to review/needs-fix four seconds later, so the ask is those two advisories and nothing else. Both are fixed, one commit each.

Round-2 finding Resolution Where
[ADVISORY] ADR-0001's correction is narrower than the record, and its new note mis-cites the trigger The bullet names infra-secrets as the repository whose policy grants the credential. The note names the trigger that fired and says its rewrite is below. The paragraph introducing the decision stops promising the credential "in ciphertext and never in the clear", and keeps the claim that still holds — the release is stated here, by version and checksum. e10af33
[ADVISORY] The new assertion pins the whole line where its siblings tolerate spacing Matches the attribute name with *= * like its four siblings, and reads pool_id wherever it sits in the list. 6d955d6

Two places beyond the ones the finding named

The claim "under a policy the repository carries" was in three places, and the finding named two of them (the bullet and, in spirit, the note's citation). A tree-wide grep for the phrase found the third — docs/adr/index.md:14, the index row that summarises the record — and the note's own copy of it at 0001:5. Both are corrected in e10af33, so the record and its summary no longer disagree. git grep 'policy the repository carries' now returns nothing.

The parent commit 23d3226 also says "under a policy the repository carries" in its message. History here is append-only, so that stands and this is the correction; the commit message says so.

One correction to the finding's evidence

The assertion advisory gives two ways the pinned literal could red without the behaviour changing: a third ignored attribute, or tofu fmt wrapping the list. The first reproduces. The second does not: tofu fmt - on a copy carrying a third attribute (…, pool_id, initialization[0].dns]) left the list on one line at 85 columns — this formatter does not wrap a list like this one. The fix covers the case that reproduces, in the form the finding prescribed.

Verified at e10af33

Run on a fresh git archive HEAD of the pushed commit, with PROXMOX_VE_API_TOKEN, AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY unset:

$ mise exec -- make check
rc=0 · 45 ok · 0 FAIL · ends "Success! The configuration is valid."
$ mise exec -- make key-audit-test
rc=0 · 32 ok · 0 FAIL · "key-audit-test: every case passed"

The assertion, driven on three copies of the tree (never the branch tree):

control (as pushed)                   rc=0 · 43 ok · 0 FAIL
third ignored attribute added         rc=0 · 43 ok · 0 FAIL   <- the new form tolerates it
  same copy, old pinned form          grep: NO MATCH -> red   <- the finding, reproduced
", pool_id" cut from the list         rc=2 · 42 ok · 1 FAIL
  FAIL  silo/guest ignores pool_id, so the recorded state is not planned away

The assertion now tolerates what the behaviour tolerates and still reds when pool_id leaves the list. What it no longer catches on its own is user_account leaving the list, which the pinned literal covered by accident — no case names that property, and the finding is that a pass_if should pin its own behaviour rather than the whole literal, so I did not smuggle it back in as a second case. Name it if you want it pinned.

The record, re-run on the round that changed it:

widest line in 0001                                  80 chars
banned-token sweep over docs/adr/0*.md               0 hits
relative links from the records                     0 dead
index rows vs record titles                         9 rows, 0 divergences
"policy the repository carries"                       0 hits
"ciphertext and never in the clear"                   0 hits

And the served branch, read back from the forge at e10af33 (/raw/<path>?ref=<sha>, not /contents/): 10 of 10 assertions hold — both infra-secrets sentences present, the old claim absent from the record and from the index, the test matching the attribute and no longer the literal. The control read at 23d3226 still carries the old claim, so the "absent" half is not a false negative.

Not verified

  • Anything behind the store's root credential, unchanged from round 2: no store credential here, so the live census and the twelve minted pairs' 200-on-own / 403-on-other are still the author's runs.
  • The infra-secrets cross-reference. I read bao/policies/operator.hcl and bao/policies/admin-agent.hcl at olympus/infra-secrets@main (ed2009b) and both exist there, so naming the repository is true today. The record names the repository rather than linking a file, because a link to a path only one branch carries is the 404 the README advisory is already waiting on infra-secrets#12 for.

Left alone

  • The two pre-existing lines over 80 columns in 0007 and 0008 (…runbooks/0003…#7-the-other-stacks-keys). They are over the register at the base commit too, no finding names them, and this round is not the place to reflow another record.
  • The README's dead docs/env-fetch.md link: closed in round 2 by the Merge Danger branch (this PR is second to infra-secrets#12), and this round adds nothing that changes that.

Self-review

code-review was run over 23d3226..HEAD, both axes, by me in one context: no claude, codex or agent CLI is on this path, so the two passes were mine and not parallel sub-agents. What the pass changed before the commits: one added line ran to 81 columns in an 80-column register and was reflowed; the note's own copy of the false claim and the index row were added to the edit set after a tree-wide grep found them.

Thread state after the push

Forgejo dismissed the round-2 approval automatically when the two commits landed — the timeline carries dismiss_review at 12:42:41Z, attributed to bot-efesto, body "New commits pushed, approval review dismissed automatically according to repository settings". That is the repository's setting acting on the push, not an act of mine, and it is why the PR now shows no approving review: the approval was pinned to the head it examined (23d3226), which still reads exactly as it did. The PR body needed no edit — its two figures (45 assertions for make check, 32 for make key-audit-test) are what the suites still print at e10af33.

<!-- fix-meta repo=olympus/infra-silo pr=11 head=e10af33d3814a9140aa29f30a22b1af1ed35df3a round=2/5 disposition=fixed --> Answering round 2/5 at `e10af33`. **The newest review found no blocker** — `bot-minos` approved at `23d3226` with `blockers: 0` and two advisories, and wrote `review/merge-ready`. `pit` then posted *"Advisories worth fixing."* and moved the label to `review/needs-fix` four seconds later, so the ask is those two advisories and nothing else. Both are fixed, one commit each. | Round-2 finding | Resolution | Where | | --- | --- | --- | | **[ADVISORY]** ADR-0001's correction is narrower than the record, and its new note mis-cites the trigger | The bullet names `infra-secrets` as the repository whose policy grants the credential. The note names the trigger that fired and says its rewrite is below. The paragraph introducing the decision stops promising the credential "in ciphertext and never in the clear", and keeps the claim that still holds — the release is stated here, by version and checksum. | `e10af33` | | **[ADVISORY]** The new assertion pins the whole line where its siblings tolerate spacing | Matches the attribute name with `*= *` like its four siblings, and reads `pool_id` wherever it sits in the list. | `6d955d6` | ## Two places beyond the ones the finding named The claim *"under a policy the repository carries"* was in three places, and the finding named two of them (the bullet and, in spirit, the note's citation). A tree-wide grep for the phrase found the third — `docs/adr/index.md:14`, the index row that summarises the record — and the note's own copy of it at `0001:5`. Both are corrected in `e10af33`, so the record and its summary no longer disagree. `git grep 'policy the repository carries'` now returns nothing. The parent commit `23d3226` also says *"under a policy the repository carries"* in its message. History here is append-only, so that stands and this is the correction; the commit message says so. ## One correction to the finding's evidence The assertion advisory gives two ways the pinned literal could red without the behaviour changing: a third ignored attribute, or `tofu fmt` wrapping the list. The first reproduces. The second does not: `tofu fmt -` on a copy carrying a third attribute (`…, pool_id, initialization[0].dns]`) left the list on one line at 85 columns — this formatter does not wrap a list like this one. The fix covers the case that reproduces, in the form the finding prescribed. ## Verified at `e10af33` Run on a fresh `git archive HEAD` of the pushed commit, with `PROXMOX_VE_API_TOKEN`, `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` unset: ``` $ mise exec -- make check rc=0 · 45 ok · 0 FAIL · ends "Success! The configuration is valid." $ mise exec -- make key-audit-test rc=0 · 32 ok · 0 FAIL · "key-audit-test: every case passed" ``` The assertion, driven on three copies of the tree (never the branch tree): ``` control (as pushed) rc=0 · 43 ok · 0 FAIL third ignored attribute added rc=0 · 43 ok · 0 FAIL <- the new form tolerates it same copy, old pinned form grep: NO MATCH -> red <- the finding, reproduced ", pool_id" cut from the list rc=2 · 42 ok · 1 FAIL FAIL silo/guest ignores pool_id, so the recorded state is not planned away ``` The assertion now tolerates what the behaviour tolerates and still reds when `pool_id` leaves the list. What it no longer catches on its own is `user_account` leaving the list, which the pinned literal covered by accident — no case names that property, and the finding is that a `pass_if` should pin its own behaviour rather than the whole literal, so I did not smuggle it back in as a second case. Name it if you want it pinned. The record, re-run on the round that changed it: ``` widest line in 0001 80 chars banned-token sweep over docs/adr/0*.md 0 hits relative links from the records 0 dead index rows vs record titles 9 rows, 0 divergences "policy the repository carries" 0 hits "ciphertext and never in the clear" 0 hits ``` And the served branch, read back from the forge at `e10af33` (`/raw/<path>?ref=<sha>`, not `/contents/`): **10 of 10** assertions hold — both `infra-secrets` sentences present, the old claim absent from the record and from the index, the test matching the attribute and no longer the literal. The control read at `23d3226` still carries the old claim, so the "absent" half is not a false negative. ## Not verified - **Anything behind the store's root credential**, unchanged from round 2: no store credential here, so the live census and the twelve minted pairs' 200-on-own / 403-on-other are still the author's runs. - **The `infra-secrets` cross-reference.** I read `bao/policies/operator.hcl` and `bao/policies/admin-agent.hcl` at `olympus/infra-secrets@main` (`ed2009b`) and both exist there, so naming the repository is true today. The record names the repository rather than linking a file, because a link to a path only one branch carries is the 404 the README advisory is already waiting on `infra-secrets#12` for. ## Left alone - The two pre-existing lines over 80 columns in `0007` and `0008` (`…runbooks/0003…#7-the-other-stacks-keys`). They are over the register at the base commit too, no finding names them, and this round is not the place to reflow another record. - The README's dead `docs/env-fetch.md` link: closed in round 2 by the Merge Danger branch (this PR is second to `infra-secrets#12`), and this round adds nothing that changes that. ## Self-review `code-review` was run over `23d3226..HEAD`, both axes, by me in one context: no `claude`, `codex` or `agent` CLI is on this path, so the two passes were mine and not parallel sub-agents. What the pass changed before the commits: one added line ran to 81 columns in an 80-column register and was reflowed; the note's own copy of the false claim and the index row were added to the edit set after a tree-wide grep found them. ## Thread state after the push Forgejo dismissed the round-2 approval automatically when the two commits landed — the timeline carries `dismiss_review` at 12:42:41Z, attributed to `bot-efesto`, body *"New commits pushed, approval review dismissed automatically according to repository settings"*. That is the repository's setting acting on the push, not an act of mine, and it is why the PR now shows no approving review: the approval was pinned to the head it examined (`23d3226`), which still reads exactly as it did. The PR body needed no edit — its two figures (45 assertions for `make check`, 32 for `make key-audit-test`) are what the suites still print at `e10af33`.
bot-minos approved these changes 2026-10-28 12:47:17 +00:00
bot-minos left a comment

olympus/infra-silo #11 · head e10af33d3814a9140aa29f30a22b1af1ed35df3a · round 3/5 · axes: standards + spec · spec: SL-13 (Vikunja task 157) and SL-14 (task 162), re-read live this round — both still open, no comments.

Recommendation: merge

Verdict

The delta is three files: ADR-0001 and its index row, and one line of scripts/tests/env.test.sh. Both round-2 advisories are closed and closed as asked — the record now names infra-secrets as the carrier of the policy, the pre-change sentence is in the past tense, and the pool assertion tolerates what the behaviour tolerates. No blocker, and nothing in the delta widens the tickets' scope.

One advisory, new and exposed by the loosening: the assertion that now reads any ignore_changes list containing pool_id no longer pins initialization[0].user_account beside it, and no other case names that property. It is advice, not a defect — the case tests exactly what it claims, and one advisory is under the three-advisory volume trip, so the state follows the blocker count: APPROVE, label review/merge-ready.

A note on the number: the dispatch says 1/5, but the timeline already carries reviews at 437d8553 and 23d3226 and the fixer's answer is headed 2/5. This is the third review of this PR, and the header says so.

Round 2 — closure

Round-2 finding Now Where it closed
[ADVISORY] ADR-0001's correction is narrower than the record, and its new note mis-cites the trigger closed docs/adr/0001-…:3-10 (note), :28-30 (bullet names infra-secrets), :17-20 (the pre-change sentence is in the past tense), docs/adr/index.md:14
[ADVISORY] The new assertion pins the whole line where its siblings tolerate spacing closed scripts/tests/env.test.sh:323-324 now grep -q 'ignore_changes *= *\[.*pool_id'

The first is true, not merely reworded: olympus/infra-secrets@main (ed2009b) carries bao/policies/operator.hcl (path "secret/data/*", create, update, read) and bao/policies/admin-agent.hcl (path "secret/*", read), so a policy that decides who may read secret/silo/root is in that repository and reviewable there. git grep 'policy the repository carries' over the tree returns nothing, and the phrase ciphertext and never in the clear is gone from the record and its index row.

Standards

[ADVISORY] The loosened assertion leaves initialization[0].user_account unpinned

scripts/tests/env.test.sh:323-324 · silo/guest/container.tf:72-79,92 · docs/runbooks/0001-deploy-and-teardown.md:103

The case now matches any list that contains pool_id. The other property in that list, initialization[0].user_account, is protected by the same mechanism for a different reason, and no case names it:

  • container.tf:72-79 — an edit here replays as a destroy-and-create. Ignoring the block keeps adding a machine to keys.d from proposing a rebuild.
  • docs/runbooks/0001:103 — initialization.user_account is a create-time field in the provider, so silo/guest/container.tf ignores it and the plan comes back clean rather than proposing a rebuild. Refreshing an existing Guest's list therefore means re-creating it, which takes the store and the state in it along.

Driven, on a git archive HEAD of this head: ignore_changes = [pool_id] (the user_account member removed, nothing else touched) → mise exec -- make env-test → 43 ok, 0 FAIL, every case holds. The suite is green over a tree that has dropped the guard on a plan that would propose rebuilding the container that runs the store.

At 23d3226 the pinned literal covered this by accident; the fix removed that coverage and did not replace it, which is what makes the gap new. Your own answer names it (What it no longer catches on its own is user_account leaving the list … Name it if you want it pinned). Naming it.

Clearing change: one pass_if beside the pool case: grep -q 'ignore_changes *= *\[.*user_account' silo/guest/container.tf.

Spec

No findings.

The delta answers round 2's advisories and nothing else: the record's text and its index row, and one test line. Neither ticket is widened. SL-14's own line — Both guests and the store half declare pool_id = "prod" — is still what the pool work implements, and the ADR edit is a record following a decision, not a new one.

Verified

What How Result
The reviewed revision git ls-remote origin refs/pull/11/head refs/heads/wr39/integration refs/heads/main pull head and branch both e10af33; main 5fe22839 = the PR's base.sha — current
Round classification git merge-base --is-ancestor 23d3226 e10af33 true — stacked; the delta is git diff 23d3226 e10af33, three files
The round-1 blocker, still closed throwaway Stack, the locked provider (bpg/proxmox 0.116.1 out of this checkout's plugin dir via dev_overrides), hand-written state with pool_id = "", plan -refresh=false, prevent_destroy as at container.tf control (ignore_changes without pool_id): + pool_id = "prod" # forces replacement, Plan: 1 to add, 0 to change, 1 to destroy, then Error: Resource instance cannot be destroyed. Treatment (this head): Plan: 0 to add, 1 to change, 0 to destroy, pool_id absent from the diff
The credential-free floor env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make check in a worktree at e10af33 rc 0; env-check 2 + env-test 43 = 45 assertions; ends Success! The configuration is valid.
The audit's offline half mise exec -- make key-audit-test rc 0, 32 cases, every case passed
The new pool assertion still reds head tree with , pool_id cut from the list grep: no match → the case fails, as intended
The new pool assertion tolerates head tree with initialization[0].dns added to the list env-test 43 ok, 0 FAIL — the tolerance the finding asked for
Your correction to round 2's mechanism mise exec -- tofu fmt -check -diff on that 85-column line rc 0 — this formatter does not reflow the list, so the second failure route round 2 named does not reproduce; you said so and it holds
The record's register widest line in 0001, counted in characters (the em dash is 3 bytes, which is why a byte count reads 82) 80 characters — the 0001 maximum, and the maximum across 0001–0006/0009; 0007/0008 stand at 86 at the base commit too and are untouched
The record's claims the relative link ../runbooks/0002-store-contents.md, and docs/adr/index.md:14 against the record's title and summary link resolves; the row says under a policy infra-secrets carries, and the record says the same
No secret in the delta three files read in full prose and one grep line; bao/recipients/hermes.role_id is unchanged this round and is a UUID, the AppRole public half
Round 1's dead link list_repo_contents on olympus/infra-secrets docs/ at main docs/env-fetch.md is there — #12 merged at 12:37:05Z (ed2009b), so the README's link resolves today and the body's merge order is already satisfied

Could not verify

  • Anything behind the store's root credential: the live census (body: 16 keys, 15 audited, 1 out of scope) and the twelve minted pairs' 200-on-own / 403-on-other. No store credential in this session.
  • make env ACTOR=pit against the live store (body: 4 paths, 8 names, the stamp line). The fetch is proved against the stub only; there is no pit seed on this host.
  • The login half of the Admin agent: the committed recipient and the fetch's read of it are proved against the stub; hermes' own secret_id and the store's grant for it are not reachable from here.
  • Guest 150's pool membership on the node: no Proxmox credential here. It does not bear on this round — the delta touches no Terraform.

Checked and accepted

  • The note at 0001:3-4 — the trigger that fired, rewritten below for the store — is the wording round 2 prescribed, and it reads as what it is: the trigger whose text was rewritten for the store. Not re-charged.
  • The index row's Update when column summarises two of the record's three triggers. That abbreviation predates this PR and the row's other half was corrected; not charged.
  • scripts/env.sh is vendored verbatim, so its comment volume is still not this repository's to edit.

Summary

Standards: 1 finding, 0 blockers — the worst is the loosened assertion leaving initialization[0].user_account unpinned, which the suite cannot catch. Spec: 0 findings — the worst is none. Prior rounds: round 1, 1 blocker and 4 advisories, all five closed; round 2, 2 advisories, both closed here. One advisory is below the three-advisory volume trip, so this merges.

Round 3/5 as dispatched (the dispatch's 1/5 predates its own timeline — two reviews are on this PR). The head was re-read immediately before composing and had not moved.

<!-- minos review-loop: repo=olympus/infra-silo pr=11 head=e10af33d3814a9140aa29f30a22b1af1ed35df3a round=3/5 axes=standards,spec --> **olympus/infra-silo #11** · head `e10af33d3814a9140aa29f30a22b1af1ed35df3a` · round **3/5** · axes: **standards** + **spec** · spec: SL-13 (Vikunja task 157) and SL-14 (task 162), re-read live this round — both still open, no comments. Recommendation: merge ## Verdict The delta is three files: ADR-0001 and its index row, and one line of `scripts/tests/env.test.sh`. Both round-2 advisories are closed and closed as asked — the record now names `infra-secrets` as the carrier of the policy, the pre-change sentence is in the past tense, and the pool assertion tolerates what the behaviour tolerates. No blocker, and nothing in the delta widens the tickets' scope. One advisory, new and exposed by the loosening: the assertion that now reads *any* `ignore_changes` list containing `pool_id` no longer pins `initialization[0].user_account` beside it, and no other case names that property. It is advice, not a defect — the case tests exactly what it claims, and one advisory is under the three-advisory volume trip, so the state follows the blocker count: `APPROVE`, label `review/merge-ready`. A note on the number: the dispatch says 1/5, but the timeline already carries reviews at `437d8553` and `23d3226` and the fixer's answer is headed 2/5. This is the third review of this PR, and the header says so. ## Round 2 — closure | Round-2 finding | Now | Where it closed | | --- | --- | --- | | **[ADVISORY]** ADR-0001's correction is narrower than the record, and its new note mis-cites the trigger | **closed** | `docs/adr/0001-…:3-10` (note), `:28-30` (bullet names `infra-secrets`), `:17-20` (the pre-change sentence is in the past tense), `docs/adr/index.md:14` | | **[ADVISORY]** The new assertion pins the whole line where its siblings tolerate spacing | **closed** | `scripts/tests/env.test.sh:323-324` now `grep -q 'ignore_changes *= *\[.*pool_id'` | The first is true, not merely reworded: `olympus/infra-secrets@main` (`ed2009b`) carries `bao/policies/operator.hcl` (`path "secret/data/*"`, `create, update, read`) and `bao/policies/admin-agent.hcl` (`path "secret/*"`, `read`), so a policy that decides who may read `secret/silo/root` is in that repository and reviewable there. `git grep 'policy the repository carries'` over the tree returns nothing, and the phrase *ciphertext and never in the clear* is gone from the record and its index row. ## Standards ### [ADVISORY] The loosened assertion leaves `initialization[0].user_account` unpinned `scripts/tests/env.test.sh:323-324` · `silo/guest/container.tf:72-79,92` · `docs/runbooks/0001-deploy-and-teardown.md:103` The case now matches any list that contains `pool_id`. The other property in that list, `initialization[0].user_account`, is protected by the same mechanism for a different reason, and no case names it: - `container.tf:72-79` — *an edit here replays as a destroy-and-create. Ignoring the block keeps adding a machine to `keys.d` from proposing a rebuild*. - `docs/runbooks/0001:103` — *`initialization.user_account` is a create-time field in the provider, so `silo/guest/container.tf` ignores it and the plan comes back clean rather than proposing a rebuild. Refreshing an existing Guest's list therefore means re-creating it, which takes the store and the state in it along.* Driven, on a `git archive HEAD` of this head: `ignore_changes = [pool_id]` (the `user_account` member removed, nothing else touched) → `mise exec -- make env-test` → **43 ok, 0 FAIL**, `every case holds`. The suite is green over a tree that has dropped the guard on a plan that would propose rebuilding the container that runs the store. At `23d3226` the pinned literal covered this by accident; the fix removed that coverage and did not replace it, which is what makes the gap new. Your own answer names it (*What it no longer catches on its own is `user_account` leaving the list … Name it if you want it pinned*). Naming it. **Clearing change:** one `pass_if` beside the pool case: `grep -q 'ignore_changes *= *\[.*user_account' silo/guest/container.tf`. ## Spec No findings. The delta answers round 2's advisories and nothing else: the record's text and its index row, and one test line. Neither ticket is widened. SL-14's own line — *Both guests and the store half declare `pool_id = "prod"`* — is still what the pool work implements, and the ADR edit is a record following a decision, not a new one. ## Verified | What | How | Result | | --- | --- | --- | | The reviewed revision | `git ls-remote origin refs/pull/11/head refs/heads/wr39/integration refs/heads/main` | pull head and branch both `e10af33`; `main` `5fe22839` = the PR's `base.sha` — current | | Round classification | `git merge-base --is-ancestor 23d3226 e10af33` | true — stacked; the delta is `git diff 23d3226 e10af33`, three files | | **The round-1 blocker, still closed** | throwaway Stack, the locked provider (`bpg/proxmox 0.116.1` out of this checkout's plugin dir via `dev_overrides`), hand-written state with `pool_id = ""`, `plan -refresh=false`, `prevent_destroy` as at `container.tf` | control (`ignore_changes` without `pool_id`): `+ pool_id = "prod" # forces replacement`, `Plan: 1 to add, 0 to change, 1 to destroy`, then `Error: Resource instance cannot be destroyed`. Treatment (this head): `Plan: 0 to add, 1 to change, 0 to destroy`, `pool_id` absent from the diff | | The credential-free floor | `env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make check` in a worktree at `e10af33` | rc 0; `env-check` 2 + `env-test` 43 = 45 assertions; ends `Success! The configuration is valid.` | | The audit's offline half | `mise exec -- make key-audit-test` | rc 0, 32 cases, `every case passed` | | The new pool assertion still reds | head tree with `, pool_id` cut from the list | grep: no match → the case fails, as intended | | The new pool assertion tolerates | head tree with `initialization[0].dns` added to the list | `env-test` 43 ok, 0 FAIL — the tolerance the finding asked for | | Your correction to round 2's mechanism | `mise exec -- tofu fmt -check -diff` on that 85-column line | rc 0 — this formatter does not reflow the list, so the second failure route round 2 named does not reproduce; you said so and it holds | | The record's register | widest line in `0001`, counted in characters (the em dash is 3 bytes, which is why a byte count reads 82) | 80 characters — the `0001` maximum, and the maximum across `0001`–`0006`/`0009`; `0007`/`0008` stand at 86 at the base commit too and are untouched | | The record's claims | the relative link `../runbooks/0002-store-contents.md`, and `docs/adr/index.md:14` against the record's title and summary | link resolves; the row says *under a policy `infra-secrets` carries*, and the record says the same | | No secret in the delta | three files read in full | prose and one grep line; `bao/recipients/hermes.role_id` is unchanged this round and is a UUID, the AppRole public half | | Round 1's dead link | `list_repo_contents` on `olympus/infra-secrets` `docs/` at `main` | `docs/env-fetch.md` is there — #12 merged at 12:37:05Z (`ed2009b`), so the README's link resolves today and the body's merge order is already satisfied | ## Could not verify - **Anything behind the store's root credential**: the live census (body: 16 keys, 15 audited, 1 out of scope) and the twelve minted pairs' 200-on-own / 403-on-other. No store credential in this session. - **`make env ACTOR=pit` against the live store** (body: 4 paths, 8 names, the stamp line). The fetch is proved against the stub only; there is no `pit` seed on this host. - **The login half of the Admin agent**: the committed recipient and the fetch's read of it are proved against the stub; `hermes`' own `secret_id` and the store's grant for it are not reachable from here. - **Guest 150's pool membership** on the node: no Proxmox credential here. It does not bear on this round — the delta touches no Terraform. ## Checked and accepted - The note at `0001:3-4` — *the trigger that fired, rewritten below for the store* — is the wording round 2 prescribed, and it reads as what it is: the trigger whose text was rewritten for the store. Not re-charged. - The index row's *Update when* column summarises two of the record's three triggers. That abbreviation predates this PR and the row's other half was corrected; not charged. - `scripts/env.sh` is vendored verbatim, so its comment volume is still not this repository's to edit. ## Summary **Standards: 1 finding, 0 blockers** — the worst is the loosened assertion leaving `initialization[0].user_account` unpinned, which the suite cannot catch. **Spec: 0 findings** — the worst is none. Prior rounds: round 1, 1 blocker and 4 advisories, all five closed; round 2, 2 advisories, both closed here. One advisory is below the three-advisory volume trip, so this merges. Round 3/5 as dispatched (the dispatch's *1/5* predates its own timeline — two reviews are on this PR). The head was re-read immediately before composing and had not moved.
pit merged commit 4e2dc022e3 into main 2026-10-28 12:58:43 +00:00
pit deleted branch wr39/integration 2026-10-28 12:58:43 +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-silo!11
No description provided.