The store's read credential reads the identities and cannot change them (SL-29) #34
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!34
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/SL-29-a-read-only-key-reads-the-store-s-users"
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 SL-29
Summary
The store half's plan refreshes the identities that half declares, and the admin API that answers is the provisioning key's — the same credential that can create and delete them. A pull request's plan gets a second key instead: one that reads the store's users, policies and service accounts and each bucket's configuration, and can change none of them.
tofu-plan-state-silo(SL-28)secret/tofu-state/silo/planprod/silo.tfstate; reads, writes and deletes the lock beside ittofu-store-read(SL-29)secret/tofu-state/silo/readThe mint is the Operator's act. This change is the policy file, and the row that says how to mint it, what the pair holds and where it goes: runbook 0003, section 7. It adds no entry to
var.state_keys: that map carries the records' keys, and this one reads no record.Evidence
silo/store/provisioner-policy.json— 50 actions,admin:CreateUser,admin:DeleteUser,admin:CreatePolicy,admin:DeletePolicyands3:DeleteBucketamong them.After:
silo/store/store-read-policy.json— 15 actions, none of them a write, and no object-level action at all:mise exec -- make checkon this branch — exit 0:secret/tofu-state/silo/readandmake key-auditneed the store's root credential, whichdocs/agents/workflow.mdsection 3 keeps off an agent's floor; they run frommainafter the merge. Thedocs/store-layout.mdrow this ticket also asks for isinfra-secrets' page — this change names the path and its consumer in runbook 0003, the README andGLOSSARY.md, and that page's row is that repository's to add.Merge Danger
Door: two-way — a policy file and three pages. Nothing applies on merge, and no key exists until the Operator mints one.
Blast Radius: one credential's reach, once minted: it can read the store's identities and cannot change them.
Review started (round 1/5) on
c88c6e60d9— reading the diff now.olympus/infra-silo · PR #34 · head
c88c6e6· round 1/5 · verdict: APPROVERecommendation: merge
Standards
No documented-standard breach found. Checked against
AGENTS.md§Secrets, §Privacy, §Code comments and §Docs (relative links, glossary-is-definitions-only, one directory per section),docs/agents/workflow.md§3, and ADRs 0003, 0005, 0008 and 0009. The new file carries no secret and no address; the glossary entry has the shape the repo's existing credential entries already use, so §Docs' "definitions only" is not breached by naming the policy file and the pair's path.README.md:137-140says "Two of those credentials … are minted once, by hand … Both need the root credential, once each";README.md:145then adds a third hand mint ("key is minted by hand astofu-store-read"), anddocs/runbooks/0003-the-state-in-the-store.md:348says that key is minted "as the root user".GLOSSARY.md:190-191says the application credential is "the only one of the three that is the store's own rather than the infrastructure's", whileGLOSSARY.md:179makes a fourth credential entry above it. One defect, two sites; the clearing change is "Three …" / "Three need the root credential" at README:137-140 and "of the four" at GLOSSARY:190-191.Baseline smells: none charged. The action list repeats part of
provisioner-policy.json, but a credential's policy file has to be the whole of its reach on its own; that repetition is the repo's design, not Duplicated Code to extract.Spec
Spec: SL-29, "A read-only key reads the store's users and policies", fetched live (project 7, index 29); its acceptance criteria are the contract.
silo/store/store-read-policy.json:6-21: 15 actions, every one aGet*/List*, all 15 present inprovisioner-policy.json, one resource (arn:aws:s3:::*), no object-level action. The reads the provider actually issues on refresh are each covered:ListServiceAccountsfor the service account (resource_minio_service_account.go:374),GetUserInfofor the user and the user-policy attachment (admin:GetUserandadmin:ListUserPoliciesboth held),InfoCannedPolicyfor the policy (admin:GetPolicy),BucketExists+GetBucketTaggingandGetBucketVersioningfor the bucket and its versioning (s3:ListBucket,s3:GetBucketTagging,s3:GetBucketVersioning).secret/tofu-state/silo/:docs/runbooks/0003-the-state-in-the-store.md:340-341namestofu-store-readandsecret/tofu-state/silo/readwith the provider's two names, and:352-355gives the mint.scripts/key-audit.sh:136-137takes scope from the mint's name (tofu*) and:171-176compares each key's stored policy with everysilo/store/*-policy.json; the new file is inside that glob andtofu-store-readis atofu…name, so the minted key will be audited against this file.var.state_keysis correctly untouched: the audit enumerates the store, not the map, and the map is the records' keys.docs/store-layout.mdis not this repository's page: it isolympus/infra-secrets's, and at that repository'smainitssecret/tofu-state/tables carrysecret/tofu-state/silo/{apply,plan}and noreadrow, with the path count closing at 83 and no entry for it. The body defers the row to infra-secrets but names no ticket that carries it, and neither SL-30 (the repository secrets) nor SL-31 (the plan check) does (both fetched live). Clearing change: name the infra-secrets ticket that carries the row in the PR body, or land the row there — the acceptance criterion needs a home before the Operator mints the key.Named, not charged
secret/tofu-state/silo/read, andmake key-auditare the Operator's acts after the merge;docs/agents/workflow.md§3 keeps the root credential off an agent's floor. The author's evidence table says the same, and it is honest.s3:ListBucketlets the key enumerate object names, not read objects; this repo already treats a listing as not a read (docs/runbooks/0003-the-state-in-the-store.md:365-367), so it is not charged against "reads no record".Verified
refs/pull/34/head=c88c6e60d95c6ff2ebcdd94c81cfbf3dac380c71= the dispatch's SHA; base7f205442a94242d1a196468006d372485b7418dd; diff 4 files, +71/−2, matchinglist_pull_request_files.mise exec -- make checkat the head: exit 0 —env-check: the pin and the map agree.,key-audit-test: every case passed,key-mint-test: every case passed,deploy tests: every case passed.,Success! The configuration is valid.actions: 15,write-like:empty,{"read": 15, "missing_from_provisioner": []}.aminueza/terraform-provider-minioat tagv3.45.0, the versionsilo/.terraform.lock.hclpins.key-audit.sh's scope and matching read at the head;scripts/lib/state-key-path.shneeds noreadshape becausetofu-store-readis not avar.state_keysentry.docs/store-layout.mdatolympus/infra-secrets:mainread through the forge API; SL-29, SL-30 and SL-31 fetched live from the tracker.Could not verify
make key-audit's0 failingline: these need the store's root credential and a key that does not exist yet.Summary
docs/store-layout.mdrow lives in another repository and no ticket carries it), 0 blockers. Worst: that untracked acceptance criterion — a promise without a home, not a defect in the artifact.Two advisories, no blockers: merging is recommended, and both travel as advice.