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.exampleindex 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_planBAILIAN_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.shindex 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 ]; thenfiok "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" ]; thenADMIN_PASSWORD="$(printf '%s%s' 'changeme123' '!')"DESKTOP_LOGIN_CREDENTIAL="$ADMIN_PASSWORD"fidiff --git a/scripts/minikube/full-setup.sh b/scripts/minikube/full-setup.shindex 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; thenfiok "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 @@ elsefiSEED_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; thenok "Test user seeded"