docs/admin-guide/guides/secret-managers/hashicorp.mdx
HashiCorp Vault is an enterprise-grade secrets management system that provides secure storage and access to secrets, API keys, passwords, and other sensitive data.
Before connecting HashiCorp Vault to Activepieces, ensure you have:
Enable The created AppRole to access your secrets engine(s) by adding the following to your policy
path "sys/mounts" {
capabilities = [ "read" ]
}
path "<secret_engine_name>/data/<secret_name>" {
capabilities = [ "read" ]
}
or
path "sys/mounts" {
capabilities = [ "read" ]
}
path "<secret_engine_name>/data/*" {
capabilities = [ "read" ]
}
http://localhost:8200)Once the connection is saved, you can reference Vault secrets inside any piece connection dialog — in global connections (Platform Admin) or directly in the flow builder.
mount/data/path/to/secret/keyFor example, if you stored a secret with:
vault kv put -mount=secret mysec api_key='supersecret'
The path to enter would be:
secret/data/mysec/api_key
The connection will automatically retrieve the secret from Vault when the flow runs.
<Warning> If you update a secret in Vault and the change isn't reflected in your flows, the cached value may still be active. Use the **refresh icon** next to the connection in the Secret Managers page to clear its cache immediately, or wait up to 1 hour for it to expire automatically. See [Caching](/admin-guide/guides/secret-managers/overview#caching) for details. </Warning>