-
Notifications
You must be signed in to change notification settings - Fork 61
Description
Describe the bug
The Principal and Agent both require the argocd-agent-ca secret in order to verify the TLS certificates being used by the mTLS. The default in the documentation is for this to be a TLS secret with the CA in tls.crt and the key in tls.key however the reality is that users with their own CA will not want to provide a key.
The Agent works fine with an Opaque secret as follows:
apiVersion: v1
data:
ca.crt: XXXXX
kind: Secret
metadata:
name: argocd-agent-ca
namespace: argocd-agent
type: Opaque
However using this on the Principal results in the Agent pod failing with the following repeating message:
time="2026-02-04T18:25:45Z" level=info msg="Outgoing unary call to /authapi.Authentication/Authenticate" module=Connector
time="2026-02-04T18:25:45Z" level=warning msg="Auth failure: rpc error: code = Unavailable desc = connection error: desc = \"error reading server preface: remote error: tls: unknown certificate authority\" (retrying in 1s)"
time="2026-02-04T18:25:46Z" level=info msg="Outgoing unary call to /authapi.Authentication/Authenticate" module=Connector
time="2026-02-04T18:25:46Z" level=warning msg="Auth failure: rpc error: code = Unavailable desc = connection error: desc = \"error reading server preface: remote error: tls: unknown certificate authority\" (retrying in 1.2s)"
Steps to reproduce the behaviour
- Use an opaque secret for argocd-agent-ca with the key ca.crt
Expected behavior
The agent should be able to successfully authenticate with the principal
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working