CloudSecretManagerBackend
GoogleRetrieves Connection object from Google Cloud Secrets Manager
Access Instructions
Install the Google provider package into your Airflow environment.
Update your environment config per the instructions in the docs below.
Parameters
Documentation
Retrieves Connection object from Google Cloud Secrets Manager
Configurable via airflow.cfg
as follows:
[secrets]backend = airflow.providers.google.cloud.secrets.secret_manager.CloudSecretManagerBackendbackend_kwargs = {"connections_prefix": "airflow-connections", "sep": "-"}
For example, if the Secrets Manager secret id is airflow-connections-smtp_default
, this would be accessible if you provide {"connections_prefix": "airflow-connections", "sep": "-"}
and request conn_id smtp_default
.
If the Secrets Manager secret id is airflow-variables-hello
, this would be accessible if you provide {"variables_prefix": "airflow-variables", "sep": "-"}
and request Variable Key hello
.
The full secret id should follow the pattern “[a-zA-Z0-9-_]”.