The GitHub Actions job "Required Checks" on texera.git/backport/8777-deny-pod-to-pod-traffic-inside-the-compu-v1.3 has succeeded. Run started by GitHub user mengw15 (triggered by mengw15).
Head commit for run: a14d07daf372b2b483920a026cad5904afed5385 / ali risheh <[email protected]> feat(k8s): deny pod-to-pod traffic inside the computing unit pool (#8777) ### What changes were proposed in this PR? Adds a NetworkPolicy to the computing unit pool namespace so pods in the pool can no longer open connections to each other. Ingress from every other namespace is still allowed, so the gateway and the agent service reach computing units as before. - It selects every pod in the pool (`podSelector: {}`), not only computing units, so the image-validation and prepull pods the manager runs there can't reach a unit either. - It only restricts ingress. Egress from computing units (Postgres, LakeFS, object storage, DNS) doesn't change. - It is always deployed, with no values flag to turn it off: there is no deployment in which one computing unit should reach another. It is only enforced on clusters with a NetworkPolicy controller; without one the object exists but has no effect. - The template lives under `templates/base/gateway/`. ### Any related issues, documentation, discussions? None. ### How was this PR tested? Minikube with Calico, chart installed with `values-development.yaml`, two Kubernetes computing units: | From | To | Policy on | Policy removed | |---|---|---|---| | computing unit 1 | computing unit 2 (DNS and pod IP) | timed out | connected | | computing unit 2 | computing unit 1 | timed out | — | | non-CU pod in the pool namespace | computing unit 1 | timed out | — | | agent-service pod (`texera-dev`) | both computing units | connected | — | | throwaway pod in `texera-dev` | computing unit 1 | connected | — | | browser via gateway (`/wsapi/workflow-websocket`) | both computing units | connected, state events received | — | | computing unit 1 | Postgres, LakeFS, RustFS | connected | — | | Python UDF running on computing unit 2 (from the workspace) | another computing unit | timed out | — | `helm upgrade` recreates the policy after it's deleted (re-checked after dropping the flag), and `bin/k8s/tests/test_helm_values.sh` passes. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (Claude Opus 5.5) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- (backported from commit cf6faeb7b31ff3defeab77cc2bbd614035dabf82) Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]> Report URL: https://github.com/apache/texera/actions/runs/41951465569 With regards, GitHub Actions via GitBox
