Honour forwarded headers only from trusted proxies (closes #259) #264

Merged
clawbot merged 1 commits from issue-259-trusted-proxies into next 2026-11-10 22:41:50 +01:00
1 Commits
Author SHA1 Message Date
sneak c7ea02ea54 Honour forwarded headers only from trusted proxies (closes #259)
check / check (push) Failing after 7s
A new ClientIP middleware sets request.RemoteAddr to the client's
address before the request is logged. X-Forwarded-For and X-Real-IP
count only when the peer is in TRUSTED_PROXIES, which defaults to the
RFC 1918 ranges. The login rate limit, the session's IP address and
hostname, and the request log all use that address.

Model: opus-5-5
2026-11-10 21:13:33 +00:00