- Reject images over 24 MP before full decode (decodeImageBounded) so a
small PNG declaring huge dimensions cannot OOM the RPi Zero via the
public thumbnail route or the resize handler
- Graceful shutdown on SIGINT/SIGTERM with a 10s drain so the SQLite DB
closes cleanly on deploys
- Set the Secure flag on the csrf cookie (same isHTTPS rule as the
session cookie); csrfToken is now a *Server method
- Add handlers_test.go: auth, login, CSRF, upload serving (traversal +
forced attachment), and decompression-bomb coverage
- Track remaining work (CSP unsafe-inline removal) in plan.md
Co-Authored-By: Claude Fable 5 <[email protected]>