Skip to content

Add NetworkPolicies for ax-server and Postgres - #582

Merged
yongruilin merged 1 commit into
google:mainfrom
yongruilin:networkpolicy
Nov 13, 2026
Merged

yongruilin merged 1 commit into
google:mainfrom
yongruilin:networkpolicy

Conversation

@yongruilin

Copy link
Copy Markdown
Collaborator

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 and kubectl port-forward still can.
  • ax-postgres: only ax-server can connect, on port 5432.
  • The same policies are in deploy/ and test/e2e/manifests/; the /substrate skill 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.

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 mayawang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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

@yongruilin
yongruilin merged commit 8f8c101 into google:main Nov 13, 2026
10 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.

2 participants