The state keys' own policies, and the environment fetched from the store (SL-13, SL-14) #11
No reviewers
Labels
No labels
needs-info
needs-triage
ready-for-agent
ready-for-human
review
merge-ready
review
needs-fix
review
needs-human
review
needs-operator
review
needs-review
review
waiting
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
olympus/infra-silo!11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "wr39/integration"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.jsonmoved in frominfra-semaphore, and the four missing plan-policy files authored (silo,semaphore,tracker-guest,tracker-edge), each copyingforge-guest-plan-state-policy.json's shape: read the record, write only the lock beside it.make key-audit+make key-audit-test: a key's stored policy against the file it was minted from, throughmcliand the MinIO admin API. Separate fromvalidate, which stays credential-free; atofu*key that matches no file reds, a key minted outsidesilo/store/*.jsonis named as out of scope.SL-14 — the environment
scripts/env.shvendored frominfra-secrets@137870c6…;env.mapnamessecret/silo/{provisioner,root,service-account}andsecret/tofu-state/silo/apply.make env,env-check,env-test, andcheck(env-check env-test fmt-check validate) as the floor;plan,guest,store-plan,store,verify,sshand the service targets refuse by name before composing a command.age 1.3.2andopenbao 2.7.1pinned and locked.vault-passare deleted; the role readsSILO_ROOT_PASSWORDfrom the environment.pool_id = "prod"on the guest object and on the container, inignore_changesso the state PROD recorded without it is not planned away.bao/recipients/hermes.role_idis committed, so the Admin agent — the fetch's other class — logs in by AppRole, not only the Operator'suserpass.Evidence
env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY make check→ exit 0, 45 assertions (2env-check+ 43env-test, the Admin agent's fetch and the pool'signore_changesamong them), throughmise exec --, which is the repo's Toolchain rule — a baremakehere answerstofu: command not found.make env ACTOR=pitagainst the live store: 4 paths, 8 names,.env0600, first line# fetched 2026-10-28T12:02:42Z actor=pit store=https://10.12.0.144:8200.make key-auditagainst 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 twovariables.tfdeclarations, the container's attribute and itsignore_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
olympus/infra-secrets#12.scripts/env.shis vendored from that PR'swr39/integrationandREADME.mdlinks the interface page it adds, sodocs/env-fetch.mdis a 404 atmainuntil #12 lands: merge that one first.pool_idis inignore_changesbecause PROD's recorded state carries none: a Guest this configuration creates recordsprod, and guest 150 keeps the membership a hand join gave it. A later change to the pool is a state adoption, not a plan.make envcannot run the service targets. The four values it needs are already in the store.checkincludesvalidate, which needs.envand the store in a checkout that has already applied (a fresh clone needs neither).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.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.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_idaddition: 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 ownlifecycle { prevent_destroy = true }then refuses — so no data loss, butmake plan,make guestandmake prodstop 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 threepool_idedits from this PR rather than to hold it open.Spec
[BLOCKER]
pool_idplans a replacement the guard then refuses, and the comments state the oppositesilo/guest/container.tf:16-21(attribute at:21),silo/guest/variables.tf:24,silo/variables.tf:11-15,30,44The comment at
container.tf:16-21says:and
silo/variables.tf:14-15repeats it ("the plan for this field is no drift"). Both are false against the provider this repo resolves.Evidence, in order:
tofu initin this tree installs bpg/proxmox v0.116.1, and the resource schema at that tag ispool_id: {Type: string, Optional: true, ForceNew: true, Default: dvPoolID}(proxmoxtf/resource/container/container.go:1034-1040).pool_idis read from the configuration at create/clone (:1335,:2225) and never written back in a read — there is nod.Set(mkPoolID, …)anywhere in the file — so a state recorded before this change carriespool_id = ""and cannot absorb the new value by refresh.pool_id = "", andplan -refresh=false:pool=""):Plan: 0 to add, 1 to change, 0 to destroy.pool="prod"):-/+ destroy and then create replacement,+ pool_id = "prod" # forces replacement,Plan: 1 to add, 0 to change, 1 to destroy.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 guestandmake prodall stop at plan time on PROD's state until the attribute is removed or the guard lifted, anddocs/agents/workflow.md:90still listsplanamong 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 declarepool_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, andsilo/variables.tf:11-15,30,44from 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 byprevent_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,234vsAGENTS.md:25-27AGENTS.mdas 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 nobao/directory at all (git ls-files | grep -c '^bao/'→0;infra-secretscarrieshermes.role_id,minos.role_id,efesto.role_id,runner.role_id). Driven against the stub store with a seededHOME:The Operator path (
ACTOR=pit, userpass) works — I drove it — so the ticket'smake envis satisfied for the Operator only.Clearing change: commit
bao/recipients/hermes.role_id(37 bytes, non-secret, asinfra-secretsdoes), or narrowAGENTS.md:25-27to 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 (31expect_*call sites plus one directpass);mise exec -- make key-audit-test | grep -c '^ok'→32, and it exits 0. The other count in the body checks out:make checkprints41(2fromenv-check,39fromenv-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:53says 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 touchesdocs/adr/nowhere:git diff --name-only <base> HEAD -- docs/adris 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
mainREADME.md:125(also named atAGENTS.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/integrationbranch.README.mdis 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
env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make checkin a fresh worktree at the reviewed headenv-check2 +env-test39 = 41 assertionsmise exec -- make key-audit-testonly in the key: s3:PutObjectscripts/env.sh fetchagainstscripts/tests/stub-store.py,ACTOR=pit(rev N),actor pit · method userpass · ttl 3600s,target …/.env (0600), stamp# fetched 2026-10-28T12:09:40Z actor=pit store=…ENV_STORE_ADDR=http://127.0.0.1:9and a stale.envrefused: … nothing written;.envsha256 identical before/after; no.env.tmpenv-checkin both directionsdoes not match its pin, naming both hashes); red on a mapped name missing from.env.example; red on a declared name no row sourcesinfra-secrets@wr39/integration,scripts/env.sh137870c6…, mode100755docs/runbooks/0003-the-state-in-the-store.mdsilo/store/trackssemaphore-state-policy.jsonandsemaphore-plan-state-policy.jsonmake -nforenv env-check env-test fmt-check check key-audit key-audit-test plan guest store-plan store verify ssh prod service service-check](…)targets in the 8 changed markdown filesGET /v1/sys/healthversion 2.7.1,sealed false— matchesmise.toml's pin rationalepool_idbehaviourprevent_destroyCould not verify
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'smcli admin accesskey ls silo/check. I have noMC_HOST_silocredential and did not look for one.make envagainst 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.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.Checked and accepted
.gitignorelosessilo/service/vault-passand*.plaintext: both named the vault this PR deletes, no doc names either any more, and the control row still holds —.envis ignored, andgit ls-files -ci --exclude-standardprints nothing.scripts/env.shis vendored verbatim, so its comment volume is not this repository's to edit; the same goes for itsbao/recipientsconvention, which is charged above only where this repo's own text promises it.pool_idbeing in SL-14's text is acknowledged in the blocker; the finding is the sequencing and the two comments, not the requirement..env.exampleis names only,scripts/tests/stub-store.pyholds stub values, and the removedvault.ymlis 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).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 onwr39/integrationat 12:15:33Z frompit, taking the second branch the review offered: the field stays declared, andignore_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.23d3226sits on top of8adc3cd, nothing of his is rewritten, and the history is a fast-forward.Findings
pool_idplans a replacement the guard refuses, and the comments state the oppositepool_idstays declared on the guest object and the container, and is added to the container'signore_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 instead8adc3cd(author), pinned by23d3226bao/recipients/hermes.role_idcommitted — 37 bytes, the AppRole public half, byte-identical toinfra-secrets' copy — with infra-secrets'.gitignoreshape keeping the directory to.pub/.role_id;env-testnow drives a fetch ashermesby AppRole23d3226make key-audit-testprints 32, and the assertion tallies are re-measured at this head23d3226mainolympus/infra-secrets#12, which carriesdocs/env-fetch.md. The link needs no edit and stops being a 404 when that PR landsWhy the first-listed clearing for the Admin agent, not the narrowing
The
AGENTS.mdsentence ("the Operator or the Admin agent fetches") is true only ifhermescan log in here. The interface's identity table grantshermessecret/*, 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' ownbao/recipients/README.mdsays arole_idis useless without thesecret_idsealed to that actor's key.Verified at
23d3226Run on a fresh
git archive HEADof the pushed commit, withPROXMOX_VE_API_TOKEN,AWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEYunset:A bare
make checkanswerstofu: 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:
The recipient's guard:
The records, re-run on the round that changed them: the banned-token sweep over
docs/adr/0*.mdreturns no hits,0001has no line over 80 columns, its../runbooks/0002-store-contents.mdlink resolves, and all nine index labels still match their record titles.Not verified
make plancannot run here — every state-touching Target sources.envunconditionally, 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,mkPoolIDisschema.TypeString, Optional, ForceNew: true, Default: dvPoolID(proxmoxtf/resource/container/container.go:1034-1040), it is read from the configuration at:1335and:2225, andd.Set(mkPoolID, …)appears nowhere in the file — so the recorded state cannot absorb the value by refresh, andignore_changesis what stops the replacement, the mechanism this resource already relies on forinitialization[0].user_account. A plan against PROD's state is the Operator's to run.hermes' ownsecret_idand the store's grant are not reachable from here.make env ACTOR=pitagainst the live store and the livemake key-auditcensus (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-reviewwas run over8adc3cd..23d3226, both axes, by me in one context: noclaude,codexoragentCLI exists on this path, so the two passes were mine and not parallel sub-agents. What the passes changed before the commit: the stubageprintedstub-operator-passwordalthough both fetching classes now use it (renamedstub-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.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_changessuppresses 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:
APPROVEunder the mapping the dispatch states, and the label goes toreview/merge-readybecause two advisories is under the three-advisory volume trip. The advisories travel as advice and move neither.Round 1 — closure
pool_idplans a replacement the guard refuses, and the comments state the opposite8adc3cd(author) addsignore_changes = [initialization[0].user_account, pool_id]atsilo/guest/container.tf:92;23d3226pins it atscripts/tests/env.test.sh:323-324bao/recipients/hermes.role_id, 37 bytes, byte-identical toinfra-secrets@wr39/integration:bao/recipients/hermes.role_id; read atscripts/env.sh:234; driven byscripts/tests/env.test.sh:209-224key-audit-test) and 45 (2env-check+ 43env-test); both re-measureddocs/adr/0001-version-and-administrative-credential-are-reviewable.md:3-9,26-28,49-53; index rowdocs/adr/index.md:14mainolympus/infra-secrets#12, which carriesdocs/env-fetch.md8adc3cdlanded 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-63Three sentences and one cross-reference, in text this delta adds:
: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 onlysilo/.terraform.lock.hcl, andgit grep -n 'path "secret'returns nothing; thesilo/store/*.jsonfiles are MinIO policies, not the store's. The grants areinfra-secrets':bao/policies/operator.hcl(path "secret/data/*",create, update, read) andbao/policies/admin-agent.hcl(path "secret/*",read). This repo's ownenv.map:12-15already says the paths and the reach areinfra-secrets'.: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-63now reads The credential leaves the store that holds it now…. The citation no longer names the trigger that fired.: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-9and the bullet at:26-28.Clearing change: one editing pass over the record: name
infra-secretsin:26-28, reword the note's reference to the trigger that fired, rewritten below for the store, and put:16-18in the past tense.[ADVISORY] The new assertion pins the whole line where its siblings tolerate spacing
scripts/tests/env.test.sh:323-324grep -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, ortofu fmtwrapping 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_idwork is SL-14's own line — Both guests and the store half declarepool_id = prod— and the recipient, the.gitignoreshape 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
env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make checkin a worktree at23d3226Success! The configuration is valid.mise exec -- make key-audit-testbpg/proxmox 0.116.1, hand-written state withpool_id = "",plan -refresh=false,prevent_destroyas incontainer.tf:79ignore_changeswithoutpool_id):+ pool_id = prod # forces replacement,Plan: 1 to add, 0 to change, 1 to destroy, thenError: Resource instance cannot be destroyed— round 1 reproduced. Treatment (head's block):Plan: 0 to add, 1 to change, 0 to destroy,pool_idabsent from the diff, guard never triggered, pool_idcut fromignore_changessilo/guest ignores pool_id, so the recorded state is not planned awaybao/recipients/hermes.role_idremovedrefused: the AppRole role_id for hermes is not at …/bao/recipients/hermes.role_id, plus the committed-role assertionenv-test, 0 FAILgit showof both copiesgit check-ignore -q:*.role_idand*.pubcommittable,.key,.secret_id,.secret_id.ageignored,.env/silo/plan.out/ state still ignored;git ls-files -ci --exclude-standardprints nothing../runbooks/0002-store-contents.mdresolves; 9 index rows, every row target resolvesbase.shaagainstgit ls-remote origin refs/heads/main5fe22839— currentGET /v1/sys/healthversion 2.7.1,sealed falsepvesh get /pools/prodonburns, read-only150 silo running— a membergit ls-remote origin refs/pull/11/head+refs/heads/wr39/integration23d32263, matching the dispatchCould not verify
MC_HOST_silocredential in this session.make env ACTOR=pitagainst the live store (body: 4 paths, 8 names, the stamp line). Nopitseed on this host; the fetch is proved against the stub.hermes' ownsecret_idand the store's grant for it are not reachable from here.Checked and accepted
silo/guest/container.tf:16-21andsilo/variables.tf:13-15still 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 ofprod(read live off the cluster). What remains is that the clause credits membership where the mechanism isignore_changes, and the block's own comment at:87-91names it, so a reader of the file gets both. Not charged.role_idnow exists in two repositories. The fetch reads it from the checkout becauseenv.shis vendored verbatim, so the duplicate is the vendoring's consequence, and nothing written down forbids it.scripts/env.shis vendored, so its comment volume is not this repository's to edit.role_idis the public half and useless without asecret_id(infra-secrets'bao/recipients/README.md), and.env.exampleand 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.Advisories worth fixing.
New commits pushed, approval review dismissed automatically according to repository settings
Answering round 2/5 at
e10af33. The newest review found no blocker —bot-minosapproved at23d3226withblockers: 0and two advisories, and wrotereview/merge-ready.pitthen posted "Advisories worth fixing." and moved the label toreview/needs-fixfour seconds later, so the ask is those two advisories and nothing else. Both are fixed, one commit each.infra-secretsas 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*= *like its four siblings, and readspool_idwherever it sits in the list.6d955d6Two 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 at0001:5. Both are corrected ine10af33, so the record and its summary no longer disagree.git grep 'policy the repository carries'now returns nothing.The parent commit
23d3226also 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 fmtwrapping 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
e10af33Run on a fresh
git archive HEADof the pushed commit, withPROXMOX_VE_API_TOKEN,AWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEYunset:The assertion, driven on three copies of the tree (never the branch tree):
The assertion now tolerates what the behaviour tolerates and still reds when
pool_idleaves the list. What it no longer catches on its own isuser_accountleaving the list, which the pinned literal covered by accident — no case names that property, and the finding is that apass_ifshould 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:
And the served branch, read back from the forge at
e10af33(/raw/<path>?ref=<sha>, not/contents/): 10 of 10 assertions hold — bothinfra-secretssentences 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 at23d3226still carries the old claim, so the "absent" half is not a false negative.Not verified
infra-secretscross-reference. I readbao/policies/operator.hclandbao/policies/admin-agent.hclatolympus/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 oninfra-secrets#12for.Left alone
0007and0008(…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.docs/env-fetch.mdlink: closed in round 2 by the Merge Danger branch (this PR is second toinfra-secrets#12), and this round adds nothing that changes that.Self-review
code-reviewwas run over23d3226..HEAD, both axes, by me in one context: noclaude,codexoragentCLI 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_reviewat 12:42:41Z, attributed tobot-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 formake check, 32 formake key-audit-test) are what the suites still print ate10af33.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 namesinfra-secretsas 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_changeslist containingpool_idno longer pinsinitialization[0].user_accountbeside 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, labelreview/merge-ready.A note on the number: the dispatch says 1/5, but the timeline already carries reviews at
437d8553and23d3226and the fixer's answer is headed 2/5. This is the third review of this PR, and the header says so.Round 2 — closure
docs/adr/0001-…:3-10(note),:28-30(bullet namesinfra-secrets),:17-20(the pre-change sentence is in the past tense),docs/adr/index.md:14scripts/tests/env.test.sh:323-324nowgrep -q 'ignore_changes *= *\[.*pool_id'The first is true, not merely reworded:
olympus/infra-secrets@main(ed2009b) carriesbao/policies/operator.hcl(path "secret/data/*",create, update, read) andbao/policies/admin-agent.hcl(path "secret/*",read), so a policy that decides who may readsecret/silo/rootis 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_accountunpinnedscripts/tests/env.test.sh:323-324·silo/guest/container.tf:72-79,92·docs/runbooks/0001-deploy-and-teardown.md:103The 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 tokeys.dfrom proposing a rebuild.docs/runbooks/0001:103—initialization.user_accountis a create-time field in the provider, sosilo/guest/container.tfignores 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 HEADof this head:ignore_changes = [pool_id](theuser_accountmember 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
23d3226the 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 isuser_accountleaving the list … Name it if you want it pinned). Naming it.Clearing change: one
pass_ifbeside 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
git ls-remote origin refs/pull/11/head refs/heads/wr39/integration refs/heads/maine10af33;main5fe22839= the PR'sbase.sha— currentgit merge-base --is-ancestor 23d3226 e10af33git diff 23d3226 e10af33, three filesbpg/proxmox 0.116.1out of this checkout's plugin dir viadev_overrides), hand-written state withpool_id = "",plan -refresh=false,prevent_destroyas atcontainer.tfignore_changeswithoutpool_id):+ pool_id = "prod" # forces replacement,Plan: 1 to add, 0 to change, 1 to destroy, thenError: Resource instance cannot be destroyed. Treatment (this head):Plan: 0 to add, 1 to change, 0 to destroy,pool_idabsent from the diffenv -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make checkin a worktree ate10af33env-check2 +env-test43 = 45 assertions; endsSuccess! The configuration is valid.mise exec -- make key-audit-testevery case passed, pool_idcut from the listinitialization[0].dnsadded to the listenv-test43 ok, 0 FAIL — the tolerance the finding asked formise exec -- tofu fmt -check -diffon that 85-column line0001, counted in characters (the em dash is 3 bytes, which is why a byte count reads 82)0001maximum, and the maximum across0001–0006/0009;0007/0008stand at 86 at the base commit too and are untouched../runbooks/0002-store-contents.md, anddocs/adr/index.md:14against the record's title and summaryinfra-secretscarries, and the record says the samebao/recipients/hermes.role_idis unchanged this round and is a UUID, the AppRole public halflist_repo_contentsonolympus/infra-secretsdocs/atmaindocs/env-fetch.mdis there — #12 merged at 12:37:05Z (ed2009b), so the README's link resolves today and the body's merge order is already satisfiedCould not verify
make env ACTOR=pitagainst the live store (body: 4 paths, 8 names, the stamp line). The fetch is proved against the stub only; there is nopitseed on this host.hermes' ownsecret_idand the store's grant for it are not reachable from here.Checked and accepted
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.scripts/env.shis 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_accountunpinned, 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.