fix(manifests): replace broken NetworkPolicy with proper platform ingress rules#1566
fix(manifests): replace broken NetworkPolicy with proper platform ingress rules#1566markturansky wants to merge 2 commits into
Conversation
✅ Deploy Preview for cheerful-kitten-f556a0 canceled.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe NetworkPolicy ChangesRunner NetworkPolicy ingress rewrite
Possibly related PRs
🚥 Pre-merge checks | ✅ 8✅ Passed checks (8 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
Comment |
dc2f589 to
5f1d48a
Compare
…ress rules The allow-from-runner-namespaces NP (#1553) uses podSelector: {} (all pods) but only permits ingress from runner pods, blocking OpenShift router traffic to the frontend and all other services. This caused outages on both Stage and UAT clusters. Replace with allow-platform-ingress that permits: - OpenShift router ingress (policy-group.network.openshift.io/ingress label) - Intra-namespace pod-to-pod traffic - Runner pod ingress from any namespace (original intent of #1553) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
514e8d6 to
baa4ad7
Compare
Summary
allow-from-runner-namespacesNetworkPolicy (fix(manifests): add NetworkPolicy allowing runner pods to reach ambient-code namespace #1553)podSelector: {}(selects ALL pods in the namespace) but only allows ingress fromapp=ambient-code-runnerpods — this blocks OpenShift router traffic to the frontend and all other servicesallow-platform-ingressthat permits:policy-group.network.openshift.io/ingressnamespace labelRoot Cause
PR #1553 merged a NetworkPolicy into
base/that inadvertently blocked all ingress to theambient-codenamespace except from runner pods. On OpenShift, the ingress router runs in a separate namespace (openshift-ingress), so all external traffic to the frontend, backend routes, and API server was denied.Test plan
kustomize buildsucceeds forbase/,overlays/production/, andoverlays/kind/🤖 Generated with Claude Code
Summary by CodeRabbit