Skip to content

Fail-closed trust proxy: default TRUST_PROXY=false and test - #1265

Open
DNight-King wants to merge 2 commits into
solutions-plug:mainfrom
DNight-King:fix/trust-proxy-default-fail-closed
Open

Fail-closed trust proxy: default TRUST_PROXY=false and test#1265
DNight-King wants to merge 2 commits into
solutions-plug:mainfrom
DNight-King:fix/trust-proxy-default-fail-closed

Conversation

@DNight-King

@DNight-King DNight-King commented Jul 29, 2026

Copy link
Copy Markdown

Closes #1109


Change: default TRUST_PROXY to false so X-Forwarded-For / X-Real-IP are ignored unless TRUSTED_PROXY_CIDRS is explicitly configured.\n\nTest: adds a focused unit test asserting Config::from_env() defaults (TRUST_PROXY == false and TRUSTED_PROXY_CIDRS empty).\n\nFiles changed:\n- services/api/src/config.rs\n- services/api/tests/security_tests.rs\n\nHow to test locally:\n- cd services/api\n- cargo test trust_proxy_defaults_to_false\n\nCloses: #1109

@drips-wave

drips-wave Bot commented Jul 29, 2026

Copy link
Copy Markdown

@DNight-King Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] TRUST_PROXY defaults to true with an empty CIDR allowlist, re-enabling X-Forwarded-For spoofing out of the box

1 participant