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 2022/01/19 21:03:36 UTC
[GitHub] [airflow] Juacall opened a new issue #20965: the
Juacall opened a new issue #20965:
URL: https://github.com/apache/airflow/issues/20965
### Apache Airflow Provider(s)
trino
### Versions of Apache Airflow Providers
_No response_
### Apache Airflow version
2.2.3 (latest released)
### Operating System
macOS Monterey
### Deployment
Virtualenv installation
### Deployment details
Basic deployment with the providers trino and mysql. Not using fernet key.
### What happened
The Trino hook requires a username and password to use the hook. If i were to try to use a connection without it, it would error out asking for basic authentication or a trino user. If i add a username and password to a connection. The connection becomes encrypted and is added to secrets then i won't be able to discover it unless i go through the basehook.
conn = BaseHook.get_connection(kwargs['my_conn_id'])
### What you expected to happen
I'm allowed to use a the hook without a username and password and or I can add a connection i retrieved from a base hook to the trino hook.
### How to reproduce
Run a trino server without any authentication. Use the Trino hook with the trino_default connection.
Will receive error Basic Authentication or X-Trino-User must be sent.
Add basic authentication to Trino server and to airflow trino_default connection. Try use TrinoHook.
Will receive error. conn_id trino_default not defined.
### Anything else
_No response_
### 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] wolfier commented on issue #20965: the
Posted by GitBox <gi...@apache.org>.
wolfier commented on issue #20965:
URL: https://github.com/apache/airflow/issues/20965#issuecomment-1016915746
Please update the title to reflect the nature of your issue
--
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] Juacall commented on issue #20965: TrinoHook cannot locate connections in secrets.
Posted by GitBox <gi...@apache.org>.
Juacall commented on issue #20965:
URL: https://github.com/apache/airflow/issues/20965#issuecomment-1017865312
> Feel free to submit a PR
How do i test changes?
--
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] eladkal commented on issue #20965: TrinoHook cannot locate connections in secrets.
Posted by GitBox <gi...@apache.org>.
eladkal commented on issue #20965:
URL: https://github.com/apache/airflow/issues/20965#issuecomment-1017213558
Feel free to submit a PR
--
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] potiuk commented on issue #20965: TrinoHook inconsistency with connections in secrets.
Posted by GitBox <gi...@apache.org>.
potiuk commented on issue #20965:
URL: https://github.com/apache/airflow/issues/20965#issuecomment-1019564905
> How do i test changes?
https://github.com/apache/airflow/blob/main/CONTRIBUTORS_QUICK_START.rst
--
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] boring-cyborg[bot] commented on issue #20965: the
Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #20965:
URL: https://github.com/apache/airflow/issues/20965#issuecomment-1016866151
Thanks for opening your first issue here! Be sure to follow the issue template!
--
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