The setup steps covers the use of the managed version of the GCP Secret Manager as secrets manager but
for the non-managed follow only the steps related to the Airflow server and CLI.
## Setup
### 1. Permissions needed
These are the permissions required in the service account to enable the GCP Secret Manager in OpenMetadata. We recommend to use the role named `roles/secretmanager.secretAccessor` to grant necessary permissions.
- resourcemanager.projects.get
- resourcemanager.projects.list
- secretmanager.versions.access
### 2. Update configuration
We have to set up the secret manager provider we want to use, that in our case is `gcp`, and the credentials for our GCP information.
The changes to be done in `openmetadata.yaml` file of the OpenMetadata server are:
```yaml
...
secretsManagerConfiguration:
secretsManager: gcp # or env var SECRET_MANAGER.
prefix: ${SECRET_MANAGER_PREFIX:-""} # Define the secret key ID as /<prefix>/<clusterName>/<key>
parameters:
projectId: <gcpprojectid> # or env var OM_SM_PROJECT_ID
pipelineServiceClientConfiguration:
# ...
# Secrets Manager Loader: specify to the Ingestion Framework how to load the SM credentials from its env