Adding Vault AppRoles to Deploy secret store
You can create a secret store in Deploy and add Vault AppRoles users to the secret store to authenticate users with Vault-defined AppRole.
Before you begin
- You must have installed the Vault server and have the server address.
- You must have the following permissions:
- Create, view, and edit secret store permissions to create a secret store.
- Create, view, and edit Vault AppRole permissions to manage AppRoles of a secret store.
About this task
Procedure
- Click Create Vault Secret Store.
-
Create a secret store in the Manage Vault Secret Store window and
provide the folowing details:
Parameter Description Name Identifies the Vault secret store name. Note: Characters other thana-z
,A-Z
,0-9
, and-
are not allowed.Description Conveys more information about the Vault. Teams Allow access of a Vault secret store to specific teams. URL Indicates the Vault server address. -
Save your changes.
The secret store lists on the Secret Stores page.
-
Add AppRoles users to the secret store.
- Click the secret store to which you want to add the AppRole.
- Click App Roles.
- Click Create Vault AppRole.
The Manage Vault AppRole window is displayed.
- In the Manage Vault AppRole window, enter the following AppRole
details:
Parameter Description Name Identifies the Vault AppRole name. Note: Characters other thana-z
,A-Z
,0-9
, and-
are not allowed.AppRole Id Specifies the RoleID of the Vault AppRole. Secret Id Specifies the SecretID of the Vault AppRole. Teams Allows access of the AppRole to specific teams. - Save your changes.
The AppRole is added to the Vault AppRoles page.
Results
What to do next
${p:secret:vault:<secretStoreName>:<vaultAppRoleName>:<vaultSecretPath>:<vault-key>}
Note: When the process runs, on reaching the step where the property
is defined, the process validates and authenticates the credentials from the Vault.