The media Guests' state keys: six keys, three shapes each (THE-32, THE-33) #43
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!43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "operator/media-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?
Adds the six state keys infra-media's two Guest Stacks need, one record per Stack, three shapes each:
prod/media-navidrome-guest.tfstate(117)tofu-state-media-navidrometofu-plan-state-media-navidrometofu-deploy-media-navidromeprod/media-subwave-guest.tfstate(152)tofu-state-media-subwavetofu-plan-state-media-subwavetofu-deploy-media-subwaveEach policy names only its record and the
.tflockbeside it: the deploy shape writes the record and deletes only the lock (workshop ADR-0012); the plan shape reads the record and writes only the lock.The names drop the record's
-guestsuffix. The store refuses a key name longer than 32 characters —tofu-deploy-state-media-navidrome-guestis 39 — so one record's three shapes share the shorter stem rather than one of them carrying a name of its own.Minted and adopted. All six keys exist at the store with their policies embedded, and are imported into
module.store.minio_iam_service_account.state_key, with the pairs at:secret/tofu-state/media-{navidrome,subwave}-guest/{apply,deploy,plan}Evidence on this head:
make checkrc 0,make validate"Success! The configuration is valid",make key-audit— 41 keys undersilo/, 40 audited, 1 out of scope, 0 failing — andtofu plan -target=module.storeinsilo/: No changes. Your infrastructure matches the configuration.The merge's store deploy is therefore a no-op for these six; nothing here creates a key on apply (the plan guard refuses a state-key create by name).
Waiting — queued behind olympus/infra-cockpit#40 (one review run at a time). The review run resumes on its own at Wed 2 Dec, 18:05 (Europe/Madrid); nothing is needed from you. This retry does not count as a review round.
Review started (round 0/5) on
5ffaa4ec25— reading the diff now.olympus/infra-silo#43 · head
5ffaa4e· round 1/5 · axes: standards, specThe dispatch numbered this attempt
0/5; the thread carries no prior review, so this is round 1 of 5.Recommendation: merge
Spec source: the PR body (it states the six keys, their shapes and their evidence). THE-32 and THE-33 are the originating tickets; they are
doneand describe the two media Guests, not the state keys, so the body is the contract and the tickets are context. Standards source:AGENTS.md(secrets, privacy, comments, docs),docs/adr/0008and0009, workshopdocs/adr/0012atorigin/main(16 files, same as the clone).Standards
ADVISORY —
docs/runbooks/0003-the-state-in-the-store.md:395and:418— §7's deploy-shape paragraph was not brought in step with the table it describes.eleven rows of the table take itis now false: the table carries thirteen deploy rows (…:307,308,309,314,315,318,319,321,325,328,331plus the two this diff adds at:334and:337), and the paragraph's closing sentence,The last two are the agent Guests' (THE-62)(:418), now names the wrong pair — the table's last two deploy rows are media's. The THE-62 edit kept this paragraph in step, so the fix is the same shape: count thirteen and nametofu-deploy-media-navidromeandtofu-deploy-media-subwaveat the end of the sequence. Nothing reds;make checkpasses and the table is authoritative for the record, but an operator reading §7 is told two things the table contradicts in the same section.ADVISORY —
silo/store/media-navidrome-guest-state-policy.json:10-35andsilo/store/media-subwave-guest-state-policy.json:10-35— the apply shape is split where the family's is not.Both files carry three statements: bucket pair, the record, the lock. Every other apply policy in the directory names the record and the lock in one statement's
Resourcearray (silo/store/state-policy.json, and e.g.silo/store/paperclip-guest-state-policy.json:12-15). The reach is identical — the same three actions on the same two ARNs — andmake key-auditcanonicalises per statement, so nothing fails. Fold the twoResourceentries into one statement to match the shape the other ten apply policies use (twelve apply-shaped files insilo/store/, the two media ones included).Spec
No findings. Every claim the body makes that is checkable without the store holds at this head:
var.state_keys, one record per Stack, three shapes each (silo/store/variables.tf:122-134); table and map are the same 38-key set;.tflockonly — twelve object statements across the six files, no cross-record reach, noDeleteObjecton the record in the deploy shape (ADR-0012verbatim),GetObjectonly on the record in the plan shape (ADR-0009);make key-mint's own lookup resolves all six names to their file, andstate_key_store_pathderivessecret/tofu-state/media-{navidrome,subwave}-guest/{apply,plan,deploy}— exactly whatinfra-media'senv.mapatorigin/mainreads and what itsbackend.tfrecord keys (prod/media-{navidrome,subwave}-guest.tfstate) name;Named, not charged
silo/store/variables.tf:126-128is carried over from:117-119anddocs/runbooks/0003-the-state-in-the-store.md:402; the six new names do not contradict it. Pre-existing wording.scripts/plan-check.py:52-53lets a pure create pass the judge, so the greenplan / stack-plan-checkcontext at this head does not by itself prove the six keys are imported. That is the check's property, not this diff's — which is why the adoption claim sits under Could not verify rather than being charged.prevent_destroy. Nothing to escalate.Verified
refs/pull/43/head=5ffaa4ec254ed9d64e023f008cde6680ce3225bc, and the worktree was checked out at it.mise exec -- make check→ rc 0: env-check and env-test, key-audit-test, key-mint-test, deploy-test,tofu fmt -check, andtofu validateansweringSuccess! The configuration is valid.pr-checks / check (pull_request)success,plan / stack-plan-check (pull_request_target)success.DeleteObjecton the record; plan = read record, full on lock.infra-mediaatorigin/main: both record keys and all fourenv.mappaths match what these policies and names derive.Could not verify
module.store.minio_iam_service_account.state_key, and the body'stofu plan -target=module.store→ No changes. This session has no store credential (MC_HOST_silounset; the profile holds only the forge, tracker and paperclip keys).make key-audit's41 keys / 40 audited / 1 out of scope / 0 failing. Its figures do reconcile with the declaration set — 40tofu*keys is 37 state keys plustofu-provisioner,tofu-store-readand this Stack's owntofu-state, and the one out-of-scope key is the application credential — but I did not run it.Summary
Standards: 2 findings, both ADVISORY — worst: the §7 deploy-shape prose left at "eleven rows" with the "last two" naming the wrong pair. Spec: 0 findings. No blockers stand, and two advisories are below the volume trip; the two travel as advice.