docs: document proxy stripping requirement for TRUST_PROXY mode #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "docs/trust-proxy-hardening-note"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
X-Forwarded-Hostat the proxy, an nginx config example, and a list of exactly which headers are honored (X-Forwarded-Host,X-Forwarded-Protoonly)define()snippet so operators see the requirement at configuration time, not just in the docsMotivation
Hardening note #1 from the 2026-06-27 security audit. Not a vulnerability —
TRUST_PROXYis an explicit opt-in — but the proxy configuration requirement was undocumented and operators could enable the constant without realising the proxy must also be configured to strip the header from clients.Test plan
composer lint— clean🤖 Generated with Claude Code