ops(security): prepare PostgreSQL 16.14 image bump #684

Merged
pdurlej merged 1 commit from codex/668-postgres-16-14 into main 2026-06-02 10:18:17 +02:00
Collaborator

Canary status: missing — fire canary 3+3 manually before merge

Summary

Prepares the repository side of the PostgreSQL 16.12 -> 16.14 security update without applying it live.

Canary Context Pack

Product story

M10 upgrade work should turn known security drift into small, reviewable upgrade packets. PostgreSQL is stateful and internal, so the repository can prepare the target image now while live apply remains behind the normal operator/runtime gate.

What changed

  • Updated the main POSTGRES_IMAGE compose default to postgres:16.14-alpine pinned by digest.
  • Updated the KAN_POSTGRES_IMAGE compose default to the same pinned 16.14 image.
  • Updated postgres and kan-postgres module metadata to the 16.14 target.
  • Updated Memory Control Plane docs that referred to the main Postgres image version.
  • Added a focused regression test for the two compose defaults.
  • Added a sanitized repo-bump evidence note with the exact gated follow-up remaining.

Why it changed

Issue #668 identified live postgres:16.12-alpine as security drift relative to PostgreSQL 16.14. This PR prepares the controlled target but does not perform the live database restart/apply/smoke.

Files touched

  • compose/core/compose.yaml
  • compose/apps/compose.yaml
  • modules/postgres/module.yaml
  • modules/kan-postgres/module.yaml
  • state/memory/task-run-schema.md
  • state/memory/procedure-registry-schema.md
  • control-plane/platformctl/tests/test_postgres_image_bump.py
  • state/reports/postgres-16-14-repo-bump-2026-06-02.md

Relevant context

  • #668 PostgreSQL 16.14 security update
  • honcho-postgres is intentionally excluded because it uses pgvector/pgvector:pg15, not postgres:16.12-alpine.

Runtime evidence

No runtime mutation. The new digest was resolved read-only with docker buildx imagetools inspect postgres:16.14-alpine.

Known constraints

The runtime lane still needs an operator-approved apply and smoke before #668 is complete. Production env overrides, if present, may still pin the old value until the gated runtime change lands.

Explicit out-of-scope

  • No live platformctl apply.
  • No Docker restart.
  • No database restart.
  • No production env/Infisical edit.
  • No Honcho pgvector upgrade.
  • Does not close #668.

Requested decision

Approve this repo-side image target so the runtime apply can proceed as a separate gated step.

Merge blockers

  • Any accidental live mutation.
  • Any change to Honcho pgvector scope.
  • Any validation failure.

Spec sources read

  • Forgejo issue #668 — task scope and acceptance criteria.
  • compose/core/compose.yaml — main Postgres service image reference.
  • compose/apps/compose.yaml — Kan Postgres image reference and Honcho exclusion.
  • modules/postgres/module.yaml — Postgres module image metadata.
  • modules/kan-postgres/module.yaml — Kan Postgres module metadata.
  • state/memory/task-run-schema.md and state/memory/procedure-registry-schema.md — current main Postgres version references.

Validation

  • uv run pytest platformctl/tests/test_postgres_image_bump.py — passed.
  • PYTHONPATH=control-plane uv run --project control-plane python -m platformctl.cli validate all --json — passed with exitCode: 0.
  • git diff --check — passed.

Refs #668

