Skip to content

The Principal does not work with an opaque secret for argocd-agent-caΒ #740

@gnunn1

Description

@gnunn1

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

  1. 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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions