Obtaining connection values for HashiCorp Vault (IBM Vault)
About this task
Use these instructions to get the connection values for the HashiCorp Vault (IBM Vault) connector.
Procedure
- To obtain the engine path value (BEARER TOKEN and
BASIC), complete the following steps:
- Log in to your HashiCorp Vault (IBM Vault) instance.
- Go to Secret Engines > Enable new engine +.
- Select the secret engine according to your requirement.
- In the Path field, enter a path name.
- Configure the secret engine according to your requirement.
- Click the Enable engine button.
- Click the Configuration tab.
- Copy the Path value (this value is your Engine path) and save it somewhere safe.
- To obtain the token value (BEARER TOKEN), choose one of the
following:
- Use the initial root token value generated during Vault initialization.
- Generate a new token by running the following CLI command on your host
machine:
vault token create
Important: Ensure that your authentication method includes vault policies with sufficient permissions for the required secret engine operations.For example:path "secret/data/*" { capabilities = ["create", "read", "update", "delete", "list"] }Tip: To know more token authentication and policies, see Getting Vault Enterprise Installed and Running on the Hashicorp page. - To obtain the username, password and mount path values (BASIC),
complete the following steps:
- Log in to your HashiCorp Vault (IBM Vault) instance.
- Go to Access > Authentication Methods > Enable new method +.
- Select the Username & Password tile on the Enable and Authentication Method page.
- In the Path field, enter a path name.
- Copy the Path value (this value is your Mount path) and save it somewhere safe.
- Click the Enable method button.
- Select the authentication method that you enabled.
- Click Create user +.
- Enter a name in the Username field.
- Enter a password in the Password field.
- Expand ⌄Tokens.
- In the Generated Token's Policies field, enter the required policy name.
- Click the Add button.
- Click Save.
- Select the user that you created.
- Copy and save your Username and Password
values.Important: Ensure that your authentication method includes vault policies with sufficient permissions for the required secret engine operations.For example:
path "secret/data/*" { capabilities = ["create", "read", "update", "delete", "list"] }
Tip: For detailed instructions about generating username and password via the CLI method, see Userpass auth method on the Hashicorp Developer page.