Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to verify certificate: x509: certificate is valid for localhost, dexserver, not argocd-dex-server.argocd.svc.cluster.local #1614

Open
jbpin opened this issue Dec 3, 2024 · 0 comments

Comments

@jbpin
Copy link

jbpin commented Dec 3, 2024

Describe the bug
When Enabling dex for OIDC, ArgoCD server can't talk to dex server because of the certificate is not valid.

 time="2024-12-03T16:41:29Z" level=warning msg="Failed to verify token: failed to verify token: token verification failed for all audiences: error for aud \"argo-cd\": Failed to query provider \"https://argocd.domain.com/api/dex\": Get \"https://argocd-dex-server.argocd.svc.cluster.local:5556/api/dex/.well-known/openid-configuration\": tls: failed to verify certificate: x509: certificate is valid for localhost, dexserver, not argocd-dex-server.argocd.svc.cluster.local, error for aud \"argo-cd-cli\": Failed to query provider \"https://argocd.domain.com/api/dex\": Get \"https://argocd-dex-server.argocd.svc.cluster.local:5556/api/dex/.well-known/openid-configuration\": tls: failed to verify certificate: x509: certificate is valid for localhost, dexserver, not argocd-dex-server.argocd.svc.cluster.local"

To Reproduce
Install dex with the operator using oidc configuration
add extraArgs on server --dex-server-plaintext to view the error

Expected behavior
Expect argocd server to be able to talk to dex server deploy by the operator. Also the operator seems to force https in code.

func getDexServerAddress(cr *argoproj.ArgoCD) string {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants