You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/09/03 08:21:51 UTC
[GitHub] [airflow] m1racoli opened a new issue #18003: CloudSqlProxyRunner doesn't support connections from secrets backends
m1racoli opened a new issue #18003:
URL: https://github.com/apache/airflow/issues/18003
### Apache Airflow Provider(s)
google
### Versions of Apache Airflow Providers
apache-airflow-providers-google~=5.0
### Apache Airflow version
2.1.3 (latest released)
### Operating System
MacOS Big Sur
### Deployment
Astronomer
### Deployment details
_No response_
### What happened
The CloudSqlProxyRunner queries the Airflow DB directly to retrieve the GCP connection.
https://github.com/apache/airflow/blob/7b3a5f95cd19667a683e92e311f6c29d6a9a6a0b/airflow/providers/google/cloud/hooks/cloud_sql.py#L521
### What you expected to happen
In order to not break when using connections stored in external secrets backends, it should use standardized methods to retrieve connections and not query the Airflow DB directly.
### How to reproduce
Use a CloudSQLDatabaseHook with `use_proxy=True` while using an external secrets backend.
### Anything else
Every time
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] mik-laj closed issue #18003: CloudSqlProxyRunner doesn't support connections from secrets backends
Posted by GitBox <gi...@apache.org>.
mik-laj closed issue #18003:
URL: https://github.com/apache/airflow/issues/18003
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org