From 5b02498c750e41e8d1aa88faea0ec80c7a962500 Mon Sep 17 00:00:00 2001 From: Wen Guan Date: Thu, 28 Mar 2024 16:34:35 +0100 Subject: [PATCH] mask password or token information --- common/lib/idds/common/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lib/idds/common/utils.py b/common/lib/idds/common/utils.py index 5dbe9520..1a73cde2 100644 --- a/common/lib/idds/common/utils.py +++ b/common/lib/idds/common/utils.py @@ -937,7 +937,7 @@ def get_unique_id_for_dict(dict_): def idds_mask(dict_): ret = {} for k in dict_: - if 'pass' in k or 'password' in k or 'passwd' in k or 'token' in k: + if 'pass' in k or 'password' in k or 'passwd' in k or 'token' in k or 'security' in k or 'secure' in k: ret[k] = "***" else: ret[k] = dict_[k]