Repository navigation
Conversation
Keycloak and other in-cluster services may run behind plain HTTP
routes or services without TLS termination. The existing default-deny
NPs only allow egress on ports 443, 53/5353, 5432, and 6379, which
blocks port 80 traffic and causes OIDC discovery timeouts.
Add an allow-http-egress NP restricted to cluster-internal
destinations (namespaceSelector: {}) so that plugins can reach
in-cluster HTTP services without requiring users to create custom
additive NPs.
Assisted-by: Claude
PR Summary by QodoAllow cluster-internal HTTP egress in default NetworkPolicies
AI Description
Diagram
High-Level Assessment
Files changed (4)
|
Code Review by Qodo
1.
|
|
Important The |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3626 +/- ##
==========================================
+ Coverage 60.00% 60.05% +0.05%
==========================================
Files 51 51
Lines 3560 3560
==========================================
+ Hits 2136 2138 +2
+ Misses 1230 1229 -1
+ Partials 194 193 -1
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
✅ PR images built and pushed successfully! Images are available for testing (expires in 7 days):
|
Assisted-by: Claude
|
|
/agentic_review |
|
Code review by qodo was updated up to the latest commit 673e63d |
|
✅ PR images built and pushed successfully! Images are available for testing (expires in 7 days):
|
|
May not be needed anymore |



Description
Adds an
allow-http-egressNetworkPolicy to the operator's default NP config, allowing egress on port 80 only to cluster-internal destinations (namespaceSelector: {}).This fixes OIDC discovery timeouts when Keycloak (or other in-cluster services) runs behind a plain HTTP route without TLS termination. The existing default-deny NPs only allow egress on ports 443, 53/5353, 5432, and 6379, which blocks port 80 traffic.
Which issue(s) does this PR fix or relate to
PR acceptance criteria
networkpolicy_test.go(7→8 backend, 10→11 total, 8→9 flavour merge)How to test changes / Special notes to the reviewer
All existing NP tests pass with updated assertions. The new NP is added to:
config/profile/rhdh/default-config/networkpolicy.yaml(source of truth)pkg/model/testdata/default-config/networkpolicy.yaml(test fixture)pkg/model/testdata/testflavours/default-config/networkpolicy.yaml(flavour test fixture)bin/default-config/is auto-generated and not updated here.Companion chart PR: redhat-developer/rhdh-chart#556