Rate limits and abuse controls

Traffic protections

Enforced per route, per user, and per IP with configurable burst windows. Defaults below; operators can tune them.

Global25,000 / 60s, burst 5,000
Per user10,000 / 60s, burst 2,500
Per IP5,000 / 60s, burst 1,500
Hourly (user)300,000
Daily (user)5,000,000
API prefixapi_prefix = /api/v1
Gateway and opcodes

WebSocket gateway

Connect to the WebSocket gateway at /gateway (not /ws). Server-side cache management broadcasts RATCHET_UPDATE (opcode 50) when a channel key rotates.

Configuration keys and startup validation

Key configuration

Key sources are resolved from an environment variable, an HSM/TPM vault, or a local keyring, in that order of preference.

System keyPLEXICHAT_SYSTEM_KEY
Media KEKPLEXICHAT_MEDIA_KEY
Hostserver.host
TLStls
Voice SFUvoice.sfu_backend=aiortc
Ratchet licencechannel_ratchet_encryption

On boot the server validates every configured KEK and refuses to start on a weak key. Bounds: 32–64 bytes, entropy ≥ 7.0 bits/byte, weak-pattern blocklist, passphrases via Argon2/PBKDF2, true-random only.

OAuth 2.0 endpoints

PKCE login

Media, presence, and RBAC

Endpoints and scopes

Infrastructure versions and endpoints

Current versions

Postgres18-alpine
Valkey9.1.1
Python3.14
Gateway/gateway
ReadinessGET /api/v1/ready
HealthGET /api/v1/health