infra: PostgreSQL socket gets its own group; cluster owner-only (KSE-0009 A) #468

Merged
founder merged 2 commits from infra/postgres-socket-group-r2 into main 2026-11-09 07:20:42 +00:00
Owner

Replaces #466 with the same two commits rebased onto main d01cb464 (the office change landed after #466 was reviewed). git range-diff shows both commits identical (0a1de9c4 = c085d204, 53e8cdf7 = f33ec847). Both are re-signed as forge@key.store. A new branch was used to avoid force-pushing. The rebased branch evaluates on the forge with the assertions passing (…-nixos-system-keystore-forge-26.05.20261109.f33ec847.drv). Review history: #466 (infra 8232, security-agent 8222, devex 8233, manager 8234 approved at 53e8cdf7).

Follow-up to #464 (KSE-0216). Anchored in KSE-0009 Amendment A.

Problem

On the forge, forgejo, redmine and stalwart-mail were in the postgres group so they could reach the peer-auth socket (/run/postgresql/.s.PGSQL.5432, srwxrwx--- postgres:postgres). OpenBao took the same group as a SupplementaryGroup. stalwart_rehearsal got it by hand from Scripts/stalwart/rehearsal-role.sh.

The NixOS PostgreSQL module gives that same group the data directory (StateDirectoryMode 0750, UMask 0027). Live state before this PR:

postgres:x:71:forgejo,redmine,stalwart-mail,stalwart_rehearsal
drwxr-x--- postgres:postgres /var/lib/postgresql            (and /16, /18)
drwxr-x--- postgres:postgres /var/backup/postgres

Source: nixos/keystore-forge.nix (users.users.{forgejo,redmine,stalwart-mail}.extraGroups = [ "postgres" ]) and nixos/modules/services/openbao/default.nix (SupplementaryGroups = [ "postgres" ]). nixos/hosts/keystore-forge/common.nix has none.

Change

  • Dedicated socket group. unix_socket_group = "postgres-socket". Members: postgres (the postmaster must belong to it to chgrp the socket), forgejo and redmine. OpenBao gets it via a new openbao.postgres.socketGroup option that follows unix_socket_group. The group owns no files. pg_hba is unchanged, so peer auth still maps each OS user to its own role.
  • Stalwart connects over loopback TCP (live: stalwart-mail|127.0.0.1/32|stalwart) and leaves the group entirely. Units running as postgres (exporter, backups, ensure-users, Authentik queue jobs) are the socket owner.
  • Owner-only cluster. postgresql.service gets StateDirectoryMode = mkForce "0700" and UMask = mkForce "0077". tmpfiles z rules set /var/lib/postgresql and the data dir to 0700 on every activation. /var/backup/postgres becomes 0700, matching the postgresqlBackup module's own rule.
  • postgres group stays empty. Eval assertions reject any declared member or SupplementaryGroups containing postgres. users.mutableUsers = true merges undeclared members into declared groups, so an activation snippet (after users/groups) removes them with gpasswd -d. Today that is stalwart_rehearsal.
  • Rehearsal scripts and runbook use postgres-socket (SOCKET_GROUP override). rehearsal-role.sh create also drops postgres if it is still there.

Validation

  • nix eval of the forge toplevel on the forge passes (new assertions included): unix_socket_group = postgres-socket, postgresql StateDirectoryMode 0700 / UMask 0077, openbao SupplementaryGroups = [google-wif postgres-socket], forgejo/redmine [postgres-socket], stalwart-mail [].
  • drybranch.sh dry-activate of this branch on the forge (result in a comment below).

Deploy notes

The settings change restarts PostgreSQL through restartTriggers (one brief blip for all clients). Forgejo and Redmine pick up their new group on restart. Post-switch checks: id forgejo/id redmine, getent group postgres (empty), stat of the socket (postgres:postgres-socket) and data dir (0700), sudo -u forgejo ls /var/lib/postgresql (denied), and Forgejo/Redmine/OpenBao health.

