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/02/21 07:58:04 UTC

[GitHub] [airflow] uranusjr commented on a change in pull request #21451: TrinoHook add authentication via JWT token and Impersonation

uranusjr commented on a change in pull request #21451:
URL: https://github.com/apache/airflow/pull/21451#discussion_r810857012



##########
File path: airflow/providers/trino/hooks/trino.py
##########
@@ -81,10 +84,12 @@ def get_conn(self) -> Connection:
                 delegate=_boolify(extra.get('kerberos__delegate', False)),
                 ca_bundle=extra.get('kerberos__ca_bundle'),
             )
+        if _boolify(extra.get('impersonate_as_owner', False)):
+            user = os.getenv('AIRFLOW_CTX_DAG_OWNER', None)

Review comment:
       Should this fall back to `db.login` if `AIRFLOW_CTX_DAG_OWNER` is not set?




-- 
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