Repository navigation
Add NetworkPolicies for ax-server and Postgres - #582
Merged
Merged
Conversation
ax-server does not authenticate its callers, so keep task code away from it: worker pods and the egress gateway can no longer connect. Only ax-server may connect to Postgres.
mayawang
approved these changes
Nov 13, 2026
mayawang
left a comment
Collaborator
There was a problem hiding this comment.
LGTM as a stopgap until #376. One note: the ax-server policy denies by Substrate pod labels, so if Substrate renames either label it quietly opens up again. The follow-up E2E that a task can't reach ax-server would catch that, so +1 on landing it soon
This was referenced Nov 13, 2026
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.
NetworkPolicies that keep Task code away from AX's own services (part of #549). A Gateway rule can name a host inside the cluster, and ax-server does not authenticate its callers yet (#376).
ax-server: worker pods and the egress gateway cannot connect; other pods andkubectl port-forwardstill can.ax-postgres: only ax-server can connect, on port 5432.deploy/andtest/e2e/manifests/; the/substrateskill lists the two Substrate pod labels they match.Follow-up: E2E that a task cannot reach ax-server through a Gateway rule that names it.