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 kubernetes.io/dockerconfigjson.

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.

Example: kubectl command to create an Image Pull Secret with Docker registry credentials
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.

Credential Rotation

For Image Pull Secrets, no action is required if the secret content changes. Pods automatically use the updated secret on the next restart or when a new image pull is triggered.

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:

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: Opaque. Stores PEM-encoded CA certificates.

Secret Keys

ca.crt: PEM-encoded root and intermediate CA certificates (concatenated if needed).

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: kubernetes.io/tls (can also use Opaque).

Secret Keys

tls.crt: PEM-encoded server certificate (leaf + optional chain)

tls.key: PEM-encoded private key

ca.crt: Optional CA certificate if required by clients

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:

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:

  • login.client.secret

  • signature.client.secret

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 instance.authServer.secretName.

Mandatory

Yes, when external OIDC is enabled. The Secret is not required for the default internal OIDC configuration.

Example: YAML manifest for the External IdP Client Secret
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>
  • Both Secret keys must be present and must contain non-empty values. The client secret values must match the client registrations configured in the external IdP.

  • The credentials declared in the Secret will be mapped to SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_OIDC_LOGIN_CLIENT_CLIENT_SECRET and SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_OIDC_SIGNATURE_CLIENT_CLIENT_SECRET environment variables in the Auth Server deployment.

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.

Credential Rotation

If the content of the External IdP Client Secret changes, SmartInstall restarts the Auth Server deployment to apply the new client secrets.

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 username and password. These keys are required and must be named exactly as shown.

Secret Reference

The name of the Secret must be set in the Instance configuration file under instance.database.secretName.

Mandatory

Yes. The database Secret is mandatory for the MES application services to connect to the database.

Example: YAML manifest for the Database Credentials Secret
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.

Credential Rotation

If the content of the Database Secret changes, PAS-X MES automatically restarts the relevant MES Service(s) to apply the new credentials.

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 instance.erpSystem.secretName.

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):

  1. Named partner system credentials (pasx.mes.erp.partnerconfiguration.partnerSystems.<PARTNER_SYSTEM_NAME>.*) — if configured for that partner system.

  2. Default partner system credentials (pasx.mes.erp.partnerconfiguration.defaultPartnerSystem.*) — applied to the default partner system.

  3. Global WEI XML auth credentials (pasx.mes.erp.weixml.auth.*) — used as a fallback when neither of the above is configured.

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

Example: YAML manifest for the ERP System Credentials Secret
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.

Credential Rotation

If the content of the ERP System Secret changes, PAS-X MES automatically restarts the affected MES Service(s) to apply the new credentials.

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 username and password. These keys are required and must be named exactly as shown.

Secret Reference

The name of the Secret must be set in the Instance configuration file under instance.mailServer.secretName.

Mandatory

No. This secret is only needed if mail server integration is enabled and authentication is required.

Example: YAML manifest for the Mail Server Credentials Secret
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.

Credential Rotation

If the content of the Mail Server Secret changes, PAS-X MES automatically restarts the affected MES Service(s) to apply the new credentials.

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 ldap.administrator.username and ldap.administrator.password. These keys are required and must be named exactly as shown.

Secret Reference

The name of the Secret must be set in the Instance configuration file under instance.ldap.secretName.

Mandatory

No. This secret is only needed if LDAP server integration is desired for PAS-X MES.

Example: YAML manifest for the LDAP Server Credentials Secret
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>
  • Both ldap.administrator.username and ldap.administrator.password must be present in the secret exactly as shown. Missing or incorrectly named keys will result in a failed LDAP server connection at runtime.

  • The value of ldap.administrator.password must be provided in an encrypted form, not in plain text. PAS-X MES uses a proprietary password-encryption scheme.
    Please contact the Körber Pharma Software support team to obtain the encrypted password value before creating the Secret.

Credential Rotation

If the content of the LDAP Server Secret changes, PAS-X MES automatically restarts the affected MES Service(s) to apply the new credentials.

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 username, password and default_user.conf. These keys are required and must be named exactly as shown.

Secret Reference

The name of the Secret must be set in the Instance configuration file under instance.rabbitmq.credentialsSecretName and RabbitMQ Cluster configuration file under rabbitmq-cluster.auth.credentials.secretName.

Mandatory

Yes. The RabbitMQ Secret is mandatory for the RabbitMQ Cluster to initialize with the correct credentials, allowing applications to connect to RabbitMQ.

Example: YAML manifest for the RabbitMQ Credentials Secret
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 rabbitmqctl on 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

  • If the auda service is deployed and requires authentication, include the following keys: pasx.mes.auda.partnerSystems.<n>.userName and pasx.mes.auda.partnerSystems.<n>.password, where <n> is a unique number, associated to a given partner system. These keys are required and must be named exactly as shown.

  • If the audaPartnerSimulator service is deployed and requires authentication, include the following keys: pasx.mes.auda.partnersimulator.pasxSystem.userName and pasx.mes.auda.partnersimulator.pasxSystem.password.

Secret Reference

The name of the Secret must be set in the Instance configuration file under instance.auda.secretName.

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 <n> in the key names to ensure that each partner system’s credentials are correctly identified and used by the application:

  • <n> must start from 0 and increment by 1 for each additional partner system (it must be a continuous sequence).

Example: YAML manifest for the Auda Credentials Secret
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>

Credential Rotation

If the content of the Auda Secret changes, PAS-X MES automatically restarts the affected MES Service(s) to apply the new credentials.

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.