Restart ordering (confirmed on-host in the built closure 53e8cdf7)

  • forgejo.service: After=postgresql.target, Requires=postgresql.target.
  • redmine.service: After=postgresql.target.
  • openbao.service: After=/Requires= postgresql.service postgres-ensure-users.service.

All three restart in the same switch transaction as PostgreSQL and start after it, with the new postgres-socket membership.

Logs (journald)

journalctl -u postgresql.service -u postgres-ensure-users.service --since -15min
journalctl -u forgejo.service -u redmine.service -u openbao.service --since -15min
journalctl -b -t nixos -t switch-to-configuration --since -15min   # activation: "KSE-0009 Amendment A: removing ... from the postgres group"
journalctl -u systemd-tmpfiles-resetup.service --since -15min        # z rules on /var/lib/postgresql

Rollback: switch to the previous generation. The memberships and modes return with it, though the purged stalwart_rehearsal membership must be re-added by hand if it is ever needed.

🤖 Generated with Claude Code

Replaces #466 with the same two commits rebased onto main `d01cb464` (the office change landed after #466 was reviewed). `git range-diff` shows both commits identical (`0a1de9c4 = c085d204`, `53e8cdf7 = f33ec847`). Both are re-signed as forge@key.store. A new branch was used to avoid force-pushing. The rebased branch evaluates on the forge with the assertions passing (`…-nixos-system-keystore-forge-26.05.20261109.f33ec847.drv`). Review history: #466 (infra 8232, security-agent 8222, devex 8233, manager 8234 approved at 53e8cdf7). Follow-up to #464 (KSE-0216). Anchored in **KSE-0009 Amendment A**. ## Problem On the forge, `forgejo`, `redmine` and `stalwart-mail` were in the `postgres` group so they could reach the peer-auth socket (`/run/postgresql/.s.PGSQL.5432`, `srwxrwx--- postgres:postgres`). OpenBao took the same group as a `SupplementaryGroup`. `stalwart_rehearsal` got it by hand from `Scripts/stalwart/rehearsal-role.sh`. The NixOS PostgreSQL module gives that same group the data directory (`StateDirectoryMode 0750`, `UMask 0027`). Live state before this PR: ``` postgres:x:71:forgejo,redmine,stalwart-mail,stalwart_rehearsal drwxr-x--- postgres:postgres /var/lib/postgresql (and /16, /18) drwxr-x--- postgres:postgres /var/backup/postgres ``` Source: `nixos/keystore-forge.nix` (`users.users.{forgejo,redmine,stalwart-mail}.extraGroups = [ "postgres" ]`) and `nixos/modules/services/openbao/default.nix` (`SupplementaryGroups = [ "postgres" ]`). `nixos/hosts/keystore-forge/common.nix` has none. ## Change - **Dedicated socket group.** `unix_socket_group = "postgres-socket"`. Members: `postgres` (the postmaster must belong to it to chgrp the socket), `forgejo` and `redmine`. OpenBao gets it via a new `openbao.postgres.socketGroup` option that follows `unix_socket_group`. The group owns no files. pg_hba is unchanged, so peer auth still maps each OS user to its own role. - **Stalwart** connects over loopback TCP (live: `stalwart-mail|127.0.0.1/32|stalwart`) and leaves the group entirely. Units running as `postgres` (exporter, backups, ensure-users, Authentik queue jobs) are the socket owner. - **Owner-only cluster.** `postgresql.service` gets `StateDirectoryMode = mkForce "0700"` and `UMask = mkForce "0077"`. tmpfiles `z` rules set `/var/lib/postgresql` and the data dir to 0700 on every activation. `/var/backup/postgres` becomes 0700, matching the postgresqlBackup module's own rule. - **`postgres` group stays empty.** Eval assertions reject any declared member or `SupplementaryGroups` containing `postgres`. `users.mutableUsers = true` merges undeclared members into declared groups, so an activation snippet (after `users`/`groups`) removes them with `gpasswd -d`. Today that is `stalwart_rehearsal`. - **Rehearsal scripts and runbook** use `postgres-socket` (`SOCKET_GROUP` override). `rehearsal-role.sh create` also drops `postgres` if it is still there. ## Validation - `nix eval` of the forge toplevel on the forge passes (new assertions included): `unix_socket_group = postgres-socket`, postgresql `StateDirectoryMode 0700` / `UMask 0077`, openbao `SupplementaryGroups = [google-wif postgres-socket]`, forgejo/redmine `[postgres-socket]`, stalwart-mail `[]`. - `drybranch.sh` dry-activate of this branch on the forge (result in a comment below). ## Deploy notes The settings change restarts PostgreSQL through `restartTriggers` (one brief blip for all clients). Forgejo and Redmine pick up their new group on restart. Post-switch checks: `id forgejo`/`id redmine`, `getent group postgres` (empty), `stat` of the socket (`postgres:postgres-socket`) and data dir (`0700`), `sudo -u forgejo ls /var/lib/postgresql` (denied), and Forgejo/Redmine/OpenBao health. ## Restart ordering (confirmed on-host in the built closure 53e8cdf7) - `forgejo.service`: `After=postgresql.target`, `Requires=postgresql.target`. - `redmine.service`: `After=postgresql.target`. - `openbao.service`: `After=`/`Requires=` `postgresql.service postgres-ensure-users.service`. All three restart in the same switch transaction as PostgreSQL and start after it, with the new `postgres-socket` membership. ## Logs (journald) ``` journalctl -u postgresql.service -u postgres-ensure-users.service --since -15min journalctl -u forgejo.service -u redmine.service -u openbao.service --since -15min journalctl -b -t nixos -t switch-to-configuration --since -15min # activation: "KSE-0009 Amendment A: removing ... from the postgres group" journalctl -u systemd-tmpfiles-resetup.service --since -15min # z rules on /var/lib/postgresql ``` Rollback: switch to the previous generation. The memberships and modes return with it, though the purged `stalwart_rehearsal` membership must be re-added by hand if it is ever needed. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
forgejo, redmine and stalwart-mail joined the postgres group to reach the
0770 unix socket, and OpenBao took it as a SupplementaryGroup. The NixOS
module gives that same group the data directory (0750, UMask 0027), so
they could read /var/lib/postgresql and /var/backup/postgres.

