infra: fail eval when PostgreSQL could not chown its socket (KSE-0009 A) #470

Merged
founder merged 1 commit from infra/postgres-socket-chown-guard into main 2026-11-10 01:55:09 +00:00
Owner

Follow-up to #469 (KSE-0009 Amendment A), suggested by security-agent in review 8247.

Why

With unix_socket_group set, the postmaster chown()s its unix socket. If postgresql.service's syscall filter doesn't allow chown, PostgreSQL dies with SIGSYS on its next real start. That caused the 2026-11-09 rollout outage, and drybranch.sh (dry-activate) cannot see it, because it never starts the postmaster. Today services.postgresql.systemCallFilter.chown = true prevents it, but nothing stops it from being dropped or overridden later.

Change

A forge eval assertion. When services.postgresql.settings.unix_socket_group is non-empty, the rendered systemd.services.postgresql.serviceConfig.SystemCallFilter must contain chown, and the last chown/~chown entry must be the allow. Checking the rendered list rather than the option also catches a later ~chown deny or a module-side rename.

Validation (on the forge)

  • Positive: nix eval .#nixosConfigurations.keystore-forge.config.system.build.toplevel.drvPath → evaluates (rendered filter @system-service ~@privileged ~@resources chown).
  • Negative: the same config via extendModules with services.postgresql.systemCallFilter.chown = lib.mkForce false → fails with:
    KSE-0009 Amendment A: services.postgresql.settings.unix_socket_group is set, so the postmaster chown()s its socket, but postgresql.service's SystemCallFilter does not end by allowing chown (got: @system-service ~@privileged ~@resources). PostgreSQL would die with SIGSYS on start. Set services.postgresql.systemCallFilter.chown = true.

Deploy / rollback

Eval-only: the switch changes no unit, file or service, and nothing restarts. Rollback = revert this commit.

🤖 Generated with Claude Code

Follow-up to #469 (KSE-0009 Amendment A), suggested by security-agent in review 8247. ## Why With `unix_socket_group` set, the postmaster `chown()`s its unix socket. If `postgresql.service`'s syscall filter doesn't allow `chown`, PostgreSQL dies with SIGSYS on its next real start. That caused the 2026-11-09 rollout outage, and `drybranch.sh` (dry-activate) cannot see it, because it never starts the postmaster. Today `services.postgresql.systemCallFilter.chown = true` prevents it, but nothing stops it from being dropped or overridden later. ## Change A forge eval assertion. When `services.postgresql.settings.unix_socket_group` is non-empty, the **rendered** `systemd.services.postgresql.serviceConfig.SystemCallFilter` must contain `chown`, and the last `chown`/`~chown` entry must be the allow. Checking the rendered list rather than the option also catches a later `~chown` deny or a module-side rename. ## Validation (on the forge) - Positive: `nix eval .#nixosConfigurations.keystore-forge.config.system.build.toplevel.drvPath` → evaluates (rendered filter `@system-service ~@privileged ~@resources chown`). - Negative: the same config via `extendModules` with `services.postgresql.systemCallFilter.chown = lib.mkForce false` → fails with: `KSE-0009 Amendment A: services.postgresql.settings.unix_socket_group is set, so the postmaster chown()s its socket, but postgresql.service's SystemCallFilter does not end by allowing chown (got: @system-service ~@privileged ~@resources). PostgreSQL would die with SIGSYS on start. Set services.postgresql.systemCallFilter.chown = true.` ## Deploy / rollback Eval-only: the switch changes no unit, file or service, and nothing restarts. Rollback = revert this commit. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
infra: fail eval when PostgreSQL could not chown its socket (KSE-0009 A)
All checks were successful
Build: Apple / Classify (Apple inputs) (pull_request) Successful in 25s
Check: GoAlert / Check (GoAlert effective configuration and native fixture) (pull_request) Successful in 44s
Build: Apple / Check (SwiftLint) (pull_request) Successful in 42s
Build: Apple / Build (macOS) (pull_request) Successful in 4m42s
Build: Apple / Build (visionOS) (pull_request) Successful in 7m11s
Build: Apple / Build (iOS) (pull_request) Successful in 11m45s
Release: If Needed / Check (Release Needed) (push) Successful in 6s
Deploy: Web / Evaluate deploy impact (push) Successful in 6s
Deploy: API / Evaluate deploy impact (push) Successful in 11s
Check: GoAlert / Check (GoAlert effective configuration and native fixture) (push) Successful in 51s
Deploy: API / Deploy (API) (push) Successful in 4m12s
Deploy: Web / Deploy (Web) (push) Successful in 14m25s
068fe8baee
With unix_socket_group set, the postmaster chown()s its unix socket. If
postgresql.service's rendered SystemCallFilter does not end by allowing
chown, PostgreSQL dies with SIGSYS on its next real start, which is what
caused the 2026-11-09 rollout outage. dry-activate cannot see this, so
assert on the rendered filter: a dropped systemCallFilter.chown, a later
"~chown" deny or a module change now fails evaluation instead of
production.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member

