Declare the forge records' deploy-shaped state keys (SC-16) #25
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
olympus/infra-silo!25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/sc16-forge-deploy-state-keys"
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?
Implements the store-owner half of SC-16, as olympus/infra-silo!19 did for the tracker (SC-15). Consumer half: olympus/infra-secrets!31.
Summary
Evidence
Minted live 2026-11-09 with
make key-mint(policy embedded at creation), pairs atsecret/tofu-state/forge-{guest,runner,edge}/deploywith infra-forge's field namesFORGE_*_STATE_{ACCESS_KEY_ID,SECRET_ACCESS_KEY}:make key-audit:28 key(s) under silo/, 27 audited, 1 out of scope, 0 failing; the three new keysokagainst their files.statof its own record answers;prod/openbao.tfstate-> Insufficient permissions;rm prod/silo.tfstate-> Insufficient permissions; a wrong secret -> signature mismatch.make checkgreen.make store-plan:0 to add, 2 to change, 0 to destroy. The two changes are SL-23'ssecret_key_wo_version -> nullon the tracker's deploy keys, there before this change.Merge Danger
Door: two-way
Blast Radius: store
The three keys are already in the store and in its state, so merge soon: until then
make storefrommainplans their destroy and theprevent_destroyguard refuses the run. Undo of the live half is a deliberate key removal (lift the guard in the same diff), not a revert.Review started (round 1/5) on
30a5245e1e— reading the diff now.Review — olympus/infra-silo · PR #25 · head
30a5245e1e6605b9089b454c758e5a737f6de7e9· round 1/5 (the thread carries no earlier review, so this is the first) · verdict: mergeRecommendation: merge
Spec source: the PR body, which names SC-16 ("Extend the Semaphore runner's reach to infra-forge", Vikunja project 8, task 274, read live) as the ticket whose store-owner half this lands. The ticket's own acceptance criteria are about the runner's reads, the Proxmox ACL, the JWT role and the Forgejo token. Only the first one touches this repo, and only through the three keys it reads. The ticket's comments name this PR as the store half ("
tofu-deploy-state-forge-{guest,runner,edge}declared, each with its deploy-shape policy"), so the PR body's description stands as the contract.Standard:
AGENTS.md§Pull requests, §Docs, §Code comments, §Toolchain; the sibling declarations (!19, !22, !23) as the precedent for which sentences move.Reviewed delta:
git diff origin/main...HEAD, basef8b529e, one commit, 8 files, +83/−8. The pull ref on the host resolves to the dispatch SHA.Standards
No findings. Checked:
AGENTS.md§Toolchain:make checkis the floormise exec -- make checkat head: rc=0, including the key guards' tests,fmt-checkandvalidate. CIpr-checks / check (pull_request)issuccessat this SHA.AGENTS.md§Pull requests: name the task asSC-<index>AGENTS.md§Code commentssilo/store/variables.tf:61-63, matching the comment each sibling group carries.README.md:137), ADR 0010 counts (docs/adr/0010-…md:5-6), runbook 0001's "rather than N times" (docs/runbooks/0001-deploy-and-teardown.md:170), runbook 0003 §7 total and deploy-row count (docs/runbooks/0003-the-state-in-the-store.md:263,:345). A census of the number words at head finds no sentence left at the old figure.Spec
No findings. Each claim the change makes was reproduced:
s3:DeleteObjecton the.tfstatediffagainstforge-*-state-policy.json: the object statement is split,Deletestays only on the.tflockARN. Againsttracker-edge-deploy-state-policy.json, name-normalised, the diff is empty for all three. Againstforge-*-plan-state-policy.jsonthe only difference iss3:PutObjecton the record.silo/store/forge-{guest,edge,runner}-deploy-state-policy.json:10-18)prod/forge-guest.tfstate,prod/forge-edge.tfstateandprod/forge-runner.tfstate; infra-forge'sbackend.tfatorigin/mainkeys the three Stacks to the same objects.${#name}: 29, 28 and 30.key-mint.sh's shapecaserun on the three file names givessecret/tofu-state/forge-{guest,edge,runner}/deploy. That is the path infra-secrets!31'sdocs/store-layout.mdandautomation-runner.hclgrant.var.state_keysentries counted at base (21) and head (24). The README enumeration sums to 9+6+7+2 = 24.deploy-state-policy.jsonat head, 5 at base. The paragraph at:345-364enumerates 5 earlier and "the last three".commof the map'spolicy =values againstsilo/store/*-policy.json: only the three intentionally unmapped files differ (provisioner,silo-plan-state,state-policy), the same as at base.git diff --check, clean treeNamed, not charged
make key-mintrun,make key-audit"0 failing", the per-key stat/rm refusals,make store-plan"0 to add, 2 to change, 0 to destroy", the runner's login reading all three paths) was not re-run. This session holds no store or OpenBao credential, andAGENTS.md§Secrets keeps that fetch with the Operator and the Admin agent. The ticket's comment thread records the same figures independently, which is corroboration and not reproduction.store-layout.mdandautomation-runner.hclpaths agree with this PR's derived mint paths (read at thehermes/sc16-semaphore-runner-infra-forgebranch). It is not judged here.make storefrommainplans their destroy and theprevent_destroyguard refuses the run. Merge soon.docs/runbooks/0003-the-state-in-the-store.md:364: "make key-mintcreated all three" asserts a live act the diff cannot show. It is consistent with the body and the ticket, so it is not charged.Summary
No blockers and no advisories, so the state is APPROVE and the label is
review/merge-ready.