Before you run a DataStage® flow, you can
modify parameters for vaulted properties, which are securely stored in a vault. A vault is a space
for managing secrets such as passwords or API keys that applications use to access protected
resources.
About this task
You can use parameters for vaulted parameters in your flow connections. Before you run a DataStage flow, you need to set up a parameter set with
parameters that directly points to an internal vault.
Procedure
- Create an internal vault:
- From the navigation panel, go to Configurations and
settings.
- Select Vaults and secrets, and then click
Secrets.
- Provide secret details for your vault.
- Click Save.
- Set up a parameter set with parameters that point to the vault secret. If you do not have
a parameter set already, see Creating and using parameter sets in DataStage.
- In your project on the asset tab, select your parameter set.
- Click Create parameter and select Vaulted
secret.
- Optional: To specify a default value, select a secret from a vault and
choose the secret key for your parameter using the Vault lookup
option.
- Click Apply and return, then click
Save.
- Map parameters from a parameter set:
- Double-click the connector in your flow and open the Stage tab.
- Enter the connection details with your vaulted parameters in the
#parameter_set_name.parameter_name# format. Example:
#custom_paramset.username#
- Enter the rest of the connection details, then click
Save.
- Enable runtime parameters:
- Click the Settings icon
and select Runtime parameters
option.
- Select your parameter set with vaulted parameters to enable it for your
flow.
- Click Save.
- Run your DataStage flow with the parameters
that you specified.
- Optional: In the logs, click the Parameters tab to see
the parameters from your flow that point to the vault secret.