Secrets Backend Integration
Store secrets in AWS Secrets Manager, Google Cloud Secret Manager, Vault-compatible OpenBao, or a database-backed store, or move an environment's secrets into your own AWS or GCP account.
Facets supports multiple secret storage backends depending on your cloud provider:
AWS Secrets Manager
Default for AWS-based deployments. Secrets are stored in AWS Secrets Manager with:
- Automatic encryption at rest
- IAM-based access control
- Cross-region replication support
Google Cloud Secret Manager
Default for GCP-based deployments. Supports three replication modes:
| Mode | Description |
|---|---|
| AUTOMATIC_REPLICATION | Google manages replication across regions (default) |
| USER_MANAGED_REPLICATION | You specify which regions to replicate to |
| REGIONAL | Secrets stored in a single region only |
These modes are the control plane's own Secret Manager setting. An environment moved to your own GCP project gets its own replication choice: Automatic, User-managed or Regional.
OpenBao (HashiCorp Vault Compatible)
For self-hosted or multi-cloud deployments:
- Compatible with HashiCorp Vault API
- On-premises secret storage option
- Custom secret engine support
Database-backed storage
For deployments without an external cloud secrets manager, Facets can store secrets through a pluggable, encrypted secrets-management backend instead of a cloud provider service. This option supports self-hosted or non-cloud setups that don't rely on AWS, GCP, or OpenBao.
The control plane's setup decides the default store. The one per-environment change is moving an environment's secrets to your own account.
Your own AWS or GCP account (early access)
You can move an environment's secrets into AWS Secrets Manager or GCP Secret Manager in a cloud account linked to Facets. Every later read and write of those secrets, including by releases, then goes to your account.
Early access: Facets support turns it on per control plane. Only then does Secret Storage appear in the settings of AWS, GCP and cloudless environments. Each can pick either store.
Before you start, set up the account:
| AWS Secrets Manager | GCP Secret Manager | |
|---|---|---|
| Account | Linked in Facets, with a role Facets can assume (role ARN, external ID, trust policy) | Linked in Facets (service account key), plus a project ID |
| Permissions | On the secret: secretsmanager:CreateSecret, UpdateSecret, GetSecretValue, DeleteSecret, RestoreSecret | On the project: secretmanager.secrets.create, and secretmanager.versions.add, .access, .destroy, .list, .disable, .enable. roles/secretmanager.admin covers them. |
| Encryption key | If KMS encrypts Secrets Manager: kms:Encrypt, kms:Decrypt, kms:GenerateDataKey | With CMEK, the project's Secret Manager service agent needs roles/cloudkms.cryptoKeyEncrypterDecrypter on the key |
| Other | None | secretmanager.googleapis.com enabled. Regional replication needs a location offering regional Secret Manager. |
The environment needs IaC version 3.36.30 or later, or its releases may break after the move. You need the Configure permission on it.
This is web UI only:
- Open the environment's settings and select Secret Storage.
- Turn on Use your own Secret Manager.
- Choose the Secret Store. It defaults to GCP for GCP environments, AWS otherwise.
- Choose the Cloud Account.
- For AWS, choose the Region. For GCP, check the prefilled Project ID, then choose the Replication:
- Automatic: Google chooses where the secret is stored.
- User-managed: replicated only to the locations you pick.
- Regional: stored in, and served from, the one location you pick.
- Click Save Secrets, type
confirm, then click Save.
Facets then checks the account's access, copies the environment's current secrets, and switches over. If the copy fails, nothing is enabled.
The move is permanent. You can't turn it off, or change the account, region, project ID or replication afterwards. A cloud account that holds an environment's secrets can't be deleted.
In GCP, deleting an environment disables its secret versions rather than destroying them, because GCP has no recovery window.
If saving fails:
| Message | Fix |
|---|---|
| "Not available on this control plane" | Early access isn't on. Ask Facets support. |
| "Could not assume the account's IAM role. Check the role ARN, the external ID, and that the role's trust policy allows Facets." | Fix the role's trust policy or external ID. |
| "Secret Manager is not enabled in project ..." | Enable secretmanager.googleapis.com in that project. |
| "That location does not offer regional Secret Manager. Choose a supported region." | Pick another location or replication mode. |
| "Could not copy this environment's secrets into the target account." | Nothing was enabled. Fix the account's access, then save again. |
Size limit
Each secret store entry holds up to 64 KiB (65,536 bytes), and an environment's secrets and variables are stored together.
| Store (Facets-managed or your own) | Limit per environment |
|---|---|
| AWS Secrets Manager | 512 KiB. Facets splits anything over 64 KiB into up to 8 entries, with the extras named <secretId>-part-N. |
| GCP Secret Manager | 64 KiB in one entry. There is no split. |
Over the limit, the save fails with "Secrets and variables of this environment total N bytes, which exceeds the M byte limit of the secret store." The message lists the largest secrets by name and size, never their values. Delete or shorten secrets, then save again.
Resource Variables
Define resource-specific variables at the blueprint level as defaults, then override them per environment with a clear hierarchy of inherited and custom values.
Onboard Apps
How developers onboard applications to Facets: configure your service and its surroundings, connect your CI/CD pipeline, and push artifacts to environments.