UNCLASSIFIED - NO CUI

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-server gets to.definition.sso egress gated on packages.argocd.sso.enabled.
  • Unit tests cover both the enabled and disabled renders.

Relevant logs/screenshots

  • Failure: every argocd!450 values-sso job since 4d211563 merged (upgrade and clean install, pipeline 5812792) fails with argocd-argocd-cypress-test still InProgress at context deadline exceeded. ztunnel logs argocd-server → keycloak.dev.bigbang.mil (dst.workload="keycloak-internal", the passthrough gateway LB IP:443) with Connection refused (os error 111), once per Cypress retry.
  • Local reproduction: k3d with ambient, umbrella master be3b99b6c, argocd main, and argocd's tests/test-values-sso.yaml. The Keycloak OIDC discovery request from the argocd namespace 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-sso is 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

Merge request reports

Loading
Loading