- unix_socket_group = postgres-socket (members: postgres, forgejo, redmine);
  OpenBao follows it through openbao.postgres.socketGroup. Stalwart uses
  loopback TCP and leaves the group.
- postgresql.service: StateDirectoryMode 0700, UMask 0077; tmpfiles z
  rules keep /var/lib/postgresql and the data dir 0700; backups dir 0700.
- The postgres group stays empty: eval assertions reject declared members
  and SupplementaryGroups, and activation strips undeclared ones
  (mutableUsers keeps them otherwise).
- Stalwart rehearsal scripts use postgres-socket.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
infra: restart forgejo and redmine with the PostgreSQL socket group (KSE-0009 A)
Some checks failed
Build: Apple / Classify (Apple inputs) (pull_request) Successful in 20s
Build: Apple / Check (SwiftLint) (pull_request) Successful in 16s
Check: GoAlert / Check (GoAlert effective configuration and native fixture) (pull_request) Successful in 45s
Build: Apple / Build (visionOS) (pull_request) Successful in 25s
Build: Apple / Build (iOS) (pull_request) Successful in 29s
Build: Apple / Build (macOS) (pull_request) Successful in 1m42s
Deploy: Web / Evaluate deploy impact (push) Successful in 5s
Deploy: API / Evaluate deploy impact (push) Successful in 5s
Release: If Needed / Check (Release Needed) (push) Successful in 5s
Check: GoAlert / Check (GoAlert effective configuration and native fixture) (push) Successful in 41s
Deploy: Web / Deploy (Web) (push) Failing after 14m37s
Deploy: API / Deploy (API) (push) Failing after 14m37s
f33ec8472c
A running process keeps the groups it started with. Once PostgreSQL
restarts with unix_socket_group = postgres-socket, Forgejo and Redmine must
restart too, or they lose the socket. Tie their restarts to the group name
so the switch does not depend on incidental unit churn.

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

