Skip to content

Commit

Permalink
[bitnami/etcd] Stop logging root password (#63437)
Browse files Browse the repository at this point in the history
  • Loading branch information
jb-abbadie authored Mar 5, 2024
1 parent 504ae66 commit a53236f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ set -o pipefail
# Load etcd environment variables
. /opt/bitnami/scripts/etcd-env.sh

is_empty_value "$ETCD_ROOT_PASSWORD" && unset ETCD_ROOT_PASSWORD
# We need to unset ETCD_ROOT_PASSWORD otherwise it will be logged by etcd process
unset ETCD_ROOT_PASSWORD
if [[ -f "$ETCD_NEW_MEMBERS_ENV_FILE" ]]; then
debug "Loading env vars of existing cluster"
. "$ETCD_NEW_MEMBERS_ENV_FILE"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ set -o pipefail
# Load etcd environment variables
. /opt/bitnami/scripts/etcd-env.sh

is_empty_value "$ETCD_ROOT_PASSWORD" && unset ETCD_ROOT_PASSWORD
# We need to unset ETCD_ROOT_PASSWORD otherwise it will be logged by etcd process
unset ETCD_ROOT_PASSWORD

if [[ -f "$ETCD_NEW_MEMBERS_ENV_FILE" ]]; then
debug "Loading env vars of existing cluster"
. "$ETCD_NEW_MEMBERS_ENV_FILE"
Expand Down

0 comments on commit a53236f

Please sign in to comment.