Canary status: missing — fire canary 3+3 manually before merge ## Summary Prepares the repository side of the PostgreSQL 16.12 -> 16.14 security update without applying it live. ## Canary Context Pack ### Product story M10 upgrade work should turn known security drift into small, reviewable upgrade packets. PostgreSQL is stateful and internal, so the repository can prepare the target image now while live apply remains behind the normal operator/runtime gate. ### What changed - Updated the main `POSTGRES_IMAGE` compose default to `postgres:16.14-alpine` pinned by digest. - Updated the `KAN_POSTGRES_IMAGE` compose default to the same pinned 16.14 image. - Updated `postgres` and `kan-postgres` module metadata to the 16.14 target. - Updated Memory Control Plane docs that referred to the main Postgres image version. - Added a focused regression test for the two compose defaults. - Added a sanitized repo-bump evidence note with the exact gated follow-up remaining. ### Why it changed Issue #668 identified live `postgres:16.12-alpine` as security drift relative to PostgreSQL 16.14. This PR prepares the controlled target but does not perform the live database restart/apply/smoke. ### Files touched - `compose/core/compose.yaml` - `compose/apps/compose.yaml` - `modules/postgres/module.yaml` - `modules/kan-postgres/module.yaml` - `state/memory/task-run-schema.md` - `state/memory/procedure-registry-schema.md` - `control-plane/platformctl/tests/test_postgres_image_bump.py` - `state/reports/postgres-16-14-repo-bump-2026-06-02.md` ### Relevant context - #668 PostgreSQL 16.14 security update - `honcho-postgres` is intentionally excluded because it uses `pgvector/pgvector:pg15`, not `postgres:16.12-alpine`. ### Runtime evidence No runtime mutation. The new digest was resolved read-only with `docker buildx imagetools inspect postgres:16.14-alpine`. ### Known constraints The runtime lane still needs an operator-approved apply and smoke before #668 is complete. Production env overrides, if present, may still pin the old value until the gated runtime change lands. ### Explicit out-of-scope - No live `platformctl apply`. - No Docker restart. - No database restart. - No production env/Infisical edit. - No Honcho pgvector upgrade. - Does not close #668. ### Requested decision Approve this repo-side image target so the runtime apply can proceed as a separate gated step. ### Merge blockers - Any accidental live mutation. - Any change to Honcho pgvector scope. - Any validation failure. ## Spec sources read - Forgejo issue #668 — task scope and acceptance criteria. - `compose/core/compose.yaml` — main Postgres service image reference. - `compose/apps/compose.yaml` — Kan Postgres image reference and Honcho exclusion. - `modules/postgres/module.yaml` — Postgres module image metadata. - `modules/kan-postgres/module.yaml` — Kan Postgres module metadata. - `state/memory/task-run-schema.md` and `state/memory/procedure-registry-schema.md` — current main Postgres version references. ## Validation - `uv run pytest platformctl/tests/test_postgres_image_bump.py` — passed. - `PYTHONPATH=control-plane uv run --project control-plane python -m platformctl.cli validate all --json` — passed with `exitCode: 0`. - `git diff --check` — passed. Refs #668
ops(security): prepare PostgreSQL 16.14 image bump
All checks were successful
patchwarden-pr-sanity / collect-diff (pull_request) Successful in 3s
platformctl plan / auto-apply scope (pull_request) Successful in 16s
base-is-main / guard (pull_request) Successful in 1s
canary-required / collect-diff (pull_request) Successful in 4s
patchwarden-client-dry-run / collect-diff (pull_request) Successful in 3s
python-ci / Python 3.13 (pull_request) Successful in 39s
canary-required / canary (pull_request) Successful in 11s
patchwarden-client-dry-run / dry-run (pull_request) Successful in 15s
patchwarden-pr-sanity / sanity (pull_request) Successful in 4m0s
pyfallow / Pyfallow gate (control-plane) (pull_request) Successful in 15s
python-ci / Python 3.11 (pull_request) Successful in 38s
python-ci / Python 3.12 (pull_request) Successful in 40s
183acb8e76
codex added this to the 10 - Improvements milestone 2026-06-02 10:16:52 +02:00
pdurlej deleted branch codex/668-postgres-16-14 2026-06-02 10:18:17 +02:00
Author
Collaborator

Patchwarden PR sanity

  • Status: eligible_sanity_clean
  • PR: 684
  • Commit: 183acb8e761c40d2c1d54b3e53b1598763727a7a
  • Security-sensitive label: missing
  • Authority: advisory model review plus deterministic blockers only
  • 3+3 canary: still alive; this does not replace it

Deterministic findings

No deterministic findings.

Model reviewers

global-glm / glm-5.1:cloud

  • Status: ok

  • Verdict: OK

  • medium Behavioral change: POSTGRES_IMAGE now has a default fallback

    • Evidence: compose/core/compose.yaml line 124 changed from image: ${POSTGRES_IMAGE}toimage: ${POSTGRES_IMAGE:-postgres:16.14-alpine@sha256:16bc17c64a573ef34162af9298258d1aec548232985b33ed7b1eac33ba35c229} — previously no default existed, so unse
    • Next: Verify production deployments explicitly set POSTGRES_IMAGE env var, or confirm that defaulting to 16.14 on missing var is intended. Document this behavioral change in operator runbook.

global-deepseek / deepseek-v4-pro:cloud

  • Status: ok
  • Verdict: OK
  • Findings: none

redteam / kimi-k2.6:cloud

  • Status: ok
  • Verdict: OK
  • Findings: none