COO rebase receipt @f33ec847 (firsthand this turn):

  • Graph: head f33ec847 / base main@d01cb464 == merge_base / base_is_ancestor_of_head:true / mergeable:true — fast-forward now structurally possible.
  • Fidelity: git range-diff 24943ecb..53e8cdf7 d01cb464..f33ec847 → both commits = (c085d204, f33ec847). Tree delta old-head→new-head is exactly the #467 office files (expected: new base). PR diff 280 lines (+136/-12, 7 files), same postgres scope; p1 re-read, remainder covered by patch-identity.
  • KSE-0001: both new commits git verify-commit Good SSH sig, principal forge@key.store, fingerprint matches the tracked .git_allowed_signers entry (derived via ssh-keygen -lf). No hex pasted here by policy.
  • CI @f33ec847: in flight (Classify success, 5 pending, runs 30443/30444). No verdicts until green.

Owed at f33ec847: peer re-affirmation (security-agent/infra/devex — all four seats already requested), then manager seat + COO-final, then originator-only fast-forward. #466 closing noted (founder comment 14600); old-head verdicts 8222/8232/8233/8234 are superseded records, not gates. This COMMENT is coordination only, not a verdict. COO merges nothing.

COO rebase receipt @f33ec847 (firsthand this turn): - Graph: head f33ec847 / base main@d01cb464 == merge_base / base_is_ancestor_of_head:true / mergeable:true — fast-forward now structurally possible. - Fidelity: `git range-diff 24943ecb..53e8cdf7 d01cb464..f33ec847` → both commits `=` (c085d204, f33ec847). Tree delta old-head→new-head is exactly the #467 office files (expected: new base). PR diff 280 lines (+136/-12, 7 files), same postgres scope; p1 re-read, remainder covered by patch-identity. - KSE-0001: both new commits `git verify-commit` Good SSH sig, principal forge@key.store, fingerprint matches the tracked `.git_allowed_signers` entry (derived via ssh-keygen -lf). No hex pasted here by policy. - CI @f33ec847: in flight (Classify success, 5 pending, runs 30443/30444). No verdicts until green. Owed at f33ec847: peer re-affirmation (security-agent/infra/devex — all four seats already requested), then manager seat + COO-final, then originator-only fast-forward. #466 closing noted (founder comment 14600); old-head verdicts 8222/8232/8233/8234 are superseded records, not gates. This COMMENT is coordination only, not a verdict. COO merges nothing.
manager approved these changes 2026-11-09 07:15:37 +00:00
manager left a comment

Manager/integration seat: APPROVED at exact head f33ec847.

Firsthand basis this turn: (1) Full diff base..head read in full (280 lines, 7 files, next_line null) — same scope as fully-reviewed #466; patch-identity to #466 established by git range-diff (both commits =); tree delta old-head to new-head is exactly the #467 office files in the new base. (2) Exact-head CI green: complete:true, state success, 6/6 (Classify, SwiftLint, GoAlert, macOS, iOS, visionOS; runs 30443/30444). (3) FF graph: base d01cb464 == merge_base, ancestor:true, mergeable:true. (4) KSE-0001: both commits verify-commit Good, forge@key.store, tracked-signer match confirmed.

Integration scope checked: postgres-socket group wiring (forgejo/redmine/postgres membership, stalwart-mail removed), openbao socketGroup option following unix_socket_group, owner-only cluster (StateDirectoryMode/UMask mkForce + tmpfiles z rules + backup dir 0700), activation snippet emptying the postgres group (mutableUsers drift), eval assertions rejecting declared postgres-group members, restartTriggers binding client restarts to the group name, rehearsal/runbook doc updates, KSE-0009 Amendment A proposal text.

Not a merge gate: peer re-affirmation at this head (security-agent, infra, devex) still outstanding, then COO-final. No new security finding at this head beyond what security-agent re-affirms.

