mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-04-28 03:20:11 +00:00
Adopt multi-token auth across docs, UI, and tooling
This commit is contained in:
parent
86b44bbed3
commit
261bd7ac74
18 changed files with 274 additions and 275 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue