mirror of
https://github.com/Kynde/airc.git
synced 2026-10-20 08:31:38 +02:00
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.