Declare the forge records' deploy-shaped state keys (SC-16) #25

Merged
pit merged 1 commit from hermes/sc16-forge-deploy-state-keys into main 2026-11-09 12:31:15 +00:00
Owner

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

 silo/store/
+  forge-guest-deploy-state-policy.json    # apply policy minus s3:DeleteObject on prod/forge-guest.tfstate
+  forge-runner-deploy-state-policy.json   # same, prod/forge-runner.tfstate
+  forge-edge-deploy-state-policy.json     # same, prod/forge-edge.tfstate
   variables.tf  var.state_keys
+    tofu-deploy-state-forge-guest / -edge / -runner   (<= 30 chars)
 docs: runbook 0003 §7 table (+3 rows, 8 deploy rows), README, ADR 0010 and runbook 0001 counts (21 -> 24 declared, 23 -> 26 fleet)

Evidence

Minted live 2026-11-09 with make key-mint (policy embedded at creation), pairs at secret/tofu-state/forge-{guest,runner,edge}/deploy with infra-forge's field names FORGE_*_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 keys ok against their files.
  • With each pair read from the store: stat of its own record answers; prod/openbao.tfstate -> Insufficient permissions; rm prod/silo.tfstate -> Insufficient permissions; a wrong secret -> signature mismatch.
  • The Semaphore runner's own login on 145 reads all three paths (200).
  • make check green.
  • make store-plan: 0 to add, 2 to change, 0 to destroy. The two changes are SL-23's secret_key_wo_version -> null on 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 store from main plans their destroy and the prevent_destroy guard refuses the run. Undo of the live half is a deliberate key removal (lift the guard in the same diff), not a revert.

