mirror of
https://github.com/bitnami/containers.git
synced 2026-10-19 11:08:09 +02:00
[bitnami/etcd] Stop logging root password (#63437)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user