Security fixes are applied to the latest release on the default branch. Older tags are not maintained unless noted in release notes.
Before exposing watchPot outside a lab network:
- TLS — Docker Compose includes nginx with a self-signed local CA by default (
https://localhost). Trustdeploy/tls/out/watchpot-local-ca.crtfor a clean browser experience, or use a real certificate in production. SetWATCHPOT_ALLOW_LOOPBACK_CORS=falsewhen internet-facing. - Secrets — Rotate the bootstrap admin password, JWT secret (
app_settings.jwt_secret), and all agent tokens after first login. - OpenAPI — Set
EXPOSE_OPENAPI=falseon the API (disables/docs,/redoc,/openapi.json). - CORS — Configure allowed origins in Settings → CORS; set
WATCHPOT_ALLOW_LOOPBACK_CORS=falsein production. - Metrics — Set
WATCHPOT_METRICS_TOKENand scrape/metricswith that bearer token; do not expose metrics publicly without auth. - Registration — Keep
allow_public_registration=false(default) unless you explicitly want open sign-up. Login and register are rate-limited per IP. - Database — Leave
POSTGRES_PASSWORDblank and the Compose stack generates one on first start, or set it yourself before that first start../setupalso generates one for the local helper database. Helper databases bind to127.0.0.1only. Do not publish Postgres or reuse a well-known password. - Agent tokens — Treat like passwords; store only in secret managers or restricted
.envfiles (never commit). - Docker socket — Agents with
docker.sockaccess can control containers on the host; isolate honeypot hosts accordingly. - Operator access — Authenticated operators can queue shell commands on pots via
docker exec; restrict UI access. - Browser sessions — Operator auth uses HttpOnly cookies plus CSRF (
X-CSRF-Token). Do not put JWTs inlocalStorage. - Public agent assets — Keep
WATCHPOT_PUBLIC_AGENT_OPENunset/false in production. Install commands include a short-lived enrollment token. Optionally setWATCHPOT_AGENT_ENROLLMENT_TOKENas a static shared secret. - Integrations — Outbound SIEM URLs cannot target loopback, link-local, or cloud metadata unless
WATCHPOT_INTEGRATION_ALLOW_LOOPBACK=true(lab).
| Component | Trust level |
|---|---|
| Operator UI + session cookie | Full control-plane access (CSRF required on mutations) |
| Agent bearer token | Pot-scoped: stacks, events, backup upload, command execution |
| Public agent install bundle | Gated by enrollment token unless WATCHPOT_PUBLIC_AGENT_OPEN=true |
| Honeypot containers | Untrusted; assume compromise |