Adopt multi-token auth across docs, UI, and tooling

This commit is contained in:
rcourtman 2025-10-14 15:47:49 +00:00
parent 86b44bbed3
commit 261bd7ac74
18 changed files with 274 additions and 275 deletions

View file

@ -11,6 +11,11 @@ NC='\033[0m'
MODE="full"
API_TOKEN="${API_TOKEN:-}"
# Allow new multi-token env var to provide the test credential
if [ -z "$API_TOKEN" ] && [ -n "${API_TOKENS:-}" ]; then
# Use the first token in the comma-separated list
API_TOKEN="$(printf '%s\n' "$API_TOKENS" | tr ',' '\n' | head -n1)"
fi
PULSE_URL="${PULSE_URL:-http://localhost:7655}"
FAILED=0
PASSED=0
@ -139,4 +144,4 @@ else
echo -e "${YELLOW}⚠️ Some tests failed. Check logs in /tmp/${NC}"
echo -e "${BLUE}Note: Your production nodes were protected during testing${NC}"
exit 1
fi
fi