Implements the store-owner half of [SC-16](https://vikunja.thepit.space/tasks/274), as olympus/infra-silo!19 did for the tracker (SC-15). Consumer half: olympus/infra-secrets!31. ## Summary ```diff silo/store/ + forge-guest-deploy-state-policy.json # apply policy minus s3:DeleteObject on prod/forge-guest.tfstate + forge-runner-deploy-state-policy.json # same, prod/forge-runner.tfstate + forge-edge-deploy-state-policy.json # same, prod/forge-edge.tfstate variables.tf var.state_keys + tofu-deploy-state-forge-guest / -edge / -runner (<= 30 chars) docs: runbook 0003 §7 table (+3 rows, 8 deploy rows), README, ADR 0010 and runbook 0001 counts (21 -> 24 declared, 23 -> 26 fleet) ``` ## Evidence Minted live 2026-11-09 with `make key-mint` (policy embedded at creation), pairs at `secret/tofu-state/forge-{guest,runner,edge}/deploy` with infra-forge's field names `FORGE_*_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 keys `ok` against their files. - With each pair read from the store: `stat` of its own record answers; `prod/openbao.tfstate` -> Insufficient permissions; `rm prod/silo.tfstate` -> Insufficient permissions; a wrong secret -> signature mismatch. - The Semaphore runner's own login on 145 reads all three paths (200). - `make check` green. - `make store-plan`: `0 to add, 2 to change, 0 to destroy`. The two changes are SL-23's `secret_key_wo_version -> null` on 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 store` from `main` plans their destroy and the `prevent_destroy` guard refuses the run. Undo of the live half is a deliberate key removal (lift the guard in the same diff), not a revert.
Declare the forge records' deploy-shaped state keys (SC-16)
All checks were successful
pr-checks / check (pull_request) Successful in 22s
30a5245e1e
Member

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

**Review started** (round 1/5) on 30a5245e1e6605b9089b454c758e5a737f6de7e9 — reading the diff now.
bot-minos approved these changes 2026-11-09 12:21:49 +00:00
bot-minos left a comment

Review — olympus/infra-silo · PR #25 · head 30a5245e1e6605b9089b454c758e5a737f6de7e9 · round 1/5 (the thread carries no earlier review, so this is the first) · verdict: merge

Recommendation: 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, base f8b529e, one commit, 8 files, +83/−8. The pull ref on the host resolves to the dispatch SHA.

Standards

No findings. Checked:

Rule Evidence
AGENTS.md §Toolchain: make check is the floor mise exec -- make check at head: rc=0, including the key guards' tests, fmt-check and validate. CI pr-checks / check (pull_request) is success at this SHA.
AGENTS.md §Pull requests: name the task as SC-<index> The body opens with SC-16 and names the consumer half (infra-secrets!31).
AGENTS.md §Code comments The only comment added is the 3-line block in silo/store/variables.tf:61-63, matching the comment each sibling group carries.
Precedent for count sites (!19, !22, !23) Every sentence those PRs moved is moved here: README per-Stack enumeration (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.
Smell baseline The three policy files repeat one shape, but each file carries a different record's ARN and the repo's convention is one file per key (ADR 0010 §What was decided), so no smell is charged.

Spec

No findings. Each claim the change makes was reproduced:

Claim How it was checked Result
Each policy is the apply policy minus s3:DeleteObject on the .tfstate diff against forge-*-state-policy.json: the object statement is split, Delete stays only on the .tflock ARN. Against tracker-edge-deploy-state-policy.json, name-normalised, the diff is empty for all three. Against forge-*-plan-state-policy.json the only difference is s3:PutObject on the record. Confirmed (silo/store/forge-{guest,edge,runner}-deploy-state-policy.json:10-18)
Policies name exactly one record and its lock The ARNs read prod/forge-guest.tfstate, prod/forge-edge.tfstate and prod/forge-runner.tfstate; infra-forge's backend.tf at origin/main keys the three Stacks to the same objects. Confirmed
Key names are ≤ 30 characters (store cap 32) ${#name}: 29, 28 and 30. Confirmed
Mint path derived from the policy file name key-mint.sh's shape case run on the three file names gives secret/tofu-state/forge-{guest,edge,runner}/deploy. That is the path infra-secrets!31's docs/store-layout.md and automation-runner.hcl grant. Confirmed
21 → 24 declared keys var.state_keys entries counted at base (21) and head (24). The README enumeration sums to 9+6+7+2 = 24. Confirmed
23 → 26 across the fleet 24 declared plus the two hand mints §7 names. Consistent
"8 deploy rows" in §7 8 rows match deploy-state-policy.json at head, 5 at base. The paragraph at :345-364 enumerates 5 earlier and "the last three". Confirmed
Every map entry resolves to a file comm of the map's policy = values against silo/store/*-policy.json: only the three intentionally unmapped files differ (provisioner, silo-plan-state, state-policy), the same as at base. Confirmed
git diff --check, clean tree rc=0, empty. Confirmed

Named, not charged

  • The live evidence (the make key-mint run, 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, and AGENTS.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.
  • The consuming half (infra-secrets!31) is a separate PR. Its store-layout.md and automation-runner.hcl paths agree with this PR's derived mint paths (read at the hermes/sc16-semaphore-runner-infra-forge branch). It is not judged here.
  • The merge-order warning in the PR's Merge Danger block is correct as written: the three keys exist in the store and its state, so until this merges, make store from main plans their destroy and the prevent_destroy guard refuses the run. Merge soon.
  • A tense point in docs/runbooks/0003-the-state-in-the-store.md:364: "make key-mint created 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

Axis Findings Worst
Standards 0 none
Spec 0 none

No blockers and no advisories, so the state is APPROVE and the label is review/merge-ready.

<!-- minos review-loop: repo=olympus/infra-silo pr=25 head=30a5245e1e6605b9089b454c758e5a737f6de7e9 round=1/5 axes=standards,spec --> **Review** — olympus/infra-silo · PR #25 · head `30a5245e1e6605b9089b454c758e5a737f6de7e9` · round 1/5 (the thread carries no earlier review, so this is the first) · verdict: **merge** Recommendation: 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`, base `f8b529e`, one commit, 8 files, +83/−8. The pull ref on the host resolves to the dispatch SHA. ## Standards No findings. Checked: | Rule | Evidence | |---|---| | `AGENTS.md` §Toolchain: `make check` is the floor | `mise exec -- make check` at head: rc=0, including the key guards' tests, `fmt-check` and `validate`. CI `pr-checks / check (pull_request)` is `success` at this SHA. | | `AGENTS.md` §Pull requests: name the task as `SC-<index>` | The body opens with SC-16 and names the consumer half (infra-secrets!31). | | `AGENTS.md` §Code comments | The only comment added is the 3-line block in `silo/store/variables.tf:61-63`, matching the comment each sibling group carries. | | Precedent for count sites (!19, !22, !23) | Every sentence those PRs moved is moved here: README per-Stack enumeration (`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. | | Smell baseline | The three policy files repeat one shape, but each file carries a different record's ARN and the repo's convention is one file per key (ADR 0010 §What was decided), so no smell is charged. | ## Spec No findings. Each claim the change makes was reproduced: | Claim | How it was checked | Result | |---|---|---| | Each policy is the apply policy minus `s3:DeleteObject` on the `.tfstate` | `diff` against `forge-*-state-policy.json`: the object statement is split, `Delete` stays only on the `.tflock` ARN. Against `tracker-edge-deploy-state-policy.json`, name-normalised, the diff is empty for all three. Against `forge-*-plan-state-policy.json` the only difference is `s3:PutObject` on the record. | Confirmed (`silo/store/forge-{guest,edge,runner}-deploy-state-policy.json:10-18`) | | Policies name exactly one record and its lock | The ARNs read `prod/forge-guest.tfstate`, `prod/forge-edge.tfstate` and `prod/forge-runner.tfstate`; infra-forge's `backend.tf` at `origin/main` keys the three Stacks to the same objects. | Confirmed | | Key names are ≤ 30 characters (store cap 32) | `${#name}`: 29, 28 and 30. | Confirmed | | Mint path derived from the policy file name | `key-mint.sh`'s shape `case` run on the three file names gives `secret/tofu-state/forge-{guest,edge,runner}/deploy`. That is the path infra-secrets!31's `docs/store-layout.md` and `automation-runner.hcl` grant. | Confirmed | | 21 → 24 declared keys | `var.state_keys` entries counted at base (21) and head (24). The README enumeration sums to 9+6+7+2 = 24. | Confirmed | | 23 → 26 across the fleet | 24 declared plus the two hand mints §7 names. | Consistent | | "8 deploy rows" in §7 | 8 rows match `deploy-state-policy.json` at head, 5 at base. The paragraph at `:345-364` enumerates 5 earlier and "the last three". | Confirmed | | Every map entry resolves to a file | `comm` of the map's `policy =` values against `silo/store/*-policy.json`: only the three intentionally unmapped files differ (`provisioner`, `silo-plan-state`, `state-policy`), the same as at base. | Confirmed | | `git diff --check`, clean tree | rc=0, empty. | Confirmed | ## Named, not charged - **The live evidence** (the `make key-mint` run, `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, and `AGENTS.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. - **The consuming half** (infra-secrets!31) is a separate PR. Its `store-layout.md` and `automation-runner.hcl` paths agree with this PR's derived mint paths (read at the `hermes/sc16-semaphore-runner-infra-forge` branch). It is not judged here. - **The merge-order warning** in the PR's Merge Danger block is correct as written: the three keys exist in the store and its state, so until this merges, `make store` from `main` plans their destroy and the `prevent_destroy` guard refuses the run. Merge soon. - **A tense point in `docs/runbooks/0003-the-state-in-the-store.md:364`**: "`make key-mint` created 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 | Axis | Findings | Worst | |---|---|---| | Standards | 0 | none | | Spec | 0 | none | No blockers and no advisories, so the state is APPROVE and the label is `review/merge-ready`.
pit merged commit 58818b3d6b into main 2026-11-09 12:31:15 +00:00
pit deleted branch hermes/sc16-forge-deploy-state-keys 2026-11-09 12:31:15 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 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!25
No description provided.