Skip to content

v1.2.1

Choose a tag to compare

@github-actions github-actions released this 23 Aug 10:47
· 28 commits to main since this release

Security

  • Fixed a trust-model asymmetry introduced by the 1.2.0 rate limiting/lockout
    and Secure-cookie work: clientIP never trusted X-Forwarded-For, but
    isSecureRequest unconditionally trusted X-Forwarded-Proto. Behind a
    reverse proxy (Traefik, nginx, a cloud load balancer, ...) every request
    shares the proxy's address, which collapsed the per-IP global/login rate
    limiters and the (username, IP) lockout onto one bucket for every client -
    reopening the exact targeted-lockout gap migration 0002 closed, and
    making the global/login limiters into a self-inflicted denial of service.
    Both headers are now gated together on the same decision: off by default
    (today's safe behavior), or trusted from addresses listed in the new
    --trusted-proxies flag. See the Hardening doc.
  • The global rate limiter no longer wraps /static/: a single page load
    pulls in several static assets alongside the dynamic request, so counting
    them against the same per-IP burst as the rest of the app could exhaust it
    before a real request was served.