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:42 UTC

[pulsar] branch branch-2.10 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.10
in repository https://gitbox.apache.org/repos/asf/pulsar.git


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

commit aa2a626efedf3697aebe705dbc3a3346796d83ff
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 8438f137629..a802ca6fdbe 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
@@ -86,7 +86,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