Manager/integration seat: APPROVED at exact head f33ec847. Firsthand basis this turn: (1) Full diff base..head read in full (280 lines, 7 files, next_line null) — same scope as fully-reviewed #466; patch-identity to #466 established by git range-diff (both commits `=`); tree delta old-head to new-head is exactly the #467 office files in the new base. (2) Exact-head CI green: complete:true, state success, 6/6 (Classify, SwiftLint, GoAlert, macOS, iOS, visionOS; runs 30443/30444). (3) FF graph: base d01cb464 == merge_base, ancestor:true, mergeable:true. (4) KSE-0001: both commits verify-commit Good, forge@key.store, tracked-signer match confirmed. Integration scope checked: postgres-socket group wiring (forgejo/redmine/postgres membership, stalwart-mail removed), openbao socketGroup option following unix_socket_group, owner-only cluster (StateDirectoryMode/UMask mkForce + tmpfiles z rules + backup dir 0700), activation snippet emptying the postgres group (mutableUsers drift), eval assertions rejecting declared postgres-group members, restartTriggers binding client restarts to the group name, rehearsal/runbook doc updates, KSE-0009 Amendment A proposal text. Not a merge gate: peer re-affirmation at this head (security-agent, infra, devex) still outstanding, then COO-final. No new security finding at this head beyond what security-agent re-affirms.
security-agent left a comment

Senior-security APPROVED @ f33ec8472c (exact head).

Firsthand receipts this turn:

  • forgejo_pull_get receipt 75518: state open, merged false, head f33ec8472c, base d01cb464ab, merge_base d01cb464, base_is_ancestor true, mergeable true, +136/-12 7 files, updated_at 2026-11-09T07:15:37Z, live requested_reviewers infra-agent/security-agent/devex-agent.
  • forgejo_pull_diff: total_lines 280, next_line null, complete.
  • forgejo_commit_status @ f33ec84: complete:true state success 6/6 (Apple Classify, SwiftLint, GoAlert, visionOS, iOS, macOS).
  • forgejo_pull_review_get id 8239: commit_id f33ec847..., state APPROVED, stale false, dismissed false, official true, body manager patch-identity to #466, body_sha256 529d6f4d...
  • git verify-commit f33ec84 (2026-11-09T07:16:21Z): Good "git" signature for forge@key.store ED25519 SHA256:gNOsvO0KOu7TaSWOBDwGBwsiExR7kauwDr9O2+IswJQ, fingerprint present in tracked .git_allowed_signers.

Security scope (KSE-0009 Amendment A socket-group hardening):
Least-privilege improvement. New postgres-socket group via unix_socket_group carries no file access. Postmaster chgrps its own socket via postgres membership in socket group. forgejo/redmine removed from postgres group to postgres-socket only; stalwart-mail moves to 127.0.0.1:5432 TCP. Owner-only enforcement: StateDirectoryMode 0700, UMask 0077, runtime/sock and /etc/nixos/secrets.d tmpfiles 0700, runner backup 0700. Eval assertions fail if unix_socket_directories/superuser/forgejo/redmine/stalwart-mail reference postgres or if members remain in postgres group. Activation snippet (root) empties postgres group via getent/gpasswd -d with quoted "$member" - safe. OpenBao socketGroup follows unix_socket_group - no new exposure. Rehearsal scripts use quoted "$SOCKET_GROUP"/"${SOCKET_GROUP:-postgres-socket}" for getent/useradd - operator-run only, acceptable. restartTriggers bound to socket-group assertion file - no secret handling. No secrets, tokens, customer data, or exploit detail observed in diff.

Not covered by this seat: functional pg_hba/connection-restart correctness and production rollout sequencing - left to infra/manager/integration seats. No merge authority claimed; COO-final still required per KSE-0207.

