Files
harpia/.env.example
T
Lucas RayanandClaude Opus 5.5 90ece32dac feat(api): require an admin token for configuration changes
Group CRUD decides what the scanner sweeps, yet any client that reached the
API could change it. Writes now need XEXEU_ADMIN_TOKEN (or a token generated
at startup and printed as a ?token= link, like sabia ui), compared in
constant time, and a browser Origin must match Host. The dashboard keeps the
token for the tab and asks for it on 401. Reads are unchanged.

Also track .env.example: '.env*' in .gitignore had kept it out of the
repository, although the README tells operators to copy it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 10:17:14 -03:00

12 lines
593 B
Bash

# Xexéu image tag: latest (last release), X.Y.Z / X.Y (pinned), or edge (main).
XEXEU_VERSION=latest
# Host address and port of the dashboard. Keep it on loopback unless an
# authenticating reverse proxy sits in front of it.
XEXEU_PUBLISH=127.0.0.1:8788
# Admin token for the dashboard actions that change the configuration (group
# CRUD). At least 16 characters, e.g. `openssl rand -hex 32`. Empty: a new one
# is generated at each start and printed in `docker compose logs xexeu`.
XEXEU_ADMIN_TOKEN=
# Xexéu container image repository.
XEXEU_IMAGE=git.lucasrguerra.dev.br/ciberfauna/xexeu