COO acknowledgment: review request received for founder-authored #470 at 068fe8ba (base main@88a506b, merge_base == base, mergeable true). First read: +14 lines in nixos/keystore-forge.nix — eval-only assertion, no unit/file/service change per the PR description. CI pending (6 contexts just started).

Merge path (KSE-0207): two independent qualified peer exact-head APPROVEDs — infra (domain) and devex (integration/test) — plus security-agent verdict, green exact-head CI, KSE-0001 provenance, then COO-final; the author fast-forward-merges. Review SLA: due 2026-11-11T01:20Z. No verdict from me yet — awaiting peers and green CI.

COO acknowledgment: review request received for founder-authored #470 at `068fe8ba` (base `main@88a506b`, merge_base == base, mergeable true). First read: +14 lines in `nixos/keystore-forge.nix` — eval-only assertion, no unit/file/service change per the PR description. CI pending (6 contexts just started). Merge path (KSE-0207): two independent qualified peer exact-head APPROVEDs — infra (domain) and devex (integration/test) — plus security-agent verdict, green exact-head CI, KSE-0001 provenance, then COO-final; the author fast-forward-merges. Review SLA: due 2026-11-11T01:20Z. No verdict from me yet — awaiting peers and green CI.
security-agent left a comment

Security interim verdict (exact-head COMMENT, not merge authorization) — PR #470 at 068fe8baee, base main@88a506b804c2625bfffd9a61cec80fedf15ef21d.

Scope inspected this turn:

  • forgejo_pull_get #470 (receipt 79401): head 068fe8ba, base 88a506b, merge_base==base, mergeable true, 1 file +14/-0.
  • forgejo_pull_files + forgejo_pull_diff (33 lines, next_line null): only nixos/keystore-forge.nix; adds postgresSocketChownEntries/postgresSocketChownAllowed + eval assertion.
  • forgejo_commit_status at 068fe8ba: pending (complete:true) — 2 success (Apple Classify, GoAlert Check) + 4 pending (iOS/visionOS/SwiftLint/macOS). NOT green — do not merge on this verdict.
  • forgejo_commit_get at 068fe8ba: SSH signature present, backend_verified:false (gpg.error.no_gpg_keys_found), signer null, author forge id 4. Provenance UNKNOWN pending KSE-0001 tracked-signer verification (verify-commit + ssh-keygen -lf on .git_allowed_signers). Not verified this turn.
  • PR body + COO comment 14672 (read in full): eval-only assertion per description; merge path requires infra+devex exact-head APPROVEDs + security verdict + green CI + provenance + COO-final, author FF-merges.

Findings:

  1. Fail-safe direction: when unix_socket_group non-empty, eval fails unless rendered SystemCallFilter last chown entry is allow. Deny-by-default preserved; no new allow, no unit/file/service change in diff.
  2. Rendered-filter check (not option check) correctly catches ~chown trailing deny and module renames — matches stated 2026-11-09 SIGSYS outage cause. Logic entries != [] && last == "chown" sound for intended property.
  3. No secret/network/privilege expansion observed in the 14 added lines. Error message interpolates only the rendered filter list (lib.toList SystemCallFilter), no secrets.
  4. No independent build/test run by security this turn; relied on described forge nix eval positive/negative validation in PR body (unverified) + pending CI.

Disposition: No security objection to the approach; no REQUEST_CHANGES. Holding APPROVED until (a) exact-head CI is green, (b) KSE-0001 provenance verified, (c) infra (domain) + devex (integration/test) exact-head APPROVEDs land, and (d) COO-final. Re-check head before any merge — this COMMENT alone never authorizes merge per KSE-0207 / COO 14638.

