Access Private Git Repositories and OCI Registries for Argo CD
To fulfill the GitOps requirements of PAS-X MES, Argo CD must retrieve configuration from Git repositories and pull Helm charts from OCI-compliant registries.
When connecting to private external sources, two independent aspects must be configured correctly:
-
Authentication: Argo CD must be able to prove its identity to the repository or registry.
-
Server Trust: Argo CD must trust the TLS certificates presented by the repository or registry.
Both must be properly configured (if required) before deploying PAS-X MES.
Authentication vs. Server Trust
Authentication
Authentication defines how Argo CD authenticates against a Git repository or OCI registry. The required method depends on the server configuration and security policies.
Common authentication mechanisms include:
-
Username and password or personal access token (HTTPS)
-
SSH private key (SSH-based Git access)
-
GitHub App credentials
-
Client certificate and private key (mutual TLS / mTLS)
-
Only required if the Git repository or OCI registry enforces mutual TLS (mTLS). In this case, the server requests a client certificate during the TLS handshake and rejects connections if none is provided.
-
For secure and maintainable environments, authentication credentials should be configured using one of the following approaches:
-
Declarative configuration via Kubernetes Secrets
-
Interactive configuration using the Argo CD CLI
|
Authentication must be configured before deploying PAS-X MES, regardless of the chosen method. For OCI registries, authentication can only be configured declaratively (via Kubernetes Secrets) or through the Argo CD CLI. The Argo CD Web UI does not support OCI repository configuration. |
Refer to Authentication for detailed configuration instructions.
Server Trust
Server trust configuration is required if the Git repository or OCI registry uses:
-
A self-signed certificate
-
A certificate issued by a custom or internal Certificate Authority (CA)
In such cases, the corresponding CA certificate must be explicitly added to Argo CD’s trust store.
|
Client certificates used for mTLS provide authentication, not server trust. If the server presents a self-signed certificate or one issued by a private CA, the CA certificate must still be configured separately to establish trust. |
Refer to Trusting Custom TLS Certificates for instructions on configuring server trust for private Git repositories and OCI registries.