Skip to content

Relay trusted proxies - #98

Merged
buffrr merged 2 commits into
mainfrom
relay-trusted-proxies
Aug 30, 2026
Merged

Relay trusted proxies#98
buffrr merged 2 commits into
mainfrom
relay-trusted-proxies

Conversation

@buffrr

@buffrr buffrr commented Aug 30, 2026

Copy link
Copy Markdown
Member

No description provided.

buffrr added 2 commits August 30, 2026 17:20
Add --trusted-proxy (repeatable / CERTRELAY_TRUSTED_PROXIES, IP or CIDR).
When set, the --remote-ip-header value is only honored for connections
whose socket peer falls in a trusted range — so a directly-reachable
origin can't be used to spoof e.g. cf-connecting-ip past the per-IP rate
limits. When unset (default), the header is trusted from any peer, so
existing relays that rely on a Cloudflare-only firewall are unaffected.
Add --rate-limit-allow (repeatable / CERTRELAY_RATE_LIMIT_ALLOW, exact
IPs). Listed IPs skip every per-IP rate limiter and don't consume a
token, so they can't be starved. The match is against the resolved
client IP, so behind a proxy it inherits --trusted-proxy
spoof-resistance. Empty (default) = everyone is limited, unchanged.
@buffrr buffrr changed the title Peek endpoint + Relay trusted proxies Relay trusted proxies Aug 30, 2026
@buffrr
buffrr merged commit 21a435f into main Aug 30, 2026
4 checks passed
@buffrr
buffrr deleted the relay-trusted-proxies branch August 30, 2026 15:23
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.

1 participant