You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by mm...@apache.org on 2022/04/08 15:04:06 UTC

[pulsar] branch branch-2.7 updated: Ignore case when obfuscating passwords in python configuration scripts (#15077)

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

mmarshall pushed a commit to branch branch-2.7
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/branch-2.7 by this push:
     new 74959f278f7 Ignore case when obfuscating passwords in python configuration scripts (#15077)
74959f278f7 is described below

commit 74959f278f7339bada0a585c5dee8ce681431d2f
Author: Michael Marshall <mm...@apache.org>
AuthorDate: Fri Apr 8 01:27:12 2022 -0500

    Ignore case when obfuscating passwords in python configuration scripts (#15077)
    
    (cherry picked from commit 8a67a383fb5e53f947d0513fc12656dd37961690)
---
 docker/pulsar/scripts/apply-config-from-env-with-prefix.py | 4 ++--
 docker/pulsar/scripts/apply-config-from-env.py             | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/docker/pulsar/scripts/apply-config-from-env-with-prefix.py b/docker/pulsar/scripts/apply-config-from-env-with-prefix.py
index a3a4adafcab..3f6bc2e4d3b 100755
--- a/docker/pulsar/scripts/apply-config-from-env-with-prefix.py
+++ b/docker/pulsar/scripts/apply-config-from-env-with-prefix.py
@@ -60,7 +60,7 @@ for conf_filename in conf_files:
         v = os.environ[k].strip()
 
         # Hide the value in logs if is password.
-        if "password" in k:
+        if "password" in k.lower():
             displayValue = "********"
         else:
             displayValue = v
@@ -80,7 +80,7 @@ for conf_filename in conf_files:
             continue
 
         # Hide the value in logs if is password.
-        if "password" in k:
+        if "password" in k.lower():
             displayValue = "********"
         else:
             displayValue = v
diff --git a/docker/pulsar/scripts/apply-config-from-env.py b/docker/pulsar/scripts/apply-config-from-env.py
index 6e2eb746cd4..b9757d77f5e 100755
--- a/docker/pulsar/scripts/apply-config-from-env.py
+++ b/docker/pulsar/scripts/apply-config-from-env.py
@@ -62,7 +62,7 @@ for conf_filename in conf_files:
         v = os.environ[k].strip()
 
         # Hide the value in logs if is password.
-        if "password" in k:
+        if "password" in k.lower():
             displayValue = "********"
         else:
             displayValue = v
@@ -82,7 +82,7 @@ for conf_filename in conf_files:
             continue
 
         # Hide the value in logs if is password.
-        if "password" in k:
+        if "password" in k.lower():
             displayValue = "********"
         else:
             displayValue = v