Files
airc/tools
Tommi Kyntola 22e5fdc41a Harden token hygiene, auth, and response headers
Security pass over the tmux remote. The control token grants shell input,
so the focus is keeping it off disk in cleartext and tightening the auth gate.

- Redact ?k= and "token":"..." values in all server log output, and write
  config.json / log / state files with 0600 perms (they hold the token).
- Require an auth token for /healthz, removing the proxy-spoofable
  "no X-Forwarded-For + loopback" bypass; the CLI now authenticates its probe.
- Throttle per-IP wrong-token attempts (HTTP + WS upgrade) and cap concurrent
  websockets per address.
- Warn at startup when a configured token is shorter than the generated
  strength, without ever logging the value.
- Set CSP, X-Content-Type-Options, X-Frame-Options, Referrer-Policy on every
  response, plus HSTS over https; relax CSP only for the inline-script probe.
2026-06-22 08:50:31 +03:00
..
2026-06-16 23:12:32 +03:00