> ## Documentation Index
> Fetch the complete documentation index at: https://www.qovery.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# GCP Secret Manager

> Connect your Qovery cluster to GCP Secret Manager using ESO

> [!NOTE]
>
> Available on **GCP Managed Clusters**. You can also access GCP Secret Manager from an AWS Managed Cluster using cross-cloud static credentials.

## From a GCP Managed Cluster

> [tab] GCP Automatic Authentication
>
> > [!NOTE]
> >
> > This authentication gives you access to **all secrets** located in the same GCP project as your cluster.
>
> > [!WARNING]
> >
> > You must add the `Secret Manager Viewer` role to the GCP service account associated with your Qovery cluster.
> >
> > ![Add Secrets Manager Viewer permission](https://mintcdn.com/qovery/6fdDvhSOOcJ9uNJR/images/configuration/secret-manager-access/gcp-secret-manager-viewer.png?fit=max\&auto=format\&n=6fdDvhSOOcJ9uNJR\&q=85\&s=2a568d094315a87f83b524e3660da230)
>
> Qovery automatically creates the GCP IAM Service Account with the necessary permissions.
>
> The following information is required:
>
> * Your GCP Project ID
> * The target GCP Region where your secrets live
> * The secret manager access name
>
> ![Automatic GCP Secret Manager authentication](https://mintcdn.com/qovery/6fdDvhSOOcJ9uNJR/images/configuration/secret-manager-access/sma-automatic-gcp-secret-manager.png?fit=max\&auto=format\&n=6fdDvhSOOcJ9uNJR\&q=85\&s=0405319391e3ec0ba15bdcf99922f1d5)

> [tab] GCP Static Credentials
>
> Qovery provides the following script to run in your GCP Console:
>
> ```
> curl https://setup.qovery.com/create_secret_manager_credentials_gcp.sh | \
> bash -s -- $GOOGLE_CLOUD_PROJECT qovery_secrets_manager_role qovery-secrets-manager-sa
> ```
>
> The following information is required:
>
> * The `key.json` generated by the script
> * Your GCP Project ID
> * The target GCP Region where your secrets live
> * The secret manager access name
>
> ![GCP Static Credentials Secret Manager](https://mintcdn.com/qovery/6fdDvhSOOcJ9uNJR/images/configuration/secret-manager-access/sma-aws-with-gcp-creds.png?fit=max\&auto=format\&n=6fdDvhSOOcJ9uNJR\&q=85\&s=7922d1d1083be5d41ae245cb9ec6a459)

## From an AWS Managed Cluster (cross-cloud)

You can access GCP Secret Manager from an AWS cluster using static credentials.

Qovery provides the following script to run in your GCP Console:

```
curl https://setup.qovery.com/create_secret_manager_credentials_gcp.sh | \
bash -s -- $GOOGLE_CLOUD_PROJECT qovery_secrets_manager_role qovery-secrets-manager-sa
```

The following information is required:

* The `key.json` generated by the script
* Your GCP Project ID
* The target GCP Region where your secrets live
* The secret manager access name

![AWS GCP Secret Manager](https://mintcdn.com/qovery/6fdDvhSOOcJ9uNJR/images/configuration/secret-manager-access/sma-aws-with-gcp-creds.png?fit=max\&auto=format\&n=6fdDvhSOOcJ9uNJR\&q=85\&s=7922d1d1083be5d41ae245cb9ec6a459)

***

[← Back to Secret Manager Integration overview](https://www.qovery.com/docs/configuration/integrations/secret-managers/secret-manager-access.md#reference-the-external-secrets-in-your-service)


## Related topics

- [Overview](https://www.qovery.com/docs/configuration/integrations/secret-managers/secret-manager-access.md)
- [Environment Variables](https://www.qovery.com/docs/configuration/environment-variables.md)
- [Blueprints](https://www.qovery.com/docs/configuration/blueprints.md)
- [List organization clusters](https://www.qovery.com/docs/api-reference/clusters/list-organization-clusters.md)
- [Create a cluster](https://www.qovery.com/docs/api-reference/clusters/create-a-cluster.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.