Secret & Certificate Management
This document describes the certificate management concepts, supported TLS communication patterns, and recommended approaches for PAS-X MES systems. It is intended for system administrators, architects, and IT security teams responsible for configuring secure communication between MES and external systems.
Overview
PAS-X MES supports TLS-secured communication to protect data in transit when interacting with external systems such as databases, ERP systems, mail servers, and Level 2 systems.
In typical deployments:
-
MES primarily acts as a TLS client for outgoing connections, establishing trust via configured CA certificates.
-
Incoming connections from external clients or systems terminate at the Kubernetes Ingress Controller or OpenShift router, where TLS is handled centrally, isolating MES Services from direct certificate management.
-
On OpenShift, PAS-X Argo Workflows uses a passthrough Route. Argo Server terminates TLS.
Key considerations for certificate management in PAS-X MES include:
-
Understanding which components require TLS certificates and their respective roles.
-
Managing the lifecycle of certificates, including rotation, truststore updates, and potential service restarts.
-
Selecting appropriate trust models and certificate configuration scopes to balance operational complexity, security, and availability.
Certificate Types in PAS-X MES
PAS-X MES uses standard X.509 certificates for TLS communication. The main certificate types and their typical roles are:
-
Root Certificates
-
Trusted certificate authorities (CAs) that sign intermediate and/or leaf certificates.
-
Configured in the MES Service truststore to validate external systems.
-
A single root can often be used for multiple external systems.
-
-
Intermediate Certificates
-
Issued by a Root CA to delegate trust.
-
Completes the chain between Root and Server/Leaf certificates.
-
MES Services need to configure them only if external systems do not provide the full certificate chain.
-
-
Leaf / Server / Host / End-Entity Certificates
-
Certificates presented by external systems to prove their identity to MES Services during the TLS handshake (server authentication only).
-
MES Services validate these certificates using configured Root and Intermediate CAs.
-
MES does not generate or manage leaf certificates for incoming connections. The Ingress Controller or OpenShift router terminates TLS, except for PAS-X Argo Workflows passthrough Routes, where Argo Server terminates TLS.
-
API Definition
Certificate management in PAS-X MES is based on Kubernetes-native mechanisms and integrates seamlessly into customer-managed Kubernetes environments.
General
-
Certificates are provided by the customer as Kubernetes Secrets
Exception – Argo CD Repository/Registry Trust
When configuring trust for private Git repositories or OCI registries used by Argo CD, certificates cannot be provided via standard Kubernetes Secrets referenced by PAS-X MES.
Instead, the certificates must be configured directly within Argo CD (for example, via the Argo CD CLI or UI). Argo CD maintains its own trust configuration for repository access, which is independent of the MES Services' trust configuration.
For further details, see Argo CD – Trust Custom TLS Certificates.
-
Customers are responsible for the creation and lifecycle management of Kubernetes Secrets containing certificates, regardless of whether this is done manually, through internal automated processes, or via tooling (e.g., cert-manager)
-
PAS-X MES consumes certificates exclusively via Kubernetes Secrets; certificates are mounted into MES Components from these Secrets.
-
No proprietary certificate formats or management tools are required
Certificate Lifecycle and Updates
-
The process by which a MES component applies updated Secret content (e.g., during certificate rotation) depends on the underlying technology and characteristics of the component.
Most MES Services are Java-based and cannot reliably hot-reload certificates; in practice, a restart is required to apply updates.
To ensure that updated Secret content is effectively applied, the MES Operator monitors all Secrets configured for each MES Service and internally tracks their
resourceVersion.When the
resourceVersionof a relevant Secret changes, the MES Operator detects this update and restarts the affected MES Service using a Recreate strategy. This means the existing Pods are terminated first and then recreated, ensuring that the service starts with the updated Secret content.As a consequence, a downtime is expected during this restart process.
-
This approach ensures that updated certificates are consistently used at runtime.
-
The scope of the update depends on whether the certificate is configured globally (affecting all services) or service-specific (affecting only the configured service).
-
Details on which services communicate with which external systems, and whether they require a restart or can hot reload certificates, are provided in the next section Communication Partners.
Ingress and Route TLS Configuration
-
TLS Secret names can be configured for both Kubernetes Ingress and OpenShift Routes.
-
For Kubernetes Ingress, cert-manager integration can also be configured through Ingress annotations.
-
For OpenShift Routes, the customer is responsible for creating and renewing the referenced TLS Secrets, either through explicit cert-manager Certificate resources or another certificate management process. Route annotations do not trigger Ingress-based certificate issuance.
For certificate provisioning options on both platforms, see Cert-manager integration.