Adding Secrets for AS4 Microservice

Various password credentials are used by the system to connect to various external components. You must create Kubernetes Secrets for each set of password credentials and provide the secret names in the respective configuration fields in values.yaml file.

Before you begin

You can create Secrets either using the command line or the Platform Catalog UI using the Secret kind template.

Optionally, you can also encrypt your passwords before secret creation. For more information, see Encrypting Passwords.

About this task

You can create Secrets for the following password credentials used by the application:
  1. IBM MQ server credentials - User Name - Password
  2. Database credentials which include - User Name - Password
  3. WXS credentials - User Name - Password

To create Secrets using the command line, follow the steps below:

Procedure

Run the following Kubernetes command to create the Secret.
Kubectl apply - f [template file]
Note: Download the sample Secret template here: secret_as4.zip.

Alternatively, you can also create Secrets using the Platform Catalog UI by copying and pasting the snippets from the sample application Secrets template.

After Secrets are created, you need to specify the Secret names against the respective configuration fields in the values.yaml file or Platform Catalog UI under the setup.cfg section as:
  • mqSecret
  • dbSecret
  • wxsSecret

Results

After successful installation of the Helm charts, the system derives all the required password credentials from the created Kubernetes Secrets.