Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

feat(minikube): require ADMIN_PASSWORD, ship no default password

Jose Ramirez73a2ca508362
diff --git a/.env.example b/.env.example
index e278902d9..77e577564 100644
--- a/.env.example
+++ b/.env.example
@@ -30,6 +30,15 @@ ZAI_API_KEY=
# Coding Plan API key: https://modelstudio.console.alibabacloud.com/ap-southeast-1/?tab=globalset#/efm/coding_plan
BAILIAN_API_KEY=
+# -----------------------------------------------------------------------------
+# Platform admin password (REQUIRED for `make minikube-setup`)
+# -----------------------------------------------------------------------------
+# One value, two logins:
+# - Control UI → username `admin`
+# - Desktop App → the seeded user
+# No default ships. Setup aborts in Step 1 if this is unset.
+ADMIN_PASSWORD=
+
# -----------------------------------------------------------------------------
# MCP Server Credentials
# -----------------------------------------------------------------------------
diff --git a/scripts/e2e/seed-e2e-data.sh b/scripts/e2e/seed-e2e-data.sh
index fbb3a4777..cb4c3d92d 100755
--- a/scripts/e2e/seed-e2e-data.sh
+++ b/scripts/e2e/seed-e2e-data.sh
@@ -266,7 +266,10 @@ if [ "$CONTEXT_OK" -ne 1 ]; then
fi
ok "Context '$CONTEXT' is in the non-prod allowlist"
-if [ -z "$ADMIN_PASSWORD" ] && is_minikube_context; then
+# Only the e2e seed profile gets a known default. The minimal profile requires
+# the user to supply ADMIN_PASSWORD (full-setup.sh Step 1), so no default
+# password ships. :274 below still hard-fails when neither applies.
+if [ -z "$ADMIN_PASSWORD" ] && is_minikube_context && [ "${SEED_PROFILE:-e2e}" = "e2e" ]; then
ADMIN_PASSWORD="$(printf '%s%s' 'changeme123' '!')"
DESKTOP_LOGIN_CREDENTIAL="$ADMIN_PASSWORD"
fi
diff --git a/scripts/minikube/full-setup.sh b/scripts/minikube/full-setup.sh
index 664066425..f0eb0d4d8 100755
--- a/scripts/minikube/full-setup.sh
+++ b/scripts/minikube/full-setup.sh
@@ -336,6 +336,22 @@ if ! command -v python3 &>/dev/null; then
fi
ok "python3 is available"
+# Fail here, not at Step 10. Image builds dominate a 5-10 min first run
+# (README.md:178); aborting after them for a missing .env line is hostile.
+if [ "$SEED_PROFILE" = "minimal" ] && [ -z "${ADMIN_PASSWORD:-}" ]; then
+ err "ADMIN_PASSWORD is not set."
+ err ""
+ err " This is your Control UI admin password AND your Desktop App login."
+ err " Set it in .env at the project root:"
+ err ""
+ err " ADMIN_PASSWORD=<choose-a-password>"
+ err ""
+ err " No default password ships with Evenfire. For the E2E fixture profile"
+ err " (which pins a known test password), run: make minikube-setup-e2e"
+ exit 1
+fi
+ok "ADMIN_PASSWORD is set"
+
# ======================================================================
# Step 2: Cluster
# ======================================================================
@@ -974,7 +990,8 @@ else
fi
SEED_USER_EMAIL="${CLERUM_SEED_USER_EMAIL:-${CLERUM_TEST_USER_EMAIL:-${E2E_DEV_LOGIN_EMAIL:-${SEED_USER_DEFAULT_EMAIL}}}}"
log "Seeding test user ${SEED_USER_EMAIL} → agent=chatllm, context=context1"
-if CONTEXT="${PROFILE}" ADMIN_PASSWORD="changeme123!" \
+if CONTEXT="${PROFILE}" ADMIN_PASSWORD="${ADMIN_PASSWORD}" \
+ SEED_PROFILE="${SEED_PROFILE}" \
E2E_DEV_LOGIN_EMAIL="${SEED_USER_EMAIL}" \
bash "${SCRIPT_DIR}/seed-test-data.sh" 2>&1 | tail -15; then
ok "Test user seeded"