Encrypt Passwords using Red Hat CodeReady Workspaces
Use the running z/OS® Connect Designer container within your Red Hat CodeReady Workspaces to encrypt a password.
Before you begin
About this task
This topic is applicable to:
- Open a terminal in the running z/OS Connect Designer container.
- Click the My Workspace button in the right hand
This opens the right hand navigation containing information about the running containers that make up your workspace.
- Click the New terminal button under the
zosconnect drop down.
This will reveal a terminal from the zosconnect container.
Within the running z/OS Connect Designer container we have access to the
securityUtilityfeature. Using this we can encrypt the password within the workspace.
- Click the My Workspace button in the right hand navigation.
- Enter the following command within the terminal ensuring you replace
<myPassword> with your own password:
securityUtility encode <myPassword> --encoding=aes
The output looks something like this:
- Copy the encrypted password output from the terminal.
- Click on the Stop Workspace button.
Updates to the
devfile.yamlwill only take effect when the workspace is restarted. To do this we need to stop the running workspace.
- Update the
DB2_PASSWORDvariable in the
Navigate to your workspace tab and update the
DB2_PASSWORDenvironment variables with the output from Step 3.
- Click on the workspace name to start it.
This will restart with the updated password.
- Verify the environment variables have successfully been passed to the workspace.
Click on the My Workspace button on the right hand side navigation to reveal the env directory shown under the zosconnect drop down. Within are the environment variables defined in your