[bitnami/etcd] Stop logging root password (#63437)

This commit is contained in:
JB
2024-03-05 16:08:09 +01:00
committed by GitHub
parent 504ae66966
commit a53236f1bc
2 changed files with 5 additions and 2 deletions
@@ -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"
@@ -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"