Skip to content

fix: bind valkey and postgres to loopback and pin sidecar images; 35.0.3:4 → 35.0.3:5 - #191

Merged
MattDHill merged 1 commit into
masterfrom
fix/valkey-loopback
Nov 24, 2026
Merged

MattDHill merged 1 commit into
masterfrom
fix/valkey-loopback

Conversation

@MattDHill

@MattDHill MattDHill commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Fixes #190

  • Valkey listens on loopback only. valkey-server ran bare, and the valkey/valkey image patches protected-mode off, so it accepted unauthenticated connections on every interface. Its only clients — Nextcloud (config.php redis.host = localhost) and the health check (valkey-cli ping) — are local, so it now runs with --bind 127.0.0.1 -::1 --protected-mode yes. The - prefix makes ::1 optional: verified in a scratch valkey/valkey:9.2.0-alpine container that it listens on 127.0.0.1:6379 and [::1]:6379, answers PING on both, and with IPv6 disabled logs a warning and still starts on 127.0.0.1.
  • Postgres listens on loopback only (-c listen_addresses=127.0.0.1), as every other Postgres sidecar in the fleet does. It was password-protected but bound to every interface. Nextcloud (POSTGRES_HOST=localhost) and pg_isready -h localhost fall through ::1 to 127.0.0.1.
  • Sidecar images pinned to exact tags, as the rest of the fleet does (mariadb:11.8.9, postgres:18.6, …): valkey/valkey:9-alpine → 9.2.0-alpine (the digest 9-alpine currently resolves to) and postgres:17-alpine → 17.12-alpine (same major, no migration). UPDATING.md now tells the update monitor to bump them to the newest exact tag in-major. Both are what the floating tags already resolved to when 35.0.3:4 was built (2026-11-23), so the pin changes no image for users and the release notes don't mention it.
  • Revision bump 35.0.3:4 → 35.0.3:5 (:4 is on beta), with release notes. Already on start-sdk 4.1.0.

tsc and the bundle build pass; not installed on a box.

review effort: 'high'

🤖 Generated with Claude Code

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the full diff and shared daemon setup used by installation, upgrades, and normal startup. The loopback bindings preserve both localhost clients, and upstream Valkey documents the optional IPv6 bind syntax. Both exact image tags exist for x86_64 and aarch64; PostgreSQL stays on major 17. The revision bump and update instructions match.

No correctness findings. Merges cleanly with master. CI architecture builds are pending; no builds or tests run for this review.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

…0.3:4 → 35.0.3:5

valkey-server ran with no arguments, and the valkey/valkey image patches
protected-mode off, so it listened on every interface with no password.
Nextcloud and the health check reach it on localhost only, so bind it to
127.0.0.1 and (optionally) ::1, with protected-mode back on.

Postgres also listened on every interface (password-protected); bind it
to 127.0.0.1 as the rest of the fleet's Postgres sidecars do.

Pin valkey/valkey:9-alpine and postgres:17-alpine to exact tags
(9.2.0-alpine, 17.12-alpine), as the rest of the fleet does, and update
UPDATING.md to match.

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

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewed 63a93ef against the previously approved head. The added PostgreSQL loopback restriction is passed through the image entrypoint correctly and preserves the localhost connections used by Nextcloud and readiness checks. The shared daemon setup covers installation, upgrades, and normal startup. Updated release notes match the scope.

No correctness findings. Merges cleanly with master; both architecture builds passed. No builds or tests run for this review.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@MattDHill
MattDHill merged commit 5db0fa9 into master Nov 24, 2026
4 checks passed
@MattDHill
MattDHill deleted the fix/valkey-loopback branch November 24, 2026 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Valkey listens on all container interfaces with no password

2 participants