- security headers on every response (strict CSP, nosniff, frame DENY,
no-referrer, HSTS behind TLS proxy) and no x-powered-by; hero image set
through the CSSOM so the CSP needs no inline styles
- error handler: 400 without stack trace for malformed URLs/JSON and multer
errors, 500 logged in full
- image uploads: type detected from the file signature (PNG/JPEG/WebP), not
the client MIME type; multer part limits
- storage: atomic JSON writes (tmp + rename) with mode 600, dirs 700; refuse
to start when groups.json is corrupted instead of recreating admin; initial
admin password written to a 600 file instead of the logs
- status file read asynchronously in the background and cached, one read at
a time with a 3 s timeout, so a hung NFS mount never blocks requests;
cleanup refused when the status is stale or empty
- launches: 10 min cooldown after a successful start (status lags behind),
ssh BatchMode/ConnectTimeout/IdentitiesOnly, remote stdout/stderr kept in
the server log instead of the API response
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- limit login attempts per IP (5 per 15 min by default, counted before the
password check so parallel requests cannot exceed it), 429 + Retry-After,
failed logins logged with the client IP
- TRUSTED_PROXIES env to honour X-Forwarded-For from the reverse proxy only
- changing or regenerating a group password closes that group's other
sessions; deleting a group closes all of its sessions
- new group passwords: 12 to 256 characters and not shared with another
group (login opens the first matching group)
- PATCH /groups/:id/password no longer echoes the password
- purge expired sessions every 10 minutes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- npm audit fix (multer 2.5.0, body-parser, qs, proxy-addr): 0 vulnerabilities
- engines node >=22.9 and .nvmrc (prod runs Node 26)
- GET /healthz for deployment checks
- workflow: check job (npm ci, npm test, npm audit) on every push; deploy only
on main after checks, with pinned host key, BatchMode and exact commit SHA
- ops/deploy-gameservers-control.sh: lock, refuse dirty tree, fast-forward to
the commit, npm ci --omit=dev, wait for /healthz, roll back on failure
- stop tracking storage/servers.json (prod storage now lives outside the repo)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>