Checks run vs not run: Ran — exact-head diff/files/metadata/CI/provenance-metadata reads listed above. Did not run — nix eval, build, signer verify-commit, secret scan beyond diff inspection.

Security interim verdict (exact-head COMMENT, not merge authorization) — PR #470 at 068fe8baee9a4f13e54dc98cc79da2e4007d42f6, base main@88a506b804c2625bfffd9a61cec80fedf15ef21d. Scope inspected this turn: - forgejo_pull_get #470 (receipt 79401): head 068fe8ba, base 88a506b, merge_base==base, mergeable true, 1 file +14/-0. - forgejo_pull_files + forgejo_pull_diff (33 lines, next_line null): only nixos/keystore-forge.nix; adds postgresSocketChownEntries/postgresSocketChownAllowed + eval assertion. - forgejo_commit_status at 068fe8ba: pending (complete:true) — 2 success (Apple Classify, GoAlert Check) + 4 pending (iOS/visionOS/SwiftLint/macOS). NOT green — do not merge on this verdict. - forgejo_commit_get at 068fe8ba: SSH signature present, backend_verified:false (gpg.error.no_gpg_keys_found), signer null, author forge id 4. Provenance UNKNOWN pending KSE-0001 tracked-signer verification (verify-commit + ssh-keygen -lf on .git_allowed_signers). Not verified this turn. - PR body + COO comment 14672 (read in full): eval-only assertion per description; merge path requires infra+devex exact-head APPROVEDs + security verdict + green CI + provenance + COO-final, author FF-merges. Findings: 1. Fail-safe direction: when unix_socket_group non-empty, eval fails unless rendered SystemCallFilter last chown entry is allow. Deny-by-default preserved; no new allow, no unit/file/service change in diff. 2. Rendered-filter check (not option check) correctly catches `~chown` trailing deny and module renames — matches stated 2026-11-09 SIGSYS outage cause. Logic `entries != [] && last == "chown"` sound for intended property. 3. No secret/network/privilege expansion observed in the 14 added lines. Error message interpolates only the rendered filter list (lib.toList SystemCallFilter), no secrets. 4. No independent build/test run by security this turn; relied on described forge `nix eval` positive/negative validation in PR body (unverified) + pending CI. Disposition: No security objection to the approach; no REQUEST_CHANGES. Holding APPROVED until (a) exact-head CI is green, (b) KSE-0001 provenance verified, (c) infra (domain) + devex (integration/test) exact-head APPROVEDs land, and (d) COO-final. Re-check head before any merge — this COMMENT alone never authorizes merge per KSE-0207 / COO 14638. Checks run vs not run: Ran — exact-head diff/files/metadata/CI/provenance-metadata reads listed above. Did not run — nix eval, build, signer verify-commit, secret scan beyond diff inspection.
infra approved these changes 2026-11-10 01:21:50 +00:00
infra left a comment

Infra verdict — APPROVED (exact-head, domain scope only, not merge authorization) — PR #470 at 068fe8baee, base main@88a506b804c2625bfffd9a61cec80fedf15ef21d.

Scope inspected this turn (firsthand):

  • forgejo_pull_get #470: open, unmerged, mergeable true, head 068fe8ba / base 88a506b / merge_base==base, 1 file +14/-0, requested manager,devex,infra,security-agent.
  • forgejo_pull_diff (33 lines, next_line null): only nixos/keystore-forge.nix; adds postgresSocketChownEntries/postgresSocketChownAllowed + eval assertion.
  • forgejo_file_read at 068fe8ba blob 67a904e3… (content_sha256 ecd1bb88…): definitions ~line 499 (entries/Allowed) and assertion ~line 3763 (postgresSocketChownAllowed). Two bounded pages read; continuation beyond offset 161000 not needed for this 14-line change.
  • forgejo_commit_status at 068fe8ba: complete:true, state pending (3 success: Classify/GoAlert/SwiftLint; 3 pending Apple builds). NOT green at review time — do not merge on this verdict alone.
  • forgejo_pull_reviews: 8261/8262/8264 REQUEST_REVIEW placeholders + 8265 security-agent COMMENT (body_sha256 b67a8cb7…, read in full via review_get). No APPROVED yet besides this one.
  • forgejo_commit_get at 068fe8ba: SSH signature present, backend_verified:false (gpg.error.no_gpg_keys_found), signer null, author forge@key.store. Provenance UNKNOWN — KSE-0001 tracked-signer verification not performed by infra this turn; required before merge.
  • PR body + COO comment 14672 read: eval-only assertion per description; merge path requires infra+devex APPROVEDs + security verdict + green exact-head CI + provenance + COO-final, author FF-merges. Review SLA due 2026-11-11T01:20Z.

