GitHub user Finhallen added a comment to the discussion: Connecting to postgres database using Google Secrets Manager
Airflow can pull Postgres credentials directly from Google Secret Manager by setting it up as a secrets backend. Instead of manually fetching each parameter, you can store the full URI in a secret named like airflow-connections-my_postgres, and then simply call PostgresHook(postgres_conn_id="my_postgres") in your DAG. This avoids using psycopg directly and keeps things clean, similar to how I configured https://bsdbrawlapk.com/. GitHub link: https://github.com/apache/airflow/discussions/48713#discussioncomment-14124699 ---- This is an automatically sent email for commits@airflow.apache.org. To unsubscribe, please send an email to: commits-unsubscr...@airflow.apache.org