Skip to main content
Activepieces integrates with external secret managers to securely store and retrieve sensitive values like API keys, passwords, and tokens.

Overview

Secret managers provide:

Centralized Storage

Store all secrets in one secure location

Access Control

Fine-grained permissions on secret access

Audit Trail

Track who accessed which secrets when

Supported Providers

Activepieces supports four secret manager providers:

AWS Secrets Manager

Store secrets in AWS with automatic rotation and IAM integration.Features:
  • Automatic secret rotation
  • IAM-based access control
  • Multi-region replication
  • CloudTrail audit logging
Best For:
  • AWS-native deployments
  • Existing AWS infrastructure
  • Compliance requirements

AWS Secrets Manager

Configuration

1

Create IAM User

Create IAM user with Secrets Manager permissions:
2

Generate Access Keys

Create access key ID and secret access key for the IAM user.
3

Configure in Activepieces

Storing Secrets

Create secrets in AWS Secrets Manager:

Referencing Secrets

Use the format: secretName:jsonKey
The ap_sep_v1 separator is automatically added by Activepieces to identify secret references.

AWS Secret Structure

AWS Secrets Manager returns the entire JSON object. You must specify the JSON key to extract a specific value.

HashiCorp Vault

Configuration

1

Enable AppRole Auth

2

Create Policy

3

Create AppRole

4

Get Credentials

5

Configure in Activepieces

Storing Secrets

Store secrets in KV v2 engine:

Referencing Secrets

Use the format: mount/data/path/key
For KV v2, the path must include /data/ after the mount point. For KV v1, omit /data/.

Vault Path Structure

Namespace Support

For Vault Enterprise with namespaces:

1Password

Configuration

1

Create Service Account

In 1Password, navigate to:
  1. Settings > Service Accounts
  2. Create New Service Account
  3. Grant vault access permissions
2

Get Service Account Token

Copy the service account token (starts with ops_...)
3

Configure in Activepieces

Storing Secrets

Create items in 1Password vaults using the app or CLI:

Referencing Secrets

Use 1Password’s secret reference format: op://vault/item/field

1Password Reference Syntax

Examples:
1Password secret references must exactly match the vault, item, and field names (case-sensitive).

Using Secret Managers

Connection Setup

Configure secret managers at platform level:

Secret Resolution

Activepieces automatically resolves secret references:

Caching

Secret values are cached to reduce API calls:
  • Cache TTL: 5 minutes (default)
  • Connection Status Cache: 30 seconds
  • Cache Invalidation: On configuration change
Caching improves performance but means secret changes may take up to 5 minutes to propagate.

Advanced Usage

Nested Secret Resolution

Resolve secrets in nested objects:

Conditional Resolution

Resolve only if value looks like a secret:

Error Handling

Resolution:
  • Verify secret exists in secret manager
  • Check secret path is correct
  • Ensure JSON key exists (AWS)
Resolution:
  • Verify credentials are correct
  • Check network connectivity
  • Review secret manager logs
Resolution:
  • Check secret reference format
  • AWS: Use secretName:jsonKey
  • Vault: Use mount/data/path/key
  • 1Password: Use op://vault/item/field

Security Considerations

Credential Security

Encrypt at Rest

Secret manager credentials are encrypted using AES-256-GCM in the database.

Least Privilege

Grant only necessary permissions:
  • AWS: GetSecretValue, ListSecrets
  • Vault: Read access to specific paths
  • 1Password: Limited vault access

Credential Rotation

Rotate secret manager credentials regularly:
  • AWS: Every 90 days
  • Vault: AppRole secret IDs monthly
  • 1Password: Service account tokens quarterly

Audit Logging

Enable audit logs in your secret manager:
  • AWS CloudTrail
  • Vault audit devices
  • 1Password activity log

Best Practices

1

Use Dedicated Credentials

Create dedicated IAM users/roles for Activepieces, not personal credentials.
2

Scope Permissions

Limit access to only secrets needed by Activepieces.
3

Monitor Access

Review secret manager audit logs for unusual access patterns.
4

Test Connection

Always test secret manager connection before deploying to production.

Troubleshooting

AWS:
  • Verify IAM credentials are correct
  • Check IAM permissions include secretsmanager:ListSecrets
  • Ensure region is correct
Vault:
  • Verify Vault URL is accessible
  • Check AppRole credentials are valid
  • Ensure policy grants sys/mounts read permission
1Password:
  • Verify service account token is valid
  • Check service account has vault access
  • Ensure token hasn’t expired
Check:
  1. Secret reference format is correct
  2. Secret exists in secret manager
  3. Connection is still active
  4. Cache hasn’t expired (wait 5 minutes)
  5. No recent configuration changes
Solutions:
  • Increase cache TTL (requires code change)
  • Use secrets sparingly in high-frequency flows
  • Deploy secret manager close to Activepieces
  • Monitor secret manager API limits

API Reference

Migration Guide

Moving from Environment Variables

1

Identify Secrets

List all secrets currently in environment variables or connection configs.
2

Store in Secret Manager

Create secrets in your chosen secret manager:
3

Update Connections

Replace hardcoded values with secret references:Before:
After:
4

Test & Verify

Test connections work with secret manager integration.
5

Remove Old Secrets

Remove hardcoded secrets from environment variables.

Security Practices

General security guidelines

Audit Logs

Track secret access

Environment Setup

Configure deployment