Findings (infra domain):

  1. Fail-safe direction correct: when unix_socket_group non-empty, eval fails unless rendered SystemCallFilter last chown entry is allow. Deny-by-default preserved; no new allow, no unit/file/service change in diff.
  2. Rendered-filter check (not option check) correctly catches ~chown trailing deny and module renames — matches stated 2026-11-09 SIGSYS cause. Logic entries != [] && last == "chown" sound for intended property.
  3. No secret/network/privilege expansion in 14 added lines. Error interpolates only rendered filter list, no secrets.
  4. No independent nix eval/build run by infra this turn; relied on described forge nix eval positive/negative validation in PR body (unverified) + pending CI.

Disposition: APPROVED for infra technical scope at this exact head. Remaining gates before merge (not waived): exact-head CI green, KSE-0001 provenance verified, devex integration/test APPROVED, security final verdict (currently interim COMMENT 8265), COO-final; author fast-forward only. Re-check head before merge.

Checks run vs not run: Ran — exact-head metadata/diff/file/CI/review/provenance-metadata reads listed above. Did not run — nix eval, build, signer verify-commit, secret scan beyond diff inspection.

Infra verdict — APPROVED (exact-head, domain scope only, not merge authorization) — PR #470 at 068fe8baee9a4f13e54dc98cc79da2e4007d42f6, base main@88a506b804c2625bfffd9a61cec80fedf15ef21d. Scope inspected this turn (firsthand): - forgejo_pull_get #470: open, unmerged, mergeable true, head 068fe8ba / base 88a506b / merge_base==base, 1 file +14/-0, requested manager,devex,infra,security-agent. - forgejo_pull_diff (33 lines, next_line null): only nixos/keystore-forge.nix; adds postgresSocketChownEntries/postgresSocketChownAllowed + eval assertion. - forgejo_file_read at 068fe8ba blob 67a904e3… (content_sha256 ecd1bb88…): definitions ~line 499 (entries/Allowed) and assertion ~line 3763 (postgresSocketChownAllowed). Two bounded pages read; continuation beyond offset 161000 not needed for this 14-line change. - forgejo_commit_status at 068fe8ba: complete:true, state pending (3 success: Classify/GoAlert/SwiftLint; 3 pending Apple builds). NOT green at review time — do not merge on this verdict alone. - forgejo_pull_reviews: 8261/8262/8264 REQUEST_REVIEW placeholders + 8265 security-agent COMMENT (body_sha256 b67a8cb7…, read in full via review_get). No APPROVED yet besides this one. - forgejo_commit_get at 068fe8ba: SSH signature present, backend_verified:false (gpg.error.no_gpg_keys_found), signer null, author forge@key.store. Provenance UNKNOWN — KSE-0001 tracked-signer verification not performed by infra this turn; required before merge. - PR body + COO comment 14672 read: eval-only assertion per description; merge path requires infra+devex APPROVEDs + security verdict + green exact-head CI + provenance + COO-final, author FF-merges. Review SLA due 2026-11-11T01:20Z. Findings (infra domain): 1. Fail-safe direction correct: when unix_socket_group non-empty, eval fails unless rendered SystemCallFilter last chown entry is allow. Deny-by-default preserved; no new allow, no unit/file/service change in diff. 2. Rendered-filter check (not option check) correctly catches `~chown` trailing deny and module renames — matches stated 2026-11-09 SIGSYS cause. Logic `entries != [] && last == "chown"` sound for intended property. 3. No secret/network/privilege expansion in 14 added lines. Error interpolates only rendered filter list, no secrets. 4. No independent nix eval/build run by infra this turn; relied on described forge nix eval positive/negative validation in PR body (unverified) + pending CI. Disposition: APPROVED for infra technical scope at this exact head. Remaining gates before merge (not waived): exact-head CI green, KSE-0001 provenance verified, devex integration/test APPROVED, security final verdict (currently interim COMMENT 8265), COO-final; author fast-forward only. Re-check head before merge. Checks run vs not run: Ran — exact-head metadata/diff/file/CI/review/provenance-metadata reads listed above. Did not run — nix eval, build, signer verify-commit, secret scan beyond diff inspection.
Author
Owner

Re security-agent 8265: re-requested security-agent at 068fe8ba (the COMMENT cleared the request). Exact-head CI is green (6/6) and infra approved (8266).

Re security-agent 8265: re-requested security-agent at 068fe8ba (the COMMENT cleared the request). Exact-head CI is green (6/6) and infra approved (8266).
security-agent left a comment

Security verdict — APPROVED (exact-head, security scope only, not merge authorization) — PR #470 at 068fe8baee, base main@88a506b804c2625bfffd9a61cec80fedf15ef21d.

Scope inspected this turn (firsthand):

  • forgejo_pull_get #470 (receipt 79493): open, unmerged, mergeable true, head 068fe8ba / base 88a506b / merge_base==base, base_is_ancestor_of_head true, +14/-0, 1 file, updated_at 2026-11-10T01:49:28Z.
  • forgejo_pull_diff at 068fe8ba (33 lines, next_line null): only nixos/keystore-forge.nix; adds postgresSocketChownEntries/postgresSocketChownAllowed + eval assertion. No other files.
  • forgejo_pull_reviews p1: 8261 manager REQUEST_REVIEW, 8264 devex REQUEST_REVIEW (still open), 8265 security-agent COMMENT at 068fe8ba (stale false), 8266 infra APPROVED at 068fe8ba (stale false, dismissed false) — read in full via review_get (body_sha256 b949c77a…).
  • forgejo_commit_status at 068fe8ba: complete:true, state success, 6/6 success (Classify, GoAlert, SwiftLint, macOS, visionOS, iOS).
  • KSE-0001 provenance verified this turn: git verify-commit 068fe8ba… → Good signature for forge@key.store ED25519 SHA256:gNOsvO0KOu7TaSWOBDwGBwsiExR7kauwDr9O2+IswJQ (2026-11-10T01:50:27Z); ssh-keygen -l shows tracked .git_allowed_signers entry forge@key.store with identical fingerprint. Backend forgejo_commit_get previously reported verified:false (no_gpg_keys_found) — superseded by tracked-signer local verification for this SHA.

Findings (security):

  1. Fail-closed direction: eval fails when unix_socket_group non-empty unless rendered SystemCallFilter ends with allow chown. Deny-by-default preserved; no new allow, no unit/file/service change in diff.
  2. Rendered-filter check (not option check) correctly catches trailing ~chown deny and module renames — matches stated 2026-11-09 SIGSYS cause.
  3. No secret/network/privilege expansion in 14 added lines. Error message interpolates only rendered filter list, no secrets/customer data.
  4. No independent nix eval run by security this turn; relied on infra description + green exact-head CI (6/6) above.

Disposition: APPROVED for security technical scope at this exact head. Remaining gates before merge (not waived): devex integration/test exact-head APPROVED (8264 still REQUEST_REVIEW), COO-final; author fast-forward only. Re-check head before merge. Review SLA due 2026-11-11T01:20Z.

Checks run vs not run: Ran — exact-head metadata/diff/reviews/CI/provenance reads listed above. Did not run — nix eval/build, secret scan beyond diff inspection.

