Repository navigation
Add-on runtimeClassName and NetworkPolicies; fix postgres-selecting policies - #14
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
62d870eruntimeClassNamefor postgres and cloudflared; postgres and VPN NetworkPolicies4f36743networkPolicyis enabled61bc748What a reviewer needs to know
addons.postgres.runtimeClassName,addons.cloudflareTunnel.tunnel.runtimeClassName,addons.postgres.networkPolicy, andaddons.vpn.networkPolicyall default off. With none set, renders matchmain.runtimeClassName, so gVisor on the app doesn't move its database too.deployPatch, so it only works withtunnel.create, nottunnelRef.networkPolicyand the tunnel policy also selected the postgres pod, blocking its clients. They now exclude it.allowPortsIngresswith noportsallowed every port. It now denies all ingress.v1.12.0after merge.Verification
just check: lint passes, 229 unit tests and 20 snapshots pass, and kubeconform validates all fourci/*-values.yamlfiles (ci/vpn-values.yamlis new).🤖 Generated with Claude Code
https://claude.ai/code/session_01YGMCH8mXa88PJJJW21r1Ep