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

VariableRequiredDefaultPurpose
POSTGRES_PASSWORDYesdatabase password (also used by docker-compose.yml)
ATTESTYX_ADMIN_PASSWORDYesdashboard sign-in
ATTESTYX_SESSION_SECRETYessigns dashboard sessions (32+ random bytes)
ATTESTYX_ENROLL_TOKENYestoken laptops use to enrol
ATTESTYX_PORT8800dashboard and API port
ATTESTYX_DATABASE_URLfull PostgreSQL URL (overrides host / port)
ATTESTYX_DB_HOST, ATTESTYX_DB_PORT127.0.0.1, 55432database location
ATTESTYX_SECURE_COOKIESoffset to 1 when served over HTTPS
ATTESTYX_STEP_MODELmodels/currentstep model folder, or off
ATTESTYX_INJECTION_MODELonoff disables the injection detector
ATTESTYX_MODEL_CLUESallwhich model clues may raise severity (off = evidence only)
ATTESTYX_MODEL_THREADS1CPU threads per model
ATTESTYX_ASKED_SEND, _DISCARD, _TRANSFER, _DELETElowseverity for actions the developer explicitly asked for
ATTESTYX_ASKED_ACCESSmediumseverity for asked-for actions that change access (for example adding an SSH key)

Notes

Collector variables

VariableDefaultPurpose
ATTESTYX_HOME~/.attestyxdata directory; the local store is attestyx.db (SQLite, mode 0600)
ATTESTYX_LOGlog 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.