bryzgaloff opened a new issue, #33550:
URL: https://github.com/apache/airflow/issues/33550

   ### Description
   
   The current implementation of common.sql DbApiHook does not pass any sort of 
a password to `connect`:
   
   
https://github.com/apache/airflow/blob/c9452c8b7b61c975a1097544a00ebea00501b37d/airflow/providers/common/sql/hooks/sql.py#L175-L178
   
   And this is because `ConnectorProtocol` does not support it either:
   
   
https://github.com/apache/airflow/blob/c9452c8b7b61c975a1097544a00ebea00501b37d/airflow/providers/common/sql/hooks/sql.py#L105-L108
   
   Is it an intended decision complying with some standards? Or just a missing 
argument?
   
   I would suggest changing a call to support all the Airflow's `Connection` 
attributes.
   
   I am happy to submit a PR if there are no objections or fundamental reasons 
to not generalize the interface.
   
   ### Use case/motivation
   
   As an author of [Airflow ClickHouse 
Plugin](https://github.com/bryzgaloff/airflow-clickhouse-plugin), I want to 
rely on the existing `DbApiHook` implementation as much as possible without a 
need to override `DbApiHook.get_conn` method. And if it passes all the 
arguments, I need to only override the `DbApiHook.connector` object to 
customize the behaviour.
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to