docs/admin-guide/guides/secret-managers/overview.mdx
Secret Managers allow you to integrate external secret management systems with Activepieces, enabling centralized credential management and enhanced security for your global connections.
<Snippet file="enterprise-feature.mdx" />The connection will be encrypted and stored securely. You can edit or delete it at any time from the Secret Managers page.
Each secret manager connection has a scope that controls which projects can use it:
| Scope | Description |
|---|---|
| Platform | Available to all projects on the platform |
| Project | Restricted to specific projects you select |
When creating or editing a connection, select Project scope and choose the projects that should have access. Platform-scoped connections are always visible to all projects.
Once connected, you can reference secrets from your secret managers when configuring piece connections:
Global connections (Platform Admin): All platform-scoped and project-scoped secret manager connections are available to select.
Flow builder connections: Only secret manager connections that are accessible to the current project are shown — this includes platform-scoped connections and project-scoped connections assigned to that project.
When you use a secret manager in a connection:
Connection checks and retrieved secrets are cached in Redis (encrypted) for 1 hour to reduce latency and provider API load.
To force a refresh (e.g. after rotating credentials or updating secrets), platform admins can clear the cache per connection using the refresh icon next to each connection row in the Secret Managers page.
You can also clear the cache via the API. Omit connectionId to clear all cached entries for the platform, or pass a connectionId to clear only that connection's cache:
# Clear cache for a specific connection
curl --request DELETE \
--url 'https://<domain>/api/v1/secret-managers/cache?connectionId=<connectionId>' \
--header 'Authorization: Bearer <token>'
# Clear all platform cache entries
curl --request DELETE \
--url 'https://<domain>/api/v1/secret-managers/cache' \
--header 'Authorization: Bearer <token>'
Connection Failed:
Secret Not Found:
Permission Denied: