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 for RHDH workloads
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
1.
|
|
Important The |
… enabled Assisted-by: Claude
|
|
May not be needed anymore |



Description of the change
Adds an
allow-http-egressNetworkPolicy to the chart's default NP set, 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
How to test changes / Special notes to the reviewer
helm template my-rhdh charts/rhdh --set orchestrator.enabled=false | grep -A 20 allow-http-egressVerify the NP has:
namespaceSelector: {}in thetoblock (in-cluster only)Companion operator PR: redhat-developer/rhdh-operator#3626
Checklist
Chart.yamlaccording to Semantic Versioning.values.yamland added to the corresponding README.md. The pre-commit utility can be used to generate the necessary content. Runpre-commit run --all-filesto run the hooks and then push any resulting changes. The pre-commit Workflow will enforce this and warn you if needed.pre-commithook.ct lintcommand.