From 5917abf116642a0b709070e4d6a563d338fc4d25 Mon Sep 17 00:00:00 2001 From: Ash Berlin-Taylor Date: Fri, 11 Jun 2021 19:08:35 +0100 Subject: [PATCH] Add `passphrase` and `private_key` to default sensitive fileld names (#16392) (cherry picked from commit 430073132446f7cc9c7d3baef99019be470d2a37) --- airflow/utils/log/secrets_masker.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/airflow/utils/log/secrets_masker.py b/airflow/utils/log/secrets_masker.py index 6df8d398a51f4..aaff669ce6b8d 100644 --- a/airflow/utils/log/secrets_masker.py +++ b/airflow/utils/log/secrets_masker.py @@ -42,13 +42,15 @@ DEFAULT_SENSITIVE_FIELDS = frozenset( { - 'password', - 'secret', - 'passwd', - 'authorization', + 'access_token', 'api_key', 'apikey', - 'access_token', + 'authorization', + 'passphrase', + 'passwd', + 'password', + 'private_key', + 'secret', } ) """Names of fields (Connection extra, Variable key name etc.) that are deemed sensitive"""