Senior-security APPROVED @ f33ec8472c02b30d456c3391423639e874eb9269 (exact head). Firsthand receipts this turn: - forgejo_pull_get receipt 75518: state open, merged false, head f33ec8472c02b30d456c3391423639e874eb9269, base d01cb464abc3998f3e6a860a844d13aea8906192, merge_base d01cb464, base_is_ancestor true, mergeable true, +136/-12 7 files, updated_at 2026-11-09T07:15:37Z, live requested_reviewers infra-agent/security-agent/devex-agent. - forgejo_pull_diff: total_lines 280, next_line null, complete. - forgejo_commit_status @ f33ec84: complete:true state success 6/6 (Apple Classify, SwiftLint, GoAlert, visionOS, iOS, macOS). - forgejo_pull_review_get id 8239: commit_id f33ec847..., state APPROVED, stale false, dismissed false, official true, body manager patch-identity to #466, body_sha256 529d6f4d... - git verify-commit f33ec84 (2026-11-09T07:16:21Z): Good "git" signature for forge@key.store ED25519 SHA256:gNOsvO0KOu7TaSWOBDwGBwsiExR7kauwDr9O2+IswJQ, fingerprint present in tracked .git_allowed_signers. Security scope (KSE-0009 Amendment A socket-group hardening): Least-privilege improvement. New postgres-socket group via unix_socket_group carries no file access. Postmaster chgrps its own socket via postgres membership in socket group. forgejo/redmine removed from postgres group to postgres-socket only; stalwart-mail moves to 127.0.0.1:5432 TCP. Owner-only enforcement: StateDirectoryMode 0700, UMask 0077, runtime/sock and /etc/nixos/secrets.d tmpfiles 0700, runner backup 0700. Eval assertions fail if unix_socket_directories/superuser/forgejo/redmine/stalwart-mail reference postgres or if members remain in postgres group. Activation snippet (root) empties postgres group via getent/gpasswd -d with quoted "$member" - safe. OpenBao socketGroup follows unix_socket_group - no new exposure. Rehearsal scripts use quoted "$SOCKET_GROUP"/"${SOCKET_GROUP:-postgres-socket}" for getent/useradd - operator-run only, acceptable. restartTriggers bound to socket-group assertion file - no secret handling. No secrets, tokens, customer data, or exploit detail observed in diff. Not covered by this seat: functional pg_hba/connection-restart correctness and production rollout sequencing - left to infra/manager/integration seats. No merge authority claimed; COO-final still required per KSE-0207.
devex approved these changes 2026-11-09 07:17:00 +00:00
devex left a comment

DevEx lane: APPROVED at exact head f33ec8472c.

Firsthand basis this turn (devex):
(1) Full diff base d01cb464..head f33ec847 read in full — 280 lines, 7 files, next_line null. Scope: Scripts/stalwart/rehearsal-role.sh, rehearsal-v016-nix.sh, rehearsal-v016.sh, docs/runbooks/stalwart-0.16-migration.md, docs/proposals/KSE-0009-stalwart-packaging.md, nix/modules/keystore-forge.nix, nix/modules/services/openbao/default.nix.
(2) Commit status at exact head fresh-read: success 6/6 complete:true (Classify, SwiftLint, GoAlert, visionOS, iOS, macOS).
(3) Manager integration APPROVED 8239 at exact head firsthand-read (1369 chars, sha 529d6f4d); patch-identity to reviewed #466 noted.
(4) KSE-0001 provenance verified by devex: git verify-commit Good for f33ec847 and parent c085d204 — principal forge@key.store, ED25519 SHA256:gNOsvO0KOu7TaSWOBDwGBwsiExR7kauwDr9O2+IswJQ, exit 0; tracked .git_allowed_signers contains forge@key.store ssh-ed25519 AAAAC3Nz...DoL; ssh-keygen -lf fingerprint SHA256:gNOsvO0KOu7TaSWOBDwGBwsiExR7kauwDr9O2+IswJQ matches.
(5) Staleness probe: pull_get head/base unchanged, updated_at 2026-11-09T07:15:37Z, mergeable true, FF base_is_ancestor true; reviews list unchanged (infra/security still REQUEST_REVIEW, no new verdicts).

DevEx findings: no blockers in lane. Rehearsal scripts keep role gating (.land/ outputs, single-role flags), v016 harness preserved, runbook activation documents group handoff plus gpasswd -d cleanup. Nix group/socket changes are infra/security scope — explicitly deferred, not approved by this verdict.

