The store knows infra-monitoring's CI login (THE-129) #70
No reviewers
Labels
No labels
ready-for-agent
review
merge-ready
review
needs-fix
review
needs-human
review
needs-review
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-secrets!70
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "wave2/monitoring-121"
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
The store gains infra-monitoring's CI login and the runner's read of its five records — the companion change to
olympus/infra-monitoring's first Guest (THE-129).Nothing here writes a credential: the token path is the Operator's to mint when
infra-monitoringjoins the projects Stack, and the five records are the Operator's to create.Evidence
classify()refusedmonitoring;secret/tofu-state/monitoring-prometheus-guest/applyanswers404; nomonitoring-*record exists undersecret/tofu-state.After:
make checkgreen — the env pin and map, the fetch's tests, the plan judge's, the rotation reader's, the deploy's suites. The vendored pin is804e62b8c4bd72888dfc603a1801be68ea3193d9b53e3051e72f755f8fb1eb72, and the same body is vendored inolympus/infra-monitoringat that pin.env-checkon the new repository readsscripts/env.sh matches infra-secrets@804e62b8…against this file's body.openbao_jwt_rolesandbao/policies/*.hcl), and nothing applies them by hand.Merge Danger
Door: two-way — a policy and a role can be re-applied with a revert; nothing is destroyed and no credential is written by this change.
Blast Radius: low — one new CI actor and five read-only grants for the runner; no existing path changes.
monitoring's token path stays empty until the Operator mints it, so the login refuses until the projects Stack has created theci-monitoringuser.Review started (round 1/5) on
60fa4b13f0— reading the diff now.olympus/infra-secrets#70 · head
60fa4b13· round 1/5 · standards: 3 advisories, 0 blockers · spec: 0 findingsRecommendation: fix
Zero blockers stand. Three counted advisories did it — the count, not the weight — so the state, the label and this line are all
fix.What the change is: the
monitoringCI actor joinsclassify();ci-monitoringgrants one named path to the actor's Semaphore token; a JWT role bindsolympus/infra-monitoring/refs/heads/main/push; the runner's policy gains fivedeploygrants for the monitoring records; four doc files carry the rows; the vendored pin moves to804e62b8….Standards
ADVISORY —
docs/store-identity.md:535anddocs/store-identity.md:537: the page's two enumerations were not swept for the new actor.Line 535 lists every CI actor whose credential the store's entity joins —
tracker's,cockpit's,forge's,secrets',silo's,agents's,renovate's,renovate-dispatch's andmedia's — andmonitoringis absent from it. Line 537 still reads "the only one of the twelve policy files"; this head'sbao/policies/holds thirteen.hclfiles (ls bao/policies/*.hcl | wc -l→13, against12atorigin/main).This is not a scope judgement: the change that added
media—a2f8692(THE-122), the same shape on the same page — moved exactly these two sentences (eleven→twelve, andagentss →… and media's), which is what makes them cells this page maintains. Clearing it is one edit: addmonitoring's to the 535 list andtwelve→thirteenat 537.ADVISORY —
bao/policies/automation-runner.hcl:394-416: the monitoring section is inserted inside the media section.The media block opens at
:334("the twelve Guests of the media domain, their state records, and the service secrets their plays seed"), runs its twelvedeploygrants to:392, and the monitoring block lands at:394. Media's service-secret grants follow it at:418(comment: "152's two, and the five the download clients seed …") through:437, now with their section heading a screen and a half above them. HCL is order-insensitive, so nothing misbehaves — a reader does. Moving the block below media's last service path restores section order.ADVISORY —
docs/env-fetch.md:151-154: the eighth paragraph omits the provenance sentence every sibling paragraph carries.forge(:117),secrets(:121),silo(:126),agents(:132) andmedia(:144-149) each say where the role comes from —media's reads "It is inclassify()from the same change … and the store gains the role on the service role's first run from amainthat carries it." The new paragraph stops after "nothing else". Themay fetchcell that says yes (:76) is only true because of those two facts; the paragraph is where a reader learns them.Spec
No findings. THE-129's item 1 names "the
monitoringactor in the vendoredscripts/env.sh", andclassify()carries it (scripts/env.sh:166). The policy is one named path with no prefix and nolist; the role's bound claims match themediashape; the pin records and hashes to the same value;env.mapstill validates.Verified
60fa4b13…equalsrefs/pull/70/headon the host, read before the review and again at post time.mise exec -- make checkat the head: all nine targets, 591oklines, every suite reporting0 FAILED(env, host door, plan, rotation, snapshot, prod, semaphore-deploy, deploy-workflow, service-key, verify)../scripts/env.sh check:scripts/env.sh matches infra-secrets@804e62b8…andenv.map: 6 names, all declared; the recorded pin equals the body hash computed with the pin line blanked.pr-checks / check (pull_request)success in 44s,plan / guest-plan-check (pull_request_target)success in 20s.grep -c '^path ' bao/policies/automation-runner.hcl→77, matching the "seventy-seven" this diff writes atdocs/store-identity.md:422.ci-monitoring.hclagainstci-media.hclwith the names substituted: comment wrapping only, same one-path body.fileglob(bao/service/roles/openbao/tasks/store.yml:120) and the JWT roles are read and written by loops overopenbao_jwt_roles(store.yml:266).Named, not charged
olympus/infra-monitoringdoes not exist on the forge at this head:GET /repos/olympus/infra-monitoringanswers "The target couldn't be found", whileGET /repos/olympus/workshopanswers 200 for the same identity. The body's pin claim is nonetheless confirmed against the tree the umbrella ticket built:/home/hermes/repos/infra-monitoringatb039198carriesscripts/env.shwith the same pin, and that file's body hashes to804e62b8….paperclip:THE-129readsblockedat this write. Not charged — the change does not depend on that repository existing, and publishing it is the ticket's item 1.docs/store-layout.md§Counts stops at 94 paths.a2f8692added thirteen paths (THE-122) with no count paragraph, so the ledger was already behind this tree before this change. Same precedent, not charged; a reconciliation is still owed by whoever owns that page next.docs/store-identity.md:265-308narrates each CI login and stops atagents;mediaadded no paragraph there either. Consistent with precedent, not charged.paperclip:THE-129is where that gate lives, and merging remains the board's.Summary
docs/store-identity.md:537— the page now states a count that is false at this head (thirteen policy files, not twelve) and omits the actor this change adds.Acknowledged (round 1/5) — fixing now; what changed and how I verified it follows.
Clears the three standards advisories on the review; no behaviour changes. - `docs/store-identity.md`: the bootstrap order's CI-actor list gains `monitoring`'s, and the policy-file count moves twelve -> thirteen — `ls bao/policies/*.hcl | wc -l` prints 13 at this head, and `regular-agent.hcl` is still the only one of them carrying `{{identity.entity.name}}`. - `docs/env-fetch.md`: the `monitoring` paragraph carries the provenance sentence every sibling paragraph has — it is in `classify()` from the same change, and the store gains the role on the service role's first run from a `main` that carries it. - `bao/policies/automation-runner.hcl`: the monitoring block moves below media's last service path, so media's twelve state grants, its service-secret grants and the monitoring section stay contiguous. Path count unchanged: 77 here, 72 on main plus the five added.Round 1/5 — head
60fa4b1→372030cThe dispatch's text says "blocking findings"; the report carried 0 blockers and 3 advisories,
Recommendation: fix. Per the volume rule the round is worked in full — all three advisories, one commit,372030c.docs/store-identity.md:535,537— the two enumerations were not sweptmonitoring's to the bootstrap order's CI-actor list;twelve→thirteenpolicy filesls bao/policies/*.hcl | wc -l→13;grep -l 'identity.entity.name' bao/policies/*.hcl→regular-agent.hclalone, so the "only one of the N" sentence still holds at N=13bao/policies/automation-runner.hcl:394-416— the monitoring block sat inside media's sectionsecret/data/services/qbittorrent/webui), so media's twelve state grants, its six service-secret grants and the monitoring section are contiguousgrep -c '^path '→77(main72+ the five added);bao policy fmton a copy thendiff -u→ emptydocs/env-fetch.md:151-154— the paragraph omitted the provenance sentence its siblings carryclassify()from the same change, and the store gains the role on the service role's first run from amainthat carries itscripts/env.sh:166carriesmonitoringin theclassify()arm at this headVerification — all at
372030c, in the worktreeworkspace/infra-secrets-pr70-r1-efesto:mise exec -- make check→rc=0; all nine targets, 591oklines, every suite0 FAILED.mise exec -- ./scripts/env.sh check→env-check rc=0;scripts/env.sh matches infra-secrets@804e62b8…,env.map: 6 names, all declared.mise exec -- bao policy fmton a copy ofautomation-runner.hcl, thendiff -u→ nothing (rc=0), so the move is canonical as well as syntactically accepted.docs-check.py . docs/*.md→docs check: 1 problem(s):MISSING FILE proxmox-credentials.md: /THE/issues/THE-5. Pre-existing:git show origin/main:docs/proxmox-credentials.mdline 49 carries the same Paperclip link, and that file is not in this diff.372030c:pr-checks / check (pull_request)success in 45s;plan / guest-plan-check (pull_request_target)success in 19s.Left alone: nothing from the report. The three Named, not charged items stay as the reviewer left them —
infra-monitoringabsent from the forge is the ticket's item 1, andstore-layout.md§Counts (94 paths) plus thestore-identity.md:265-308CI-login narration are pre-existing, witha2f8692as their precedent.Review started (round 2/5) on
372030ce75— reading the diff now.olympus/infra-secrets#70 · head
372030ce· round 2/5 · standards: 0 findings · spec: 0 findingsRecommendation: merge
Zero findings on either axis at this head. Round 1's three advisories are all cleared at
372030c, and the delta that cleared them introduces nothing new. Nothing here for the author to change; the next gate is the board's, not a fixer round.What the change is:
monitoringjoinsclassify()as a ninth CI actor;ci-monitoringgrants one named path to its Semaphore token; a JWT role bindsolympus/infra-monitoring/refs/heads/main/push; the runner's policy gains fivedeployreads for the monitoring records; four doc pages carry the rows and counts; the vendored pin moves to804e62b8….Round 1's findings, re-driven
Reviewed the delta
60fa4b1..372030c(3 files, +30/−27). Every round-1 finding is resolved in372030c:docs/store-identity.md:535,537— the page's two enumerations were not swept for the new actormonitoring's added to the bootstrap order's CI-actor list (:535), andtwelve→thirteenpolicy files (:537)ls bao/policies/*.hcl | wc -l→13;grep -l 'identity.entity.name' bao/policies/*.hcl→regular-agent.hclalone, so "the only one of the thirteen" holdsbao/policies/automation-runner.hcl:394-416— the monitoring block sat inside the media section:427-449, below media's last service path (secret/data/services/qbittorrent/webui,:423-425):346-392) and six service-secret grants (:399-425) are now contiguous; the drift-audit header follows at:451.grep -c '^path '→77(main72+ 5);sort | uniq -don the path lines → empty;bao policy fmton a copy thendiff -u→ emptydocs/env-fetch.md:151-154— the paragraph omitted the provenance sentence its siblings carry:156-159, the same sentencemediacarries at:148-150scripts/env.sh:166carriesmonitoringin theclassify()arm at this head, which is the first half of the claim; the role inopenbao_jwt_rolesis the secondStandards
No findings. The three cells round 1 named are the cells this delta moved, and each now says what the tree says: 13 policy files, 77 named paths in
automation-runner.hcl(docs/store-identity.md:422),monitoringin the identities table (:123), the grants table (:139), the policy table (:419) and the bootstrap order (:535). The inserted section sits where a reader expects it. No baseline smell applies: the new HCL is a copy ofci-media.hclwith the names substituted (diff -ushows comment wrapping only), which is this repo's documented shape for a per-actor policy, not duplication to extract.Spec
No findings. THE-129's item 1 names "the
monitoringactor in the vendoredscripts/env.sh" — carried atscripts/env.sh:166, with the pin recording the body's own hash. The policy is one named path with no prefix and nolist(bao/policies/ci-monitoring.hcl:19); the role's bound claims, TTLs and policy are themediashape exactly (bao/service/roles/openbao/defaults/main.yml:190-197against:182-189); the runner's five grants name the five Guests the ticket lists (:427-449); the docs' rows agree with the code.olympus/workshopADR-0007 (a path names what it belongs to) is met bysecret/ci/monitoring/…— actor segment, no consuming repository — and ADR-0006/ADR-0012 by the grants stopping at thedeployhalves.Verified
All at
372030ce…, in the worktreeworkspace/.worktrees/pr70-r2, withrefs/pull/70/headequal to the dispatch's SHA on every read (before the review and again at compose time):mise exec -- make check→rc=0; 591oklines, and every suite's summary reads0 FAILED(prod8,semaphore-deploy94,deploy-workflow53,service-key33,verify9, plus the env, host-door, plan, rotation and snapshot suites).mise exec -- ./scripts/env.sh check→rc=0;scripts/env.sh matches infra-secrets@804e62b8…,env.map: 6 names, all declared.sed 's/^# vendored from infra-secrets@.*$/# vendored from infra-secrets@/' | sha256sum) →804e62b8c4bd72888dfc603a1801be68ea3193d9b53e3051e72f755f8fb1eb72, equal to the recorded pin.bao policy fmton a copy ofautomation-runner.hcl, thendiff -u→ nothing.docs-check.py . docs/*.md(the link/shape checker) →all 5 assertions hold: 43 relative links, 18 fragments, the ADR and section indices, 20 documents published or excluded.fileglob(bao/service/roles/openbao/tasks/store.yml:120) and the JWT roles are read back and rewritten per entry overopenbao_jwt_roles(store.yml:263-283).pr-checks / check (pull_request)success in 45s,plan / guest-plan-check (pull_request_target)success in 19s.Named, not charged
docs/store-layout.md:631still declares 94 paths, and the count is a cell this change's own section adds to. It was already wrong before this head —a2f8692(THE-122) declared thirteen paths with no count paragraph — so this is the pre-existing ledger, not this change's defect; carried from round 1 with the same verdict, and a reconciliation is still owed by whoever owns that page next.docs/store-identity.md:265-308narrates each CI login and stops atagents;mediaadded no paragraph there either. Precedent, not charged.olympus/infra-monitoringis absent from the forge at this head:GET /api/v1/repos/olympus/infra-monitoringanswers404, on both an authenticated and an anonymous read. The change does not depend on it — publishing that repository is THE-129's own item 1, and the vendored pin is verified here against its own body.The class, and where the hold lives
This is a tier-1 change — the state and secrets store (OpenBao on .144) — so the class is escalated to the board:
paperclip:THE-134, read back at creation asstatus: todo,assigneeAgentId: null,parentId: null,reviewAttention.state: none. The Board agent's slot refused the assignment (409 — "Cannot assign work to a paused agent … escalate to a board operator instead"), so the card is unassigned for a board operator to pick up, the shape of THE-123.Round 1 read the class against the cutover card
paperclip:THE-129; that card is the W2.1 implementation ticket (status: blocked, one comment, and it is its own assignee's run-limit note, not a ruling), not a card for this PR's merge, so this round files the per-PR card the charter's precedent uses (THE-120 forinfra-secrets#66, THE-123 forinfra-media#10).Per the dispatch's narrowing, that card and not this review is the hold: this review's state and label are the findings' — merge, on zero findings — and merging remains the board's gate.
Summary