Allow Argo CD server egress to SSO when SSO is enabled
General MR
Summary
Restores Argo CD server egress to the SSO provider when packages.argocd.sso.enabled is true. Argo CD's server calls Keycloak itself for OIDC discovery and the code-for-token exchange. Until the cleanup in 4d211563, that traffic was allowed only by accident, through the umbrella's wide-open kubeAPI egress override (0.0.0.0/0, no ports). With bb-common's real kubeAPI definition now in effect (port 6443 only), the default deny-all egress policy rejects the call. The SSO login then loops back to /login until the Helm test times out. This adds definition.sso egress for argocd-server, the same pattern Kiali, Grafana, Mattermost and GitLab already use.
argocd-servergetsto.definition.ssoegress gated onpackages.argocd.sso.enabled.- Unit tests cover both the enabled and disabled renders.
Relevant logs/screenshots
- Failure: every argocd!450
values-ssojob since 4d211563 merged (upgrade and clean install, pipeline 5812792) fails withargocd-argocd-cypress-teststillInProgressatcontext deadline exceeded. ztunnel logsargocd-server→keycloak.dev.bigbang.mil(dst.workload="keycloak-internal", the passthrough gateway LB IP:443) withConnection refused (os error 111), once per Cypress retry. - Local reproduction: k3d with ambient, umbrella master
be3b99b6c, argocdmain, and argocd'stests/test-values-sso.yaml. The Keycloak OIDC discovery request from theargocdnamespace failed 5/5 with the same ztunnel error, and the Argo CD Cypress test timed out. - Fix verification: with this egress rule applied,
allow-egress-from-argocd-server-to-ssois created, and the Argo CD Cypress SSO test (35s) and script test both pass. - Unit tests: the new tests fail without the template change and pass with it. The full chart unit test suite passes.
Linked Issue
Closes #3506 (closed)
Upgrade Notices
N/A