Configure multiple Secrets Manager configurations
| Multiple Secrets Manager configurations Availability | |||
|---|---|---|---|
| Self-hosted Edge 3.300 or later | Public beta | ||
| Self-hosted Stable 3.300 or later | Public beta | ||
You can create multiple Secrets Manager configurations if you need to retrieve secrets from different locations.
Enable the multiple configurations beta
Multiple configurations for Secrets Manager is currently available in beta. Admins can enable this functionality from the Beta page in your Retool organization's settings.
Create additional configurations
You configure additional secrets managers using the same configuration as before. You can add multiple configurations for any supported secrets manager provider.
Click Add Secrets Manager and then select the configuration to create. You then provide the required settings based on whether you are configuring AWS, HashiCorp Vault, or Google Cloud Platform.
Each configuration requires a unique string identifier (e.g., vault_2) so that it can be referenced across Retool.

Multiple configurations.
Reference secrets from different configurations
How you reference secrets with multiple configurations is slightly different once you start using multiple configurations as each configuration's identifier must now also be included in the {{ }} expression.
{{ secrets['CONFIGURATION_NAME']['KEY_NAME']}}
{{ secrets['gcp_1']['secret3'] }}
{{ secrets['aws_1']['secret3'] }}
{{ secrets['vault_1']['secret3'] }}

Reference secrets from different configurations.