Skip to content

Add-on runtimeClassName and NetworkPolicies; fix postgres-selecting policies - #14

Merged
Temikus merged 3 commits into
mainfrom
feat/addon-runtimeclass-netpol
Nov 21, 2026
Merged

Temikus merged 3 commits into
mainfrom
feat/addon-runtimeclass-netpol

Conversation

@Temikus

@Temikus Temikus commented Nov 21, 2026

Copy link
Copy Markdown
Owner

Purpose

Lets add-ons that run their own pods use a RuntimeClass, and adds opt-in NetworkPolicies so other pods can't reach an add-on directly. Today any pod can connect to an app's Postgres, or to gluetun's control server and proxies on a VPN pod.

# Commit Change Deployed effect
1 62d870e runtimeClassName for postgres and cloudflared; postgres and VPN NetworkPolicies None unless set
2 4f36743 Fix two existing NetworkPolicy bugs; split stale CHANGELOG entries Policy selector changes where networkPolicy is enabled
3 61bc748 Release 1.12.0 -

What a reviewer needs to know

  • Opt-in: addons.postgres.runtimeClassName, addons.cloudflareTunnel.tunnel.runtimeClassName, addons.postgres.networkPolicy, and addons.vpn.networkPolicy all default off. With none set, renders match main.
  • No inheritance: postgres ignores the top-level runtimeClassName, so gVisor on the app doesn't move its database too.
  • cloudflared: set through the Tunnel CR's deployPatch, so it only works with tunnel.create, not tunnelRef.
  • Fix 1: networkPolicy and the tunnel policy also selected the postgres pod, blocking its clients. They now exclude it.
  • Fix 2: allowPortsIngress with no ports allowed every port. It now denies all ingress.
  • Release: tag v1.12.0 after merge.
Verification
  • just check: lint passes, 229 unit tests and 20 snapshots pass, and kubeconform validates all four ci/*-values.yaml files (ci/vpn-values.yaml is new).
  • The three tests added for the fixes fail against the old templates.

🤖 Generated with Claude Code

https://claude.ai/code/session_01YGMCH8mXa88PJJJW21r1Ep

Temikus and others added 3 commits November 21, 2026 18:07
Postgres gets its own runtimeClassName, with no fallback to the
top-level one, and cloudflared gets one through the Tunnel CR's
deployPatch. Opt-in policies limit Postgres to this release's main pods
and keep gluetun's control and proxy ports off the pod IP. All default
off, so existing renders are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YGMCH8mXa88PJJJW21r1Ep
…ngress

networkPolicy and the tunnel policy selected the postgres addon pod too,
cutting it off from its clients. allowPortsIngress with no ports rendered
a rule allowing every port. Also splits stale [Unreleased] CHANGELOG
entries into their 1.10.0-1.12.0 releases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YGMCH8mXa88PJJJW21r1Ep
@Temikus
Temikus merged commit 3d626a1 into main Nov 21, 2026
3 checks passed
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.

1 participant