Configuration
Server settings live in server/.env. Start from .env.example. With Docker, quickstart.sh creates .env with random secrets on the first run.
Server variables
| Variable | Required | Default | Purpose |
|---|---|---|---|
POSTGRES_PASSWORD | Yes | database password (also used by docker-compose.yml) | |
ATTESTYX_ADMIN_PASSWORD | Yes | dashboard sign-in | |
ATTESTYX_SESSION_SECRET | Yes | signs dashboard sessions (32+ random bytes) | |
ATTESTYX_ENROLL_TOKEN | Yes | token laptops use to enrol | |
ATTESTYX_PORT | 8800 | dashboard and API port | |
ATTESTYX_DATABASE_URL | full PostgreSQL URL (overrides host / port) | ||
ATTESTYX_DB_HOST, ATTESTYX_DB_PORT | 127.0.0.1, 55432 | database location | |
ATTESTYX_SECURE_COOKIES | off | set to 1 when served over HTTPS | |
ATTESTYX_STEP_MODEL | models/current | step model folder, or off | |
ATTESTYX_INJECTION_MODEL | on | off disables the injection detector | |
ATTESTYX_MODEL_CLUES | all | which model clues may raise severity (off = evidence only) | |
ATTESTYX_MODEL_THREADS | 1 | CPU threads per model | |
ATTESTYX_ASKED_SEND, _DISCARD, _TRANSFER, _DELETE | low | severity for actions the developer explicitly asked for | |
ATTESTYX_ASKED_ACCESS | medium | severity for asked-for actions that change access (for example adding an SSH key) |
Notes
- The dashboard listens on
127.0.0.1:8800only. Serve it to laptops through a reverse proxy with TLS and setATTESTYX_SECURE_COOKIES=1. - Without the model files, each model layer switches itself off and Attestyx runs on rules and trails alone.
- For how the
ATTESTYX_ASKED_*settings affect alerts, see "Asked for" actions. - For the model settings, see Models.
Collector variables
| Variable | Default | Purpose |
|---|---|---|
ATTESTYX_HOME | ~/.attestyx | data directory; the local store is attestyx.db (SQLite, mode 0600) |
ATTESTYX_LOG | log level, for example debug |
The collector's server address and device key are set once with attestyx enroll --server URL --token T. See Laptop collector.