This is an automated email from the ASF dual-hosted git repository.

ash pushed a commit to branch v2-1-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit e58a6a9514768a11f9e043e76277a0201308ce63
Author: Ash Berlin-Taylor <[email protected]>
AuthorDate: Fri Jun 11 19:08:35 2021 +0100

    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 b3ccfdb..3177c58 100644
--- a/airflow/utils/log/secrets_masker.py
+++ b/airflow/utils/log/secrets_masker.py
@@ -47,13 +47,15 @@ log = logging.getLogger(__name__)
 
 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"""

Reply via email to