Prerequisites
Before connecting HashiCorp Vault to Activepieces, ensure you have:- HashiCorp Vault Key-value (KV) secrets engine version 2
- AppRole auth method enabled
- One or more AppRoles configured with appropriate policies
Policies
Enable The created AppRole to access your secrets engine(s) by adding the following to your policyConnecting to Activepieces
- Go to Platform Admin → Security → Secret Managers
- Select HashiCorp Vault from the provider list
- Enter the required connection details:
- URL: Your Vault server URL (e.g.,
http://localhost:8200) - Role ID: The Role ID from your AppRole configuration
- Secret ID: The Secret ID from your AppRole configuration
- Namespace (optional): Vault namespace if using Vault Enterprise namespaces
- URL: Your Vault server URL (e.g.,
- Click Connect to test and save the connection
Using HashiCorp Vault Secrets
When configuring a connection that requires credentials:- Go to Platform Admin -> Setup -> Global connections and create a conneciton
- Click the key icon (🔑) next to the input field
- Select HashiCorp Vault from the dropdown
- Enter the secret path in the format:
mount/data/path/key- if key is added via cli command
vault kv put -mount=secret sec api_key='mysec' - the input value should be secret/data/mysec/api_key
- if key is added via cli command
