From a19036f10da5a56a6a5812aea2b08a547c7538de Mon Sep 17 00:00:00 2001 From: Slawomir Koszewski Date: Tue, 24 Mar 2026 09:38:52 +0100 Subject: [PATCH] fix: simplify AZURITE_ACCOUNTS check by removing default account generation --- entrypoint.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 1b991d6..ed69261 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,14 +4,8 @@ set -euo pipefail # Check, if the AZURITE_ACCOUNTS variable is set if [[ -z "$AZURITE_ACCOUNTS" ]]; then - if [[ -f "/storage/accounts.env" ]]; then - set -a - source "/storage/accounts.env" - set +a - else - # Generate a default account - export AZURITE_ACCOUNTS="devstoreaccount1:$(openssl rand -base64 32)" - fi + echo "Error: AZURITE_ACCOUNTS variable is not set." >&2 + exit 1 fi # Look up the account name from the AZURITE_ACCOUNTS variable, which is in the format "accountName:accountKey1:accountKey2;accountName2:accountKey1:accountKey2"