[
https://issues.apache.org/jira/browse/AIRFLOW-6254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16996258#comment-16996258
]
ASF subversion and git services commented on AIRFLOW-6254:
----------------------------------------------------------
Commit fdfdeeedba61f6b658436777a50d6130256abdd5 in airflow's branch
refs/heads/v1-10-test from dstandish
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=fdfdeee ]
[AIRFLOW-6254] obscure conn extra in logs (#6817)
(cherry picked from commit c6425a4be9c17bdcb4cbb134c3f19f1cff1c2e38)
> 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)