mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
Derive the header-login source IP from the real TCP socket peer instead of the spoofable X-Forwarded-For header, fail closed when the trusted-IP allowlist is unset, and add opt-in multi-proxy support via HEADER_LOGIN_TRUSTED_PROXIES (honor XFF only from a trusted proxy peer, taking the right-most untrusted hop). Propagate the new env vars across docker-compose, start-wekan.sh/.bat, Dockerfile, .devcontainer, snap config and the virtualbox script; add docs and regression tests. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>