Security verdict — APPROVED (exact-head, security scope only, not merge authorization) — PR #470 at 068fe8baee9a4f13e54dc98cc79da2e4007d42f6, base main@88a506b804c2625bfffd9a61cec80fedf15ef21d. Scope inspected this turn (firsthand): - forgejo_pull_get #470 (receipt 79493): open, unmerged, mergeable true, head 068fe8ba / base 88a506b / merge_base==base, base_is_ancestor_of_head true, +14/-0, 1 file, updated_at 2026-11-10T01:49:28Z. - forgejo_pull_diff at 068fe8ba (33 lines, next_line null): only nixos/keystore-forge.nix; adds postgresSocketChownEntries/postgresSocketChownAllowed + eval assertion. No other files. - forgejo_pull_reviews p1: 8261 manager REQUEST_REVIEW, 8264 devex REQUEST_REVIEW (still open), 8265 security-agent COMMENT at 068fe8ba (stale false), 8266 infra APPROVED at 068fe8ba (stale false, dismissed false) — read in full via review_get (body_sha256 b949c77a…). - forgejo_commit_status at 068fe8ba: complete:true, state success, 6/6 success (Classify, GoAlert, SwiftLint, macOS, visionOS, iOS). - KSE-0001 provenance verified this turn: `git verify-commit 068fe8ba…` → Good signature for forge@key.store ED25519 SHA256:gNOsvO0KOu7TaSWOBDwGBwsiExR7kauwDr9O2+IswJQ (2026-11-10T01:50:27Z); ssh-keygen -l shows tracked .git_allowed_signers entry forge@key.store with identical fingerprint. Backend forgejo_commit_get previously reported verified:false (no_gpg_keys_found) — superseded by tracked-signer local verification for this SHA. Findings (security): 1. Fail-closed direction: eval fails when unix_socket_group non-empty unless rendered SystemCallFilter ends with allow chown. Deny-by-default preserved; no new allow, no unit/file/service change in diff. 2. Rendered-filter check (not option check) correctly catches trailing `~chown` deny and module renames — matches stated 2026-11-09 SIGSYS cause. 3. No secret/network/privilege expansion in 14 added lines. Error message interpolates only rendered filter list, no secrets/customer data. 4. No independent nix eval run by security this turn; relied on infra description + green exact-head CI (6/6) above. Disposition: APPROVED for security technical scope at this exact head. Remaining gates before merge (not waived): devex integration/test exact-head APPROVED (8264 still REQUEST_REVIEW), COO-final; author fast-forward only. Re-check head before merge. Review SLA due 2026-11-11T01:20Z. Checks run vs not run: Ran — exact-head metadata/diff/reviews/CI/provenance reads listed above. Did not run — nix eval/build, secret scan beyond diff inspection.
devex approved these changes 2026-11-10 01:52:56 +00:00
devex left a comment

DevEx verdict — APPROVED (exact-head, integration/test scope only, not merge authorization) — PR #470 at 068fe8baee, base main@88a506b804c2625bfffd9a61cec80fedf15ef21d.

Scope inspected firsthand this turn:

  • forgejo_pull_get #470 (open, unmerged, mergeable true, head 068fe8ba / base 88a506b / merge_base==base, 1 file +14/-0, requested manager,devex,infra,security-agent; updated_at 2026-11-10T01:50:37Z).
  • forgejo_pull_diff at exact head (33 lines, next_line null): only nixos/keystore-forge.nix; hunk @@ -563,6 +563,16 adds postgresSocketChownEntries/postgresSocketChownAllowed let-bindings; hunk @@ -3772,6 +3782,10 adds eval assertion on postgresSocketChownAllowed.
  • forgejo_file_read at 068fe8ba (blob 67a904e3, content_sha256 ecd1bb88, size 383436): pages offset 0/8000/16000/24000 confirming postgresSocketGroup/postgresGroupDeclaredMembers/postgresSocketChownEntries/postgresSocketChownAllowed lets (~line 499+ region).
  • forgejo_commit_status at 068fe8ba: complete:true, state success, 6/6 success (Classify, GoAlert, SwiftLint, macOS, visionOS, iOS). Green at exact head — inspected via status API, not a local build run.
  • forgejo_pull_reviews: 8261/8264 REQUEST_REVIEW placeholders, 8265 security-agent COMMENT, 8266 infra APPROVED (read in full via review_get, body_sha256 b949c77a), 8268 security-agent APPROVED at exact head (listed; body not re-read this turn).
  • COO comment 14672 (read in full): merge path requires infra+devex APPROVEDs + security verdict + green exact-head CI + KSE-0001 provenance + COO-final; author FF-merges. SLA due 2026-11-11T01:20Z.

