GitHub user Walter456951 added a comment to the discussion: Connecting to 
postgres database using Google Secrets Manager

Hey! Totally get your situation—I ran into the same issue when connecting to an 
external Postgres DB from Airflow in Cloud Composer. By default, Airflow 
doesn’t resolve gcpsecretmanager:// in the UI unless you configure the Secrets 
Backend properly.

I fixed it by setting the CloudSecretManagerBackend in Composer’s environment 
config and using the right connections_prefix. After that, Airflow pulled the 
secrets automatically, and I could use PostgresHook('my_conn_id') without any 
manual string building.

Worked great for us while setting things up for 
[brawlstarsapk.net](https://brawlstarsapk.net/)!

Hope this helps!

GitHub link: 
https://github.com/apache/airflow/discussions/48713#discussioncomment-13740165

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to