Trust internal unkin.net CA for ArgoCD OIDC egress #303
Reference in New Issue
Block a user
Delete Branch "benvin/argocd-oidc-ca"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
ArgoCD SSO fails with
failed to query provider "https://identity.unkin.net/application/o/argocd/": tls: failed to verify certificate: x509: certificate signed by unknown authority. argocd-server does OIDC discovery to identity.unkin.net over TLS served by the internalunkin.netCA. Unlike argocd-repo-server (which mountsvault-ca-cert), argocd-server has no internal CA in its trust store and norootCAinoidc.config, so it never trusted the issuer.Change
oidc.config: addrootCA(inline PEM) = the internalunkin.netroot CA. argocd-server hot-reloads argocd-cm, so no rollout restart is required.Why the root, not the cluster vault-ca-cert bundle
The
unkin.net Intermediate Authoritywas recently re-keyed (same serial, new key: bundle SHA1C4:48:78…vs servedF1:DD:34…). The clustervault-ca-certbundle still carries the stale intermediate and failsopenssl verifyagainst the currently-served identity cert. identity.unkin.net presents its current intermediate in the handshake, so anchoring on the long-lived, stableunkin.netroot (valid to 2034, matches the host trust anchor) is both correct and rotation-proof. Verified:openssl verify -CAfile <root> -untrusted <served-intermediate> <served-leaf>= OK; the embedded PEM round-trips through the YAML patch and validates the served leaf.Verify after merge
argocd-server picks up argocd-cm live; retest SSO login. (Separately, the cluster
vault-ca-certreflected secret carries a stale intermediate and should be refreshed, but that is out of scope here.)https://claude.ai/code/session_015ur3i7D2azsMAWTSVABApv