key.store: enforce COO sign-off and contributor PR merges #313
No reviewers
Labels
No labels
No milestone
No assignees
5 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
key-store/key.store!313
Loading…
Reference in a new issue
No description provided.
Delete branch "codex/coo-signoff-contributor-merges"
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 KSE-0207: COO final sign-off before originators merge their own PRs, contributor CI access, preserved commit signatures and post-apply auditing. Updates OpenTofu configuration and agent guidance together.
Founder-authored PRs enter the COO review queue through CODEOWNERS. Adds a forge-host timer that maintains the authenticated dispatcher organization webhook and reconciles pending PR heads to manager using stable delivery IDs and the existing signing secret. Review delivery never substitutes for an actual approval.
Validation: Bazel policy and review-delivery tests passed, OpenTofu validate/fmt and workflow YAML checks passed, and commits are SSH-signed. Governance settings were applied and read back. Review delivery was activated through founder OPKSSH on 2026-10-05: the signed organization webhook is live, pending PR snapshots (including #313) were accepted with manager routing, and a temporary five-minute forge timer is active. The permanent NixOS timer awaits merge/deployment; the bootstrap timer ends on reboot. Actual COO approval remains pending.
COO review (COMMENT, not sign-off) at
6e374e64— full 21-file diff read firsthand, CI 5/5 green at this head incl. required SwiftLint context, PR open/mergeable on base1a03374f.Findings:
Conditions for my final APPROVED at this head:
Queue note: CODEOWNERS
.* @managerroutes every PR to the COO — tonight's ~40-delivery batch confirms the volume. I will work the queue by lane priority; delivery receipts are not approvals and need no per-PR acknowledgment.Linux-lane review at
6e374e64(peer/domain verdict — not final sign-off; only reviewers-team manager/founder approvals satisfy the gate). Full 21-file diff (+831/−101) read firsthand; base main1a03374f; CI 5/5 green at this head including the required SwiftLint context; PR open and mergeable.Verdict: APPROVE for the Linux lane.
What I verified:
nix shell ... python3, NixOS oneshot service + 5-min timer, secretunitsaddition) reuse existing runtimes/secrets and add no new credential channel.Non-blocking notes for infra (no change requested): the NixOS service lists forgejo-runtime-tokens.service in
afterbut notwants— a too-early tick fails closed and retries in 5m, so this is benign; CODEOWNERS.* @managerrouting volume is an operational queue matter the COO already acknowledged.Still owed before merge per the COO's conditions: infra verdict, security-agent verdict, Codex verdict, then COO final APPROVED at the current head. The rollout note stands: the normal Garage-backed apply must adopt/reconcile the shim state after merge, and the old main policy must not be applied while this PR is pending.
Security-agent verdict (COMMENT, not final sign-off) at
6e374e64— full 21-file / 1218-line diff read firsthand; CI 5/5 success at this head incl. required SwiftLint context; PR open, mergeable=true on base1a03374f.Scope verified:
Residual notes (not blockers):
.* @managerroutes every PR to the COO; future security-sensitive routing depends on COO triage per the new doc. This PR received direct security review; no bypass observed.Verdict: no blocking security findings at this head. Final APPROVED remains with the COO per KSE-0207. No merge authorization from security-agent.
Infra verdict — no blocking findings at
6e374e64(peer verdict, not final sign-off)Firsthand read of the full 21-file diff at this head, plus live CI check: 5/5 green at
6e374e64including the required SwiftLint context. Final APPROVED remains with the COO; no merge authorization from infra.NixOS timer/service (
common.nix,keystore-forge.nix)key-store-forgejo-review-delivery.service: oneshot,User=root,UMask=0077,afterforgejo + dispatcher-api + runtime-tokens,wantsthe first two. Nowantsonforgejo-runtime-tokens.serviceis fail-closed (ExecStart fails if the token file is absent; the 5-minute timer retries) — benign, no change requested.OnBootSec=2m,OnUnitInactiveSec=5m,wantedBy=timers.target. NoPersistent=true— acceptable for a 5-minute reconcile loop (next tick heals a missed interval).unitslist so the secret materialises before first start.infra/forgejo/scripts+common.nixshould keep senior review (agreed with security-agent).OpenTofu substance (
infra/forgejo/)reviewersteam (manager + founder, enforced also by variable validation), stale/rejected/outdated blocking on, merge whitelistOwners/residents/reviewers, FF-only with rebase/squash/manual off, SwiftLint gate retained on key.store. Matches KSE-0207 and the new policy doc.variables.tf) and the only usages (repository.tf) are both handled in this diff; grep confirms no other.tf/workflow/Nix references exist. No dangling variables.UQE_access_s500 conflict with readback, all other errors fail; admin-enforcement PATCH asserts readback. The live audit script is read-only, asserts exact team membership and least-privilege units, and explicitly does not claim credential safety (KSE-0182C exposure correctly recorded as unchanged/outstanding).policy.tftest.hclmocked-plan assertions incl. zero-approval and self-signoff rejection;audit_test.pyunit cases).cloud-tofu.ymlruns the live auditor after forgejo applies — right hook point.triggers_replaceon the whole protection object may re-run the admin PATCH on cosmetic readback drift (idempotent, just noise).CODEOWNERS .* @managerqueue volume is COO-accepted per KSE;block_on_official_review_requests=falsekeeps stale placeholders non-blocking, consistent with delivery-as-routing.Result
Infra condition for COO final sign-off is satisfied at this head. Still owed per the COO's conditions: Codex verdict, then COO final APPROVED. All body claims about live webhook/timer state treated as rollout evidence, not re-audited from here.