Commit 73ff5c6
sec(data): persist admin-lockdown into postgres-customers Deployment + drill log (#63)
Follow-up to the 2026-06-06 apply of PR #61. The lockdown was applied to prod via
`kubectl patch` (imperative). This makes the durable repo manifest match the live
state so a future apply of postgres-customers.yaml does NOT silently revert the
lockdown back to the vulnerable catch-all pg_hba:
- mount the postgres-customers-hba ConfigMap at /etc/postgresql/pg_hba.conf (subPath)
- start postgres with `-c hba_file=... -c password_encryption=scram-sha-256`
- strategy RollingUpdate → Recreate (the RWO PVC deadlocks a rolling update on a
Multi-Attach error; Recreate terminates the old pod first — brief downtime,
acceptable for single-replica stateful)
Runbook §9 Drill Log records the apply result: external admin (instanode_admin +
instant_cust) now REJECTED at pg_hba (verified live; baseline reached scram), all
in-cluster admin + customer usr_* paths preserved (verified), no rollback. Lists
the operator follow-ups (durable pg-proxy role-gate; proxy-IP churn refresh;
networkpolicy.yaml apply-exclude).
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent e308143 commit 73ff5c6
2 files changed
Lines changed: 48 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
22 | 29 | | |
23 | 30 | | |
24 | 31 | | |
| |||
30 | 37 | | |
31 | 38 | | |
32 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
33 | 51 | | |
34 | 52 | | |
35 | 53 | | |
| |||
45 | 63 | | |
46 | 64 | | |
47 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
48 | 72 | | |
49 | 73 | | |
50 | 74 | | |
| |||
54 | 78 | | |
55 | 79 | | |
56 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
57 | 87 | | |
58 | 88 | | |
59 | 89 | | |
| |||
0 commit comments