FlexDeploy provides out of box integration with HashiCorp Vault to retrieve secrets. FlexDeploy will authenticate using AppRole authentication method against vault.
HashiCorp Vault Setup
You must first create Credential Store in FlexDeploy by clicking Create Store button on Administration - Security - Credentials page. Credential store represents instance of specific type of credential store provider. If you have more than one HashiCorp Vault installations, you will create equal number of Credential Stores in FlexDeploy.
Here are the configurations necessary for this store.
HTTP URL for REST service calls.
If you use https protocol then make sure to configure KeyStore (default java or application server keystore) with proper certificates.
|App Role Path||App role path for authentication. This will default to approle and it should be sufficient.||approle|
|Role Id||You will create approle for FlexDeploy to authenticate against vault, provide role id here.||as per your Vault configurations|
|Secret Id||You will create approle for FlexDeploy to authenticate against vault, provide secret id here.||as per your Vault configurations|
|Engine Version||Engine version for secrets. This will default to 2, you can change if necessary.||1 or 2|
Now you are ready to create individual credential to be retrieved from Vault.
You can create or edit credentials from Credentials page or from where specific credential is used.
HashiCorp Credential requires two inputs as described below. Keep in mind that AppRole created for FlexDeploy must have read access to paths defined by various credentials.
|Secrets Path||Path to secrets in HashiCorp Vault. For example, kv/DEV/Database/apps|
|Key Name||Key name for secret value.|
Here is how edit credential looks like.
Create credential looks similar except you need to provide Scope as well. Scope can not changed once credential is saved.
You can change credential inputs (Secrets Path, Key Name) at any point. FlexDeploy will use these inputs with credential store properties like URL, Role and Secret id to retrieve individual credential for use during Workflow Execution.