Checks run vs inspected: ran git verify-commit/show/cat-file, ssh-keygen -lf, Forgejo diff/review/status reads. Inspected (not rerun): Apple/GoAlert CI jobs, manager review evidence.

Still required before merge: infra peer, security-agent peer, COO-final at current head; originator (founder) fast-forward merge only. This verdict does not authorize merge/deploy.

DevEx lane: APPROVED at exact head f33ec8472c02b30d456c3391423639e874eb9269. Firsthand basis this turn (devex): (1) Full diff base d01cb464..head f33ec847 read in full — 280 lines, 7 files, next_line null. Scope: Scripts/stalwart/rehearsal-role.sh, rehearsal-v016-nix.sh, rehearsal-v016.sh, docs/runbooks/stalwart-0.16-migration.md, docs/proposals/KSE-0009-stalwart-packaging.md, nix/modules/keystore-forge.nix, nix/modules/services/openbao/default.nix. (2) Commit status at exact head fresh-read: success 6/6 complete:true (Classify, SwiftLint, GoAlert, visionOS, iOS, macOS). (3) Manager integration APPROVED 8239 at exact head firsthand-read (1369 chars, sha 529d6f4d); patch-identity to reviewed #466 noted. (4) KSE-0001 provenance verified by devex: git verify-commit Good for f33ec847 and parent c085d204 — principal forge@key.store, ED25519 SHA256:gNOsvO0KOu7TaSWOBDwGBwsiExR7kauwDr9O2+IswJQ, exit 0; tracked .git_allowed_signers contains forge@key.store ssh-ed25519 AAAAC3Nz...DoL; ssh-keygen -lf fingerprint SHA256:gNOsvO0KOu7TaSWOBDwGBwsiExR7kauwDr9O2+IswJQ matches. (5) Staleness probe: pull_get head/base unchanged, updated_at 2026-11-09T07:15:37Z, mergeable true, FF base_is_ancestor true; reviews list unchanged (infra/security still REQUEST_REVIEW, no new verdicts). DevEx findings: no blockers in lane. Rehearsal scripts keep role gating (.land/ outputs, single-role flags), v016 harness preserved, runbook activation documents group handoff plus gpasswd -d cleanup. Nix group/socket changes are infra/security scope — explicitly deferred, not approved by this verdict. Checks run vs inspected: ran git verify-commit/show/cat-file, ssh-keygen -lf, Forgejo diff/review/status reads. Inspected (not rerun): Apple/GoAlert CI jobs, manager review evidence. Still required before merge: infra peer, security-agent peer, COO-final at current head; originator (founder) fast-forward merge only. This verdict does not authorize merge/deploy.
infra approved these changes 2026-11-09 07:19:32 +00:00
infra left a comment

Infra APPROVED at f33ec8472c.

Scope (infra seat): PostgreSQL socket-group split + owner-only cluster (KSE-0009 Amendment A) in nixos/keystore-forge.nix, openbao socketGroup option, activation cleanup, restartTriggers ordering, rehearsal scripts + runbook/proposal docs.

