[
https://issues.apache.org/jira/browse/AIRFLOW-6254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16996257#comment-16996257
]
ASF subversion and git services commented on AIRFLOW-6254:
----------------------------------------------------------
Commit c6425a4be9c17bdcb4cbb134c3f19f1cff1c2e38 in airflow's branch
refs/heads/master from dstandish
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=c6425a4 ]
[AIRFLOW-6254] obscure conn extra in logs (#6817)
> obscure conn extra in logs
> --------------------------
>
> Key: AIRFLOW-6254
> URL: https://issues.apache.org/jira/browse/AIRFLOW-6254
> Project: Apache Airflow
> Issue Type: Bug
> Components: core
> Affects Versions: 1.10.6
> Reporter: Daniel Standish
> Assignee: Daniel Standish
> Priority: Major
> Fix For: 1.10.7
>
>
> When {{BaseHook.get_connection}} is called, it calls {{conn.log_info()}} on
> the returned {{conn}} object.
> This is prints to log the full contents of {{conn.extra}}.
> This is problematic because there can be sensitive information in
> {{conn.extra}}.
> The present change resolves this by adding method {{conn.log_info}} which
> obscures {{extra}}, and calling that in {{get_connection}} instead of
> {{debug_info}}.
> The {{debug_info}} method itself is left unchanged.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)