Add `TRUSTED_PROXY_NETWORKS` config option

feat: add `TRUSTED_PROXY_NETWORKS` config option
Add `TRUSTED_PROXY_NETWORKS` config option7af614-feat-add-trusted-proxy-networks-config-option-cve-2026-21881featadd trusted proxy networks config option

Committed by fguillot

commit message
feat: add `TRUSTED_PROXY_NETWORKS` config option

Add an IP-based allow list to prevent spoofing of HTTP headers that
should only be set by trusted reverse proxies.
 
Note that `TRUSTED_PROXY_NETWORKS` must be configured when
`REVERSE_PROXY_AUTH` is enabled.

Editor assessment

This commit patches CVE-2026-21881. `feat: add TRUSTED_PROXY_NETWORKS config option` names the exact configuration key, and the body supplies the motivation the subject cannot: an IP allow list stops spoofing of HTTP headers that only a trusted reverse proxy should set. It closes with the operational warning that the option must be configured whenever REVERSE_PROXY_AUTH is enabled, which is the kind of consequence a deployer needs before upgrading. Type `feat` is defensible because this adds a new setting, though a reader might have expected `fix` for security hardening. No scope is present and the body is three sentences, so this is good rather than exemplary; the migration caveat lifts it above thin.

Browse categories

More feat examples · Back to search