Creating a secret
A secret is used to carry sensitive information when creating an OMEnvironment through Sterling™ Order Management System Operator.
Procedure
-
Configure the values as illustrated in the following
<sample_secret_file>.yaml file.
apiVersion: v1 kind: Secret metadata: name: '<Release-name>-oms-secret' type: Opaque stringData: consoleAdminPassword: '<liberty console admin password>' consoleNonAdminPassword: '<liberty console non admin password>' dbPassword: '<password for database user>' trustStorePassword: '<password for custom TrustStore>' keyStorePassword: '<password for custom KeyStore>' # Set the following parameter only if you are integrating Sterling Order Management System Software with Sterling Intelligent Promising. # ivSecret: DEFAULT - If you are deploying Order Service with Sterling Order Management System Software, add the
following parameters in the <sample_secret_file>.yaml file.
es_username: '<username for elasticsearch>' es_password: '<password for elasticsearch>' cassandra_username: '<username for cassandra>' cassandra_password: '<password for cassandra>'Note: If you want to configure JWT authentication independently in your Sterling Order Management System Software without using Sterling Order Management System Software integration provided by the Operator, you must add the value of thejwt_<lowercase of jwt_issuer>_public_keyproperty in Sterling Order Management System Software secret.Starting from version 1.4.0, the
jwt_oms_public_keyis changed tojwt_<lowercase of jwt_issuer>_public_key. For example, if you specifyjwt_issuer: OMS_Container, then the secret key must bejwt_oms_container_public_key. - Pass the name of the secret as a value to the
secretparameter of OMEnvironment. For the secret name, it is recommended that you prefix release name to it. - Run the following command.
oc create -f <sample_secret_file>.yaml -n <namespace>A secret based on the values that are configured in the <sample_secret_file>.yaml file is created and encoded.