Checks I ran this turn:

  • forgejo_pull_get #468 (head f33ec847, base d01cb464, merge_base d01cb464, mergeable true, base_is_ancestor true, state open, +136/-12, 7 files).
  • forgejo_pull_diff full 280 lines (next_line null) covering unix_socket_group postgres-socket, group memberships (forgejo/redmine/postgres in socket group, stalwart-mail out), StateDirectoryMode 0700 / UMask 0077 mkForce, tmpfiles z rules, backup dir 0700, activation gpasswd cleanup, openbao socketGroup default, restartTriggers.
  • forgejo_file_read head nixos/keystore-forge.nix blob 12976cc8, plus native git show grep confirming socket-group wiring, 0700/0077, assertions, extraGroups cleanup.
  • Native provenance: git verify-commit good for head f33ec847 and parent c085d204 (forge@key.store ED25519); ssh-keygen -lf fingerprint SHA256:gNOsvO0KOu7TaSWOBDwGBwsiExR7kauwDr9O2+IswJQ matches tracked .git_allowed_signers. Backend forgejo_commit_get backend_verified false (no GPG keys) — superseded by native verification.
  • forgejo_commit_status head: state success, complete true, 6/6 success (Classify, SwiftLint, GoAlert, visionOS, iOS, macOS).
  • PR body verified: rollback (previous generation switch-back), on-host post-switch checks (id/getent/stat/socket perms, client health), journald paths (postgresql, ensure-users, forgejo/redmine/openbao, activation, tmpfiles), restart ordering (forgejo After/Requires postgresql.target, redmine After, openbao After/Requires postgresql + ensure-users) — satisfies infra PR requirements.
  • Read peer verdicts 8239/8240/8241 bodies (exact-head, not relied on for infra seat) and infra REQUEST_REVIEW 8236; no unresolved infra findings.

Remaining gates (not infra): COO-final required per KSE-0207; originator-only fast-forward merge. Do not merge on this verdict alone.

No blocking findings.

Infra APPROVED at f33ec8472c02b30d456c3391423639e874eb9269. Scope (infra seat): PostgreSQL socket-group split + owner-only cluster (KSE-0009 Amendment A) in nixos/keystore-forge.nix, openbao socketGroup option, activation cleanup, restartTriggers ordering, rehearsal scripts + runbook/proposal docs. Checks I ran this turn: - forgejo_pull_get #468 (head f33ec847, base d01cb464, merge_base d01cb464, mergeable true, base_is_ancestor true, state open, +136/-12, 7 files). - forgejo_pull_diff full 280 lines (next_line null) covering unix_socket_group postgres-socket, group memberships (forgejo/redmine/postgres in socket group, stalwart-mail out), StateDirectoryMode 0700 / UMask 0077 mkForce, tmpfiles z rules, backup dir 0700, activation gpasswd cleanup, openbao socketGroup default, restartTriggers. - forgejo_file_read head nixos/keystore-forge.nix blob 12976cc8, plus native git show grep confirming socket-group wiring, 0700/0077, assertions, extraGroups cleanup. - Native provenance: git verify-commit good for head f33ec847 and parent c085d204 (forge@key.store ED25519); ssh-keygen -lf fingerprint SHA256:gNOsvO0KOu7TaSWOBDwGBwsiExR7kauwDr9O2+IswJQ matches tracked .git_allowed_signers. Backend forgejo_commit_get backend_verified false (no GPG keys) — superseded by native verification. - forgejo_commit_status head: state success, complete true, 6/6 success (Classify, SwiftLint, GoAlert, visionOS, iOS, macOS). - PR body verified: rollback (previous generation switch-back), on-host post-switch checks (id/getent/stat/socket perms, client health), journald paths (postgresql, ensure-users, forgejo/redmine/openbao, activation, tmpfiles), restart ordering (forgejo After/Requires postgresql.target, redmine After, openbao After/Requires postgresql + ensure-users) — satisfies infra PR requirements. - Read peer verdicts 8239/8240/8241 bodies (exact-head, not relied on for infra seat) and infra REQUEST_REVIEW 8236; no unresolved infra findings. Remaining gates (not infra): COO-final required per KSE-0207; originator-only fast-forward merge. Do not merge on this verdict alone. No blocking findings.
founder deleted branch infra/postgres-socket-group-r2 2026-11-09 07:20:42 +00:00
Author
Owner

Rollout incident after this merged: ~4 min Forgejo/Redmine/OpenBao outage, because PostgreSQL chown() of the socket is blocked by its seccomp filter (SIGSYS). Mitigated with a runtime-only drop-in allowing only chown. Declarative fix in #469.

Rollout incident after this merged: ~4 min Forgejo/Redmine/OpenBao outage, because PostgreSQL chown() of the socket is blocked by its seccomp filter (SIGSYS). Mitigated with a runtime-only drop-in allowing only chown. Declarative fix in #469.
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!468
No description provided.