Secrets required for PAS-X Deployment
This chapter outlines the necessary Kubernetes Secrets required for installing the PAS-X MES system.
Image Pull Secrets
If PAS-X MES container images are hosted in a private container registry (e.g., JFrog Artifactory, ghcr.io, Harbor), an Image Pull Secret must be created in every namespace where container images will be pulled and deployed.
Image Pull Secrets enable Kubernetes to authenticate with the registry and pull the required container images during deployment.
Requirements
| Requirement | Description |
|---|---|
Namespace |
The Image Pull Secret must be present in each namespace where PAS-X containers are deployed. |
Secret Type |
The Image Pull Secret must be of type |
Secret Reference |
The Image Pull Secret must be referenced later in the configuration files so it is passed correctly to Kubernetes workloads. |
Mandatory |
Yes. Without it, Kubernetes will not be able to pull the required images. |
kubectl create secret docker-registry pasx-registry-secret \
--docker-server=https://<registry-url> \
--docker-username=<username> \
--docker-password=<password> \
--docker-email=<email> \
--namespace=<namespace>
For more information about creating and using Image Pull Secrets, see the official Kubernetes documentation: Pull an Image from a Private Registry.
Ensure that the secret name used here matches the value set in your values.yaml file.
|
| If no valid image pull secret is available, Kubernetes will not be able to pull images from private container registries, and your deployment will fail. |
TLS Certificate Secrets
This section provides guidance on managing TLS certificates in PAS-X MES, covering both trust and identity material, and how to provide them via Kubernetes Secrets.
Overview
PAS-X MES uses Kubernetes Secret resources to provide certificate material for TLS-secured communication with external systems such as databases, ERP systems, LDAP servers, mail servers, and Argo CD.
For detailed guidelines on certificate formats, trust domains, and communication patterns, refer to:
-
Certificates: Configuration scope, secret structure, and operational aspects.
-
Kubernetes TLS Secret Guidelines: Detailed instructions for structuring certificate secrets.
-
Secret & Certificate Management: Technical concepts, trust models, and communication patterns.
Trust Certificates (Outgoing TLS)
Trust certificates are used to validate external servers when PAS-X MES initiates TLS connections to systems such as databases, ERP servers, mail servers, or LDAP servers.
| Requirement | Description |
|---|---|
Secret Type |
Recommended: |
Secret Keys |
|
Usage |
Configured in PAS-X MES values for each external system in the trust domain. The Secret may be referenced by multiple services communicating with the same endpoints. |
Mandatory |
Only required if the external system enforces TLS. |
Secret Namespace |
Unless specified otherwise, this is the namespace where PAS-X MES is installed. |
Secret Reference |
The Secret’s name must be referenced in the configuration section for each external system. For detailed guidance, see Certificates - Trust Domains for External Communication for further info. |
Identity Certificate (Incoming TLS)
Identity certificates are used when PAS-X MES must present a TLS identity to external clients or systems, such as HTTPS access via a Kubernetes Ingress or OpenShift Route, or PAS-X2X messages via RabbitMQ.
| Requirement | Description |
|---|---|
Secret Type |
Recommended: |
Secret Keys |
|
Usage |
Used by PAS‑X MES components that need to present a TLS identity to external clients, such as Ingress resources or services performing client-authenticated TLS. |
Mandatory |
Only necessary for applications that expose TLS endpoints. |
Secret Namespace |
Unless specified otherwise, this is the namespace where PAS-X MES is installed. |
Secret Reference |
The Secret’s name must be referenced in the configuration of application that requires the TLS identity. For detailed guidance on secret usage, trust domains, and certificate configuration, see Certificates - Server Identity For Incoming Communication. |
|
Trust material and identity material differ in their purpose, secret type, and key requirements. Ensure the correct type of Secret is created for the intended use case. |
Credential Rotation
TLS certificates used by PAS-X MES are not static and may require rotation due to expiration, revocation, or security updates.
For a general concept of certificate lifecycle management, refer to:
-
Certificate Lifecycle and Updates – explains how PAS‑X MES Services pick up renewed certificates and handle updates.
-
Communication Partners – describes rotation considerations for each external system that PAS-X MES communicates with.
External IdP Client Secret
If external OpenID Connect (OIDC) authentication is enabled, create a Kubernetes Secret containing the client secrets for the external identity provider (IdP). Create the Secret in the same namespace where PAS-X MES is installed.
Requirements
| Requirement | Description |
|---|---|
Namespace |
The External IdP Client Secret must be created in the same namespace where PAS-X MES is installed. |
Secret Keys |
The Secret must contain the following keys exactly as shown:
The first key contains the secret of the external OIDC login client. The second key contains the secret of the external OIDC signature client. |
Secret Reference |
Set the Secret name in the Instance configuration under |
Mandatory |
Yes, when external OIDC is enabled. The Secret is not required for the default internal OIDC configuration. |
apiVersion: v1
kind: Secret
metadata:
name: <your-external-idp-client-secret-name>
namespace: <namespace>
type: Opaque
stringData:
login.client.secret: <external-login-client-secret>
signature.client.secret: <external-signature-client-secret>
|
SmartInstall validates the Secret before applying the Instance configuration and injects the values into the Auth Server without storing them in the Instance Custom Resource or ConfigMap.
Database Secret
To enable secure database access for PAS-X application services, a Kubernetes Secret containing the required credentials must be created in the same namespace where PAS-X MES is installed. This secret stores the database credentials needed by the application.
Requirements
| Requirement | Description |
|---|---|
Namespace |
The database Secret must be created in the same namespace where PAS-X MES is installed. |
Secret Keys |
The Secret must contain the keys |
Secret Reference |
The name of the Secret must be set in the Instance configuration file under |
Mandatory |
Yes. The database Secret is mandatory for the MES application services to connect to the database. |
apiVersion: v1
kind: Secret
metadata:
name: <your-database-secret-name>
namespace: <namespace>
type: Opaque
stringData:
username: <your-username>
password: <your-password>
Both username and password must be present in the secret exactly as shown.
Missing or incorrectly named keys will result in a failed database connection at runtime.
|
ERP System Secret
In order to enable secure ERP system access for PAS-X application services, a Kubernetes Secret containing the required credentials must be created in the same namespace where PAS-X MES is installed. This secret stores the ERP system credentials needed by the application.
Requirements
| Requirement | Description |
|---|---|
Namespace |
The ERP System Secret must be created in the same namespace where PAS-X MES is installed. |
Secret Keys |
The required keys depend on the deployed MES services. See WEI Credentials, WEI RFC Credentials and ERP Simulator Credentials below for the supported keys. |
Secret Reference |
The name of the Secret must be set in the Instance configuration file under |
Mandatory |
No. This Secret is only needed if ERP System integration is enabled and authentication is required. |
WEI Credentials
The wei service supports three variants for providing the authentication credentials. The variants can be combined within the same Secret.
Option 1: Global WEI XML Auth Credentials
Use these keys to configure a single set of inbound and outbound credentials that applies to all partner system communications handled by WEI:
-
pasx.mes.erp.weixml.auth.inbound.username -
pasx.mes.erp.weixml.auth.inbound.password -
pasx.mes.erp.weixml.auth.outbound.username -
pasx.mes.erp.weixml.auth.outbound.password
Option 2: Default Partner System Credentials
Use these keys to provide credentials for the default partner system defined in the WEI service configuration:
-
pasx.mes.erp.partnerconfiguration.defaultPartnerSystem.inboundUsername -
pasx.mes.erp.partnerconfiguration.defaultPartnerSystem.inboundPassword -
pasx.mes.erp.partnerconfiguration.defaultPartnerSystem.outboundUsername -
pasx.mes.erp.partnerconfiguration.defaultPartnerSystem.outboundPassword
Option 3: Named Partner System Credentials
Use this pattern to provide credentials for one or more named partner systems. Repeat the four keys for each partner system, replacing <PARTNER_SYSTEM_NAME> with the name of the corresponding partner system configured for the wei service:
-
pasx.mes.erp.partnerconfiguration.partnerSystems.<PARTNER_SYSTEM_NAME>.inboundUsername -
pasx.mes.erp.partnerconfiguration.partnerSystems.<PARTNER_SYSTEM_NAME>.inboundPassword -
pasx.mes.erp.partnerconfiguration.partnerSystems.<PARTNER_SYSTEM_NAME>.outboundUsername -
pasx.mes.erp.partnerconfiguration.partnerSystems.<PARTNER_SYSTEM_NAME>.outboundPassword
For details on the partner system configuration, see the WEI Values Schema.
|
The three options can be combined within the same Secret. When more than one option provides credentials for the same partner system, PAS-X MES applies the following precedence (highest priority first):
|
WEI RFC Credentials
If the weirfc service is deployed and the Java Connector (JCo) authentication is enabled, include the following keys:
-
jco.client.user -
jco.client.passwd
ERP Simulator Credentials
If the erpsimulator service is deployed and requires authentication, include the following keys:
-
pasx.mes.erpsimulator.username -
pasx.mes.erpsimulator.password -
pasx.mes.erpsimulator.send.username -
pasx.mes.erpsimulator.send.password
apiVersion: v1
kind: Secret
metadata:
name: <your-erp-system-secret-name>
namespace: <namespace>
type: Opaque
stringData:
# --- WEI service: Option 1 — global WEI XML auth credentials (fallback) ---
pasx.mes.erp.weixml.auth.inbound.username: <inbound-username>
pasx.mes.erp.weixml.auth.inbound.password: <inbound-password>
pasx.mes.erp.weixml.auth.outbound.username: <outbound-username>
pasx.mes.erp.weixml.auth.outbound.password: <outbound-password>
# --- WEI service: Option 2 — default partner system credentials ---
pasx.mes.erp.partnerconfiguration.defaultPartnerSystem.inboundUsername: <default-inbound-username>
pasx.mes.erp.partnerconfiguration.defaultPartnerSystem.inboundPassword: <default-inbound-password>
pasx.mes.erp.partnerconfiguration.defaultPartnerSystem.outboundUsername: <default-outbound-username>
pasx.mes.erp.partnerconfiguration.defaultPartnerSystem.outboundPassword: <default-outbound-password>
# --- WEI service: Option 3 — named partner system credentials (repeat per partner system) ---
pasx.mes.erp.partnerconfiguration.partnerSystems.ERP1.inboundUsername: <erp1-inbound-username>
pasx.mes.erp.partnerconfiguration.partnerSystems.ERP1.inboundPassword: <erp1-inbound-password>
pasx.mes.erp.partnerconfiguration.partnerSystems.ERP1.outboundUsername: <erp1-outbound-username>
pasx.mes.erp.partnerconfiguration.partnerSystems.ERP1.outboundPassword: <erp1-outbound-password>
# --- WEI RFC service: JCo credentials ---
jco.client.user: <jco-username>
jco.client.passwd: <jco-password>
# --- ERP Simulator service ---
pasx.mes.erpsimulator.username: <simulator-username>
pasx.mes.erpsimulator.password: <simulator-password>
pasx.mes.erpsimulator.send.username: <simulator-send-username>
pasx.mes.erpsimulator.send.password: <simulator-send-password>
| Define only the keys required by the installed MES services. Keys for MES services that are not deployed are ignored at runtime. |
Mail Server Secret
In order for the PAS-X MES services to send notifications and alerts, they need access to a mail server. To securely store the mail server credentials, a Kubernetes Secret must be created in the same namespace where PAS-X MES is installed. This secret contains the necessary authentication details for connecting to the mail server.
Requirements
| Requirement | Description |
|---|---|
Namespace |
The mail server Secret must be created in the same namespace where PAS-X MES is installed. |
Secret Keys |
The Secret must contain the keys |
Secret Reference |
The name of the Secret must be set in the Instance configuration file under |
Mandatory |
No. This secret is only needed if mail server integration is enabled and authentication is required. |
apiVersion: v1
kind: Secret
metadata:
name: <your-mail-server-secret-name>
namespace: <namespace>
type: Opaque
stringData:
username: <your-username>
password: <your-password>
Both username and password must be present in the secret exactly as shown.
Missing or incorrectly named keys will result in a failed mail server connection at runtime.
|
LDAP Secret
In order to authenticate users in PAS-X MES via LDAP a connection needs to be configured. To securely store the LDAP credentials, a Kubernetes Secret must be created in the same namespace where PAS-X MES is installed. This secret contains the necessary authentication details for connecting to the LDAP server.
Requirements
| Requirement | Description |
|---|---|
Namespace |
The LDAP Secret must be created in the same namespace where PAS-X MES is installed. |
Secret Keys |
The Secret must contain the keys |
Secret Reference |
The name of the Secret must be set in the Instance configuration file under |
Mandatory |
No. This secret is only needed if LDAP server integration is desired for PAS-X MES. |
apiVersion: v1
kind: Secret
metadata:
name: <your-ldap-server-secret-name>
namespace: <namespace>
type: Opaque
stringData:
ldap.administrator.username: <your-username>
ldap.administrator.password: <your-password>
|
RabbitMQ Secret
RabbitMQ is used as the message broker for PAS-X MES. A Kubernetes Secret containing the required credentials must be created in the same namespace where PAS-X MES is installed.
This secret stores the RabbitMQ admin credentials used by the PAS-X MES Services to connect to the RabbitMQ cluster. The credentials can also be used to log in to the RabbitMQ Management UI.
Requirements
| Requirement | Description |
|---|---|
Namespace |
The RabbitMQ Secret must be created in the same namespace where PAS-X MES is installed. |
Secret Keys |
The Secret must contain the keys |
Secret Reference |
The name of the Secret must be set in the Instance configuration file under |
Mandatory |
Yes. The RabbitMQ Secret is mandatory for the RabbitMQ Cluster to initialize with the correct credentials, allowing applications to connect to RabbitMQ. |
apiVersion: v1
kind: Secret
metadata:
name: <your-rabbitmq-secret-name>
namespace: <namespace>
type: Opaque
stringData:
default_user.conf: |
default_user = <your-username>
default_pass = <your-password>
username: <your-username>
password: <your-password>
The secret must contain exactly the keys username, password, and default_user.conf. Missing, additional, or incorrectly named keys will cause RabbitMQ connections to fail at runtime.
|
Credential Rotation
RabbitMQ stores user credentials internally in its Mnesia database (persistent storage) during cluster bootstrap. This means that once a user is created, RabbitMQ relies on the credentials in the Mnesia database and ignores changes in the Kubernetes Secret. If the Secret content changes, RabbitMQ will continue using the old credentials stored internally.
Changes to RabbitMQ credentials are therefore not automatically applied. To rotate passwords safely:
-
Either uninstall RabbitMQ and delete its PersistentVolumes to remove old credentials.
-
Or manually add a new user with
rabbitmqctlon all nodes and grant the necessary permissions.
Avoid rotating RabbitMQ credentials unless strictly necessary, as mismatches between the Kubernetes Secret and RabbitMQ internal credentials can break connectivity.
Auda Secret
In order to enable secure authentication for Auda, a Kubernetes Secret containing the required credentials must be created in the same namespace where PAS-X MES is installed.
This secret stores both the partner system and the partner simulator credentials consumed by the application.
Requirements
| Requirement | Description |
|---|---|
Namespace |
The Auda Secret must be created in the same namespace where PAS-X MES is installed. |
Secret Keys |
|
Secret Reference |
The name of the Secret must be set in the Instance configuration file under |
Mandatory |
No. This Secret is only needed if the authentication adapter integration is enabled and authentication is required. |
|
Auda can have multiple partner systems configured, each requiring its own set of credentials. It’s crucial to respect the number
|
apiVersion: v1
kind: Secret
metadata:
name: <your-auda-secret-name>
namespace: <namespace>
type: Opaque
stringData:
pasx.mes.auda.partnerSystems.0.userName: <auda-partner-0-username>
pasx.mes.auda.partnerSystems.0.password: <auda-partner-0-password>
pasx.mes.auda.partnerSystems.1.userName: <auda-partner-1-username>
pasx.mes.auda.partnerSystems.1.password: <auda-partner-1-password>
pasx.mes.auda.partnersimulator.pasxSystem.userName: <auda-simulator-username>
pasx.mes.auda.partnersimulator.pasxSystem.password: <auda-simulator-password>
Argo CD Secrets
Deployment Account Token Secret
To allow Argo Workflows to interact with Argo CD, a Kubernetes Secret containing a valid Argo CD API token is required. This Secret enables authenticated communication with the Argo CD API.
Refer to Deployment Account Token Secret for detailed instructions on creating and configuring this Secret.
Access to Private Git Repositories and OCI Registries
If private Git repositories or OCI registries are used and require authentication, corresponding Kubernetes Secrets must be created to store the required credentials. These Secrets enable Argo CD to authenticate against the repositories and registries in order to retrieve configuration files and Helm charts.
Refer to Access Private Git Repositories and OCI Registries for detailed instructions on configuring authentication and server trust.