TLS Communication Patterns
PAS-X MES supports TLS-secured communication in different ways depending on the connection direction: incoming traffic to MES components or outgoing traffic from MES components to external systems.
Incoming Connections
Incoming connections originate outside the Kubernetes cluster (e.g., UI access, external API calls). For MES Service HTTPS endpoints, TLS terminates at the Kubernetes Ingress Controller or, on OpenShift, at the OpenShift router through an edge Route. MES Services receive traffic internally over plain HTTP.
TLS Configuration and Trust
-
TLS termination is performed by the customer-provided Ingress Controller or OpenShift router.
-
Certificates are referenced through Kubernetes Secrets in the Ingress or Route namespace. On Kubernetes, Ingress annotations can enable cert-manager integration. On OpenShift, edge Routes reference the Secret through
spec.tls.externalCertificate.name; certificate and private key data are not embedded in the Route. -
Each Kubernetes Secret must include a leaf/server certificate and its corresponding private key to enable TLS termination.
-
Intermediate certificates can optionally be included in the chain presented to clients.
-
Certificate lifecycle management for incoming connections is the responsibility of the Ingress setup; PAS-X MES does not manage, generate, or rotate these certificates. For OpenShift, provision and renew the referenced Secrets through explicit cert-manager Certificate resources or another certificate management process; Route annotations do not trigger Ingress certificate issuance.
-
The OpenShift router ServiceAccount requires permission to read the referenced Secret. The MES Operator manages the Role and RoleBinding for Instance / MES Service Routes; the respective Helm charts manage them for other edge endpoints. For details, see OpenShift edge Route certificates.
-
MES Services behind the Ingress Controller or edge Route receive traffic internally over plain HTTP.
-
Certificate updates at the Ingress level do not require restarts of MES components. Verify that the Ingress Controller or OpenShift router serves the renewed certificate; reload behavior depends on the TLS-terminating component.
|
On OpenShift, |
This approach for controller- or router-terminated TLS:
-
Centralizes certificate management.
-
Reduces operational complexity.
-
Isolates incoming TLS certificate management from MES runtime.
Typical Incoming TLS Connections
-
Web UI access by users
-
Integration endpoints exposed to external systems (e.g., ERP callbacks)
Practical Setup
The figure below illustrates the architecture and separation of responsibilities for Kubernetes Ingress: TLS termination and certificate management are handled by the customer-provided Ingress Controller, while PAS-X MES services operate behind the Ingress without direct involvement in TLS handling.
Certificate Configuration Scope
TLS certificates for incoming connections are managed by the customer-provided Ingress Controller or OpenShift router. MES supports two approaches for configuring these certificates:
Global configuration (recommended)
-
TLS settings are defined in the global values file and applied to charts that consume the common ingress configuration.
-
These applications can share certificate references or, for Kubernetes Ingress, cert-manager issuers.
-
For Ingress- or Route-terminated TLS, updates to the certificate affect the Ingress Controller or OpenShift router; no restart of the MES Services receiving HTTP is required.
-
For
pasx-argo-workflowspassthrough TLS, restart the Argo Server pods to apply certificate updates.
Recommended when:
-
Centralized certificate management is sufficient.
-
All incoming connections can use the same trust domain.
-
Simplicity and operational isolation from MES runtime are desired.
Application-specific configuration
-
TLS certificates are configured individually per application via their respective Helm chart values.
-
Each application can have distinct TLS settings, e.g., different cert-manager issuers for Kubernetes Ingress or different Kubernetes Secret references for Ingress and Routes.
-
Updates are localized to the application’s certificate and the component terminating its TLS connection.
Recommended when:
-
Different applications require distinct certificates or trust domains.
-
Fine-grained control over TLS settings per application is needed.
Outgoing Connections
Outgoing connections originate from MES components within the Kubernetes cluster toward external systems (e.g., databases, ERP, LDAP, mail). MES components act as TLS clients.
TLS Configuration and Trust
-
Root CA certificates must be configured in the MES Service truststore to validate external server certificates during the TLS handshake.
"Server" here refers to the external system the MES Service connects to, not MES itself. -
External systems are expected to present a valid CA certificate chain, including all required Intermediate CA certificates.
-
Intermediate CA certificates are required only if the external system does not provide the full chain.
-
Most MES Services are Java-based and cannot hot reload truststores; updates to certificates will trigger a service restart.
-
It’s strongly recommended that all external systems provide a complete CA certificate chain during TLS handshake, including all Intermediate CA certificates.
-
If the external system provides a full chain:
-
Only the Root CA certificate needs to be configured in MES Service truststores.
-
Updates to Intermediate CA certificates do not require MES Service restarts.
-
This is considered common good practice and should be the standard configuration.
-
-
If the external system does not provide a full chain:
-
Intermediate CA certificates must be added to the MES Service truststore.
-
MES Services consuming these Intermediate CA certificates will need to be restarted upon updates.
-
This should be considered an exceptional scenario, only used when external systems cannot provide the full chain.
-
-
Encourage external systems to present the complete certificate chain during TLS handshake.
-
Configure only the Root CA certificate in MES Service truststores whenever possible.
-
Limit the number of MES Service restarts by relying on external system providing full chains.
Typical Outgoing TLS Connections
-
Database connections
-
ERP system integrations
-
LDAP authentication
-
Mail delivery
-
Printing Systems (e.g., CUPS)
-
AUDA Partner Systems
-
Scale devices
Practical Setup
The following figure illustrates the practical setup for outgoing TLS connections and clarifies the responsibilities:
-
PAS-X MES services act as TLS clients and validate server certificates using configured CA truststores.
-
External systems are responsible for presenting valid leaf certificates and a complete certificate chain during the TLS handshake.
Certificate Configuration Scope
Certificates in PAS-X MES can be configured at different scopes. The selected configuration scope directly affects trust isolation, operational effort, and the impact of certificate updates on MES Service restarts.
Common Certificate Configuration
Description:
-
The same set of certificates is configured and injected into all MES Services that rely on TLS communication.
-
Any update to the certificate configuration triggers a restart of all MES Services consuming that configuration.
Advantages:
-
Simple and consistent trust configuration across the entire platform
-
Centralized certificate lifecycle management
Trade-offs:
-
Higher operational impact during certificate updates, as all affected MES Services are restarted simultaneously
Recommended when:
-
A single trust domain is sufficient for all external systems.
-
Operational simplicity is prioritized.
-
Certificate updates can be planned and executed during maintenance windows or periods of low or no system usage.
Use Case Specific Certificate Configuration
Description:
-
Certificates are configured individually for selected use cases (e.g., database, mail server, erp system, …)
-
Each MES Service consumes only the certificates required for its specific external communication partners.
-
Only MES Services whose certificate configuration changes are restarted.
Advantages:
-
Reduced operational impact during certificate rotation (only affected services are restarted)
-
Fine-grained control over trust relationships
-
Improved isolation between different trust domains
Trade-offs:
-
Higher configuration effort compared to common configuration
-
Increased effort for certificate lifecycle management
Recommended when:
-
Multiple trust domains must be isolated for security or compliance reasons.
-
Fine-grained restart behavior is required, allowing MES Services to be restarted individually based on their specific functionality and external dependencies.
Trust Models for External Systems
The following sections describe common trust models for managing certificates across multiple external systems and environments. The selected trust model directly affects operational complexity, security boundaries, and maintenance effort.
Single Root CA for All Systems
This approach uses a single Root CA certificate to establish trust for all external systems. It is typically combined with a Common Certificate Configuration scope, as all MES Services rely on the same trust anchor.
-
Root only
-
Description: A single Root CA certificate is configured in all MES Services.
-
Advantages:
-
Minimal operational impact during certificate rotation
-
No restarts required when intermediate certificates are rotated
-
Simple configuration and maintenance
-
-
Usage: Preferred solution when all external systems reliably provide a complete certificate chain during TLS handshake.
-
-
Root + Intermediate
-
Description: Root CA plus all required intermediate certificates are configured.
-
Advantages:
-
Works even if external systems do not provide a complete certificate chain during TLS handshake
-
-
Trade-offs:
-
Requires MES Services restart when intermediate certificates are rotated
-
Higher configuration and maintenance effort
-
-
Usage: Only required if external systems do not send the full certificate chain during TLS handshake
-
Multiple Root CAs for Different Communication Partners
This approach uses separate Root CA certificates for different systems, domains, or communication partners to isolate trust domains. It is typically combined with a Use Case Specific Certificate Configuration scope to preserve trust isolation and limit the operational impact of certificate updates.
-
Root only
-
Description: Each domain or communication partner has its own Root CA configured.
-
Advantages:
-
Minimizes downtime during intermediate certificate rotation
-
-
Usage: Preferred solution if separation of trust domains is required.
-
-
Root + Intermediate
-
Description: System-specific Root and Intermediate certificates configured.
-
Trade-offs:
-
Requires MES Services restart when intermediate certificates are rotated
-
Higher configuration and maintenance effort
-
-
Usage: Only required if external systems do not provide a complete certificate chain during TLS handshake
-