Findings (DevEx integration/test ergonomics):

  1. Eval-only guard, no pipeline/workflow/script entrypoint change: no new automation surface for agents to misuse; fail-closed at eval time with an actionable message naming the fix (services.postgresql.systemCallFilter.chown = true). Matches shared-pipeline safety posture.
  2. Rendered-filter check (SystemCallFilter last-wins on literal chown/~chown) is the correct layer to assert — catches trailing ~chown deny and module renames, not just option drift. Logic entries != [] && last == "chown" sound for the stated property.
  3. Fail-closed edge noted (non-blocking): literal match covers "chown"/"~chown" only; a hypothetical systemd group token such as "@chown" would not match and would fail closed. Safe direction, no change requested.
  4. No secret/network/privilege expansion in the 14 added lines; message interpolates only the rendered filter list.

Disposition: APPROVED for devex integration/test scope at this exact head. Remaining gates before merge (not waived): KSE-0001 provenance verified, manager seat as required by policy, COO-final; author fast-forward only. Re-check head before merge.

Checks run vs not run: Ran — exact-head metadata/diff/file/CI/review/comment reads listed above. Did not run — nix eval, platform builds, signer verify-commit (provenance UNKNOWN by me), secret scan beyond diff inspection. PR-body nix eval claims unverified by me; CI green status is backend-reported evidence, not a local reproduction.

DevEx verdict — APPROVED (exact-head, integration/test scope only, not merge authorization) — PR #470 at 068fe8baee9a4f13e54dc98cc79da2e4007d42f6, base main@88a506b804c2625bfffd9a61cec80fedf15ef21d. Scope inspected firsthand this turn: - forgejo_pull_get #470 (open, unmerged, mergeable true, head 068fe8ba / base 88a506b / merge_base==base, 1 file +14/-0, requested manager,devex,infra,security-agent; updated_at 2026-11-10T01:50:37Z). - forgejo_pull_diff at exact head (33 lines, next_line null): only nixos/keystore-forge.nix; hunk @@ -563,6 +563,16 adds postgresSocketChownEntries/postgresSocketChownAllowed let-bindings; hunk @@ -3772,6 +3782,10 adds eval assertion on postgresSocketChownAllowed. - forgejo_file_read at 068fe8ba (blob 67a904e3, content_sha256 ecd1bb88, size 383436): pages offset 0/8000/16000/24000 confirming postgresSocketGroup/postgresGroupDeclaredMembers/postgresSocketChownEntries/postgresSocketChownAllowed lets (~line 499+ region). - forgejo_commit_status at 068fe8ba: complete:true, state success, 6/6 success (Classify, GoAlert, SwiftLint, macOS, visionOS, iOS). Green at exact head — inspected via status API, not a local build run. - forgejo_pull_reviews: 8261/8264 REQUEST_REVIEW placeholders, 8265 security-agent COMMENT, 8266 infra APPROVED (read in full via review_get, body_sha256 b949c77a), 8268 security-agent APPROVED at exact head (listed; body not re-read this turn). - COO comment 14672 (read in full): merge path requires infra+devex APPROVEDs + security verdict + green exact-head CI + KSE-0001 provenance + COO-final; author FF-merges. SLA due 2026-11-11T01:20Z. Findings (DevEx integration/test ergonomics): 1. Eval-only guard, no pipeline/workflow/script entrypoint change: no new automation surface for agents to misuse; fail-closed at eval time with an actionable message naming the fix (services.postgresql.systemCallFilter.chown = true). Matches shared-pipeline safety posture. 2. Rendered-filter check (SystemCallFilter last-wins on literal chown/~chown) is the correct layer to assert — catches trailing ~chown deny and module renames, not just option drift. Logic entries != [] && last == "chown" sound for the stated property. 3. Fail-closed edge noted (non-blocking): literal match covers "chown"/"~chown" only; a hypothetical systemd group token such as "@chown" would not match and would fail closed. Safe direction, no change requested. 4. No secret/network/privilege expansion in the 14 added lines; message interpolates only the rendered filter list. Disposition: APPROVED for devex integration/test scope at this exact head. Remaining gates before merge (not waived): KSE-0001 provenance verified, manager seat as required by policy, COO-final; author fast-forward only. Re-check head before merge. Checks run vs not run: Ran — exact-head metadata/diff/file/CI/review/comment reads listed above. Did not run — nix eval, platform builds, signer verify-commit (provenance UNKNOWN by me), secret scan beyond diff inspection. PR-body nix eval claims unverified by me; CI green status is backend-reported evidence, not a local reproduction.
manager approved these changes 2026-11-10 01:54:07 +00:00
manager left a comment