Policy notes

  • GLM 5.1 + DeepSeek V4 Pro are the operator-required model mix for this bot.
  • Optional red-team model is enabled only when PLATFORMCTL_PR_SANITY_REDTEAM_MODEL is configured.
  • Auto-merge is not enabled here.
<!-- patchwarden-pr-sanity:pdurlej/platform:PR-684 --> # Patchwarden PR sanity - Status: `eligible_sanity_clean` - PR: `684` - Commit: `183acb8e761c40d2c1d54b3e53b1598763727a7a` - Security-sensitive label: `missing` - Authority: advisory model review plus deterministic blockers only - 3+3 canary: still alive; this does not replace it ## Deterministic findings No deterministic findings. ## Model reviewers ### `global-glm` / `glm-5.1:cloud` - Status: `ok` - Verdict: `OK` - **`medium`** Behavioral change: POSTGRES_IMAGE now has a default fallback - Evidence: `compose/core/compose.yaml line 124 changed from `image: ${POSTGRES_IMAGE}` to `image: ${POSTGRES_IMAGE:-postgres:16.14-alpine@sha256:16bc17c64a573ef34162af9298258d1aec548232985b33ed7b1eac33ba35c229}` — previously no default existed, so unse` - Next: Verify production deployments explicitly set POSTGRES_IMAGE env var, or confirm that defaulting to 16.14 on missing var is intended. Document this behavioral change in operator runbook. ### `global-deepseek` / `deepseek-v4-pro:cloud` - Status: `ok` - Verdict: `OK` - Findings: none ### `redteam` / `kimi-k2.6:cloud` - Status: `ok` - Verdict: `OK` - Findings: none ## Policy notes - GLM 5.1 + DeepSeek V4 Pro are the operator-required model mix for this bot. - Optional red-team model is enabled only when `PLATFORMCTL_PR_SANITY_REDTEAM_MODEL` is configured. - Auto-merge is not enabled here.
Sign in to join this conversation.
No reviewers
No labels
W6d-automerge-calibration
agent/claude-code
agent/codex
agent/hermes
agent/iskra
agent/ollama
agent/patchwarden
automerge-candidate
class/security-sensitive
cutover-gate
dependency/blocked
dependency/blocks-others
dependency/cross-repo
dependency/needs-confirmation
domain:agents
domain:ci
domain:docs
domain:forgejo
domain:infra
domain:memory
domain:runtime
domain:signal
domain:ux
flow/architecture
flow/blocked
flow/deployed
flow/done
flow/implementation
flow/intake
flow/maintained
flow/observed
flow/ready
flow/refining
flow/retired
flow/review
iterating
judge/codex-candidate
judge/hermes-candidate
judge/low-confidence
judge/needs-refinement
judge/operator-needed
judge/p0
judge/p1
judge/p2
judge/p3
judge/park
judge/patchwarden-candidate
judge/stale-priority
kind/adr
kind/bug
kind/chore
kind/feature
kind/infra
kind/ops
kind/refactor
kind/research
large-impact
merge/auto
merge/manual
merge/manual-dependency-conflict
merge/manual-failing-tests
merge/manual-merge-conflict
merge/manual-missing-review
merge/manual-operator-preference
merge/manual-red-zone
merge/manual-security-sensitive
merge/manual-unclear-scope
merge/manual-unknown
meta
mode:operator-only
mode:patchwarden-iskra-approved
mode:safe-auto
needs-operator-decision
needs-triage
not-ready
observed/erroring
observed/needs-followup
observed/pending
observed/retire-candidate
observed/unused
observed/used
operator-emotional
owner-attention
phase/02
phase/03
priority:p0
priority:p1
priority:p2
priority:p3
proposed
ready-for-agent
ready-for-operator
recovery
review:claude-reviewed
review:codex-reviewed
review:dziadek-reviewed
review:needs-human
risk/exposure
risk/process
risk/product
risk/runtime
safety:external-write
safety:no-prod-mutation
safety:prod-impact
safety:secret-touch
size/large
size/medium
size/small
size/tiny
size/unknown
source/adr
source/agent-generated
source/manual
source/operator-chat
source/voice-note
status:blocked
status:codex-ready
status:merged:pending-evidence
status:needs-evidence
status:operator-needed
status:parked
tier/full
tier/lite
tier/stacked
tier:0-platform-substrate
tier:1-iskra-value-layer
tier:2-tools-products-modules
type:bug
type:chore
type:docs
type:feat
type:policy
type:research
No milestone
No project
No assignees
1 participant
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
pdurlej/platform!684
No description provided.