Repository navigation
Update documentation of TRUSTED_PROXY syntax and document limitations. - #9283
Merged
Merged
Conversation
yuchenshi
force-pushed
the
trusted-proxy-docs
branch
from
September 10, 2026 04:30
bf37a27 to
d2a24f3
Compare
Alkarex
reviewed
Sep 10, 2026
|
|
||
| You may alternatively pass a `TRUSTED_PROXY` environment variable in a format compatible with [Apache’s `mod_remoteip` `RemoteIPInternalProxy`](https://httpd.apache.org/docs/current/mod/mod_remoteip.html#remoteipinternalproxy). | ||
| You may alternatively pass a `TRUSTED_PROXY` environment variable, which is a space-separated list of CIDR notations like this: `192.168.1.10/32 ::1/128`. | ||
| Unlike [Apache’s `mod_remoteip` `RemoteIPInternalProxy`](https://httpd.apache.org/docs/current/mod/mod_remoteip.html#remoteipinternalproxy) syntax, domain names or a single IP missing a `/32` or `/128` suffix is not supported and will silently cause requests to be rejected as unauthorized. |
Member
There was a problem hiding this comment.
It could be worth checking if we could easily support the missing part of the syntax
Contributor
Author
There was a problem hiding this comment.
As mentioned in another thread, #9301 adds single IPs, which is relatively straightforward. I've adjusted the PR accordingly since it is now merged.
Supporting domain names is a bit more involved, see #9289, which is not yet merged. So I've just documented the existing limitation assuming we're not merging #9289 any time soon.
Single IPs are now supported as of FreshRSS#9301. Document the existing limitation of domain names, see FreshRSS#9210.
Single IPs are now supported as of FreshRSS#9301. Document the existing limitation of domain names, see FreshRSS#9210.
yuchenshi
force-pushed
the
trusted-proxy-docs
branch
from
September 28, 2026 04:02
d2a24f3 to
a794458
Compare
Member
|
Thanks :-) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #9210
Changes proposed in this pull request:
TRUSTED_PROXYsyntax.How to test the feature manually:
For IPs without
/, I manually tested the behavior and found requests got rejected on my server before #9301. After #9301 is merged, I've tested again and found that requests are now authorized as expected. So I've updated the corresponding documentation to say "IPs or ranges" where applicable.Domain names are still silently ignored as of writing. I looked at the code, as described in #9210 investigation steps, and concluded that they are WAI (working as implemented , not sure if intended ). I don't particularly like the existing behavior (failures with no debuggable warnings or logs) but I try to document it as-is without judgement.
Pull request checklist:
Additional information can be found in the documentation.