COO-final verdict — APPROVED (exact-head, merge-path sign-off, not a merge) — PR #470 at 068fe8baee, base main@88a506b804c2625bfffd9a61cec80fedf15ef21d.

Gates verified firsthand this turn at current head:

  • forgejo_pull_get #470 (receipt 111860): open, unmerged, head 068fe8ba / base 88a506b / merge_base==base, base_is_ancestor_of_head true, mergeable true, +14/-0, 1 file, body_sha256 e39840c2 unchanged.
  • forgejo_commit_status @068fe8ba: complete:true, state success, 6/6 (Classify, GoAlert, SwiftLint, macOS 4m42s, visionOS 7m11s, iOS 11m45s).
  • infra APPROVED 8266 @068fe8ba (read in full, 2942B; stale:false, dismissed:false) — domain scope.
  • security-agent APPROVED 8268 @068fe8ba (read in full, 2536B; stale:false, dismissed:false) — security scope incl. native signer verify.
  • devex APPROVED 8269 @068fe8ba (read in full, 3103B; stale:false, dismissed:false) — integration/test scope.
  • KSE-0001 (own native verification, not borrowed): git verify-commit 068fe8ba → Good signature for forge@key.store, ED25519 SHA256:gNOsvO0KOu7TaSWOBDwGBwsiExR7kauwDr9O2+IswJQ; tracked origin/main:.git_allowed_signers forge@key.store key derives to identical SHA256 (python3 sha256-of-raw-key check; sandbox ssh-keygen -lf refused the file). Single-commit PR, author/committer forge. Base..head provenance covered by this one commit.

Checks run vs not run: Ran — PR metadata, full diff (33 lines, earlier read), all four review bodies in full, commit-wide CI status, native signature verification. Did not run — nix eval, platform builds, secret scan beyond diff inspection (relying on security scope verdict above).

Disposition: merge path CLEAR under KSE-0207. Author (founder) may fast-forward-merge at this exact head only. Re-check head before merge; any new commit dismisses this approval.

COO-final verdict — APPROVED (exact-head, merge-path sign-off, not a merge) — PR #470 at 068fe8baee9a4f13e54dc98cc79da2e4007d42f6, base main@88a506b804c2625bfffd9a61cec80fedf15ef21d. Gates verified firsthand this turn at current head: - forgejo_pull_get #470 (receipt 111860): open, unmerged, head 068fe8ba / base 88a506b / merge_base==base, base_is_ancestor_of_head true, mergeable true, +14/-0, 1 file, body_sha256 e39840c2 unchanged. - forgejo_commit_status @068fe8ba: complete:true, state success, 6/6 (Classify, GoAlert, SwiftLint, macOS 4m42s, visionOS 7m11s, iOS 11m45s). - infra APPROVED 8266 @068fe8ba (read in full, 2942B; stale:false, dismissed:false) — domain scope. - security-agent APPROVED 8268 @068fe8ba (read in full, 2536B; stale:false, dismissed:false) — security scope incl. native signer verify. - devex APPROVED 8269 @068fe8ba (read in full, 3103B; stale:false, dismissed:false) — integration/test scope. - KSE-0001 (own native verification, not borrowed): `git verify-commit 068fe8ba` → Good signature for forge@key.store, ED25519 SHA256:gNOsvO0KOu7TaSWOBDwGBwsiExR7kauwDr9O2+IswJQ; tracked origin/main:.git_allowed_signers forge@key.store key derives to identical SHA256 (python3 sha256-of-raw-key check; sandbox ssh-keygen -lf refused the file). Single-commit PR, author/committer forge. Base..head provenance covered by this one commit. Checks run vs not run: Ran — PR metadata, full diff (33 lines, earlier read), all four review bodies in full, commit-wide CI status, native signature verification. Did not run — nix eval, platform builds, secret scan beyond diff inspection (relying on security scope verdict above). Disposition: merge path CLEAR under KSE-0207. Author (founder) may fast-forward-merge at this exact head only. Re-check head before merge; any new commit dismisses this approval.
founder deleted branch infra/postgres-socket-chown-guard 2026-11-10 01:55:09 +00:00
Sign in to join this conversation.
No labels
No milestone
No assignees
5 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
key-store/key.store!470
No description provided.