Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand unbound env var to empty in read-secrets #27

Merged
merged 1 commit into from
Mar 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker/read-secrets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ for SECRET_FILENAME in $(ls "$SECRET_STORE_BASE_PATH");
do
# replace non-alphanumeric characters with _ and convert to uppercase
VAR_NAME=$(echo $SECRET_FILENAME | sed -E 's/[^a-zA-Z0-9]+/_/g' | tr a-z A-Z)
if [ ! -z "$SKIP_SET_VARIABLE_SECRET_OVERRIDE" ] && [ ! -z "$(printenv $VAR_NAME)" ]; then
if [ ! -z "${SKIP_SET_VARIABLE_SECRET_OVERRIDE-}" ] && [ ! -z "$(printenv $VAR_NAME)" ]; then
echo "Secret environment value override disabled. Used existing value for '$VAR_NAME' environment variable."
else
VAR_VALUE=$(cat "$SECRET_STORE_BASE_PATH/$SECRET_FILENAME")
Expand Down
Loading