Choose a secret replication policy

This page describes secret replication policies in Secret Manager. A replication policy lets you choose the locations where you store your secret payload data. You can configure each secret with either automatic replication or user-managed replication when you create a secret. The locations in the replication policy can't be updated.

Regardless of the replication policy you select, Secret Manager ensures strong consistency of your data. Replication is a synchronous process. Secret Manager immediately makes the data available across all configured replicas when a secret is created or updated.

Automatic secret replication policy

A secret with an automatic replication policy has its payload data replicated without restriction. This is the simplest configuration and is recommended for most users. When creating a secret using the Google Cloud CLI or the web UI, this is the default replication policy.

When you choose automatic replication, Secret Manager replicates the secret across multiple regions globally. Google Cloud manages the distribution of your data across these regions to ensure high availability. Automatic replication provides robust protection against single-region failures without requiring manual configuration.

For billing purposes , a secret with an automatic replication policy is considered to be stored in a single location.

For purposes of resource location organization policy evaluation, a secret with an automatic replication policy can only be created if resource creation in global is allowed.

User-managed secret replication policy

A secret with a user-managed replication policy has its payload data replicated to a user configured set of locations. The secret can be replicated to any number of supported locations . This may be useful if there are requirements around where the secret payload data can be stored.

If you configure replication to multiple regions and one or more regions experience an outage, the create or update action fails. This ensures that your data remains consistent. Secret Manager returns an error message confirming the failure.

For billing purposes , each location in the user-managed replication policy is considered a separate location.

For purposes of resource location organization policy evaluation, a secret with a user-managed replication policy can only be created if resource creation is allowed in all the selected locations.

What's next

Create a Mobile Website
View Site in Mobile | Classic
Share by: