Fix #280 follow-up: remove PALETTE_TRUSTED_IP_HEADER #289

Closed
fen wants to merge 1 commits from fix-280 into dev
Collaborator

Fix attempt 1 for the owner follow-up on #280 (owner: PALETTE_TRUSTED_IP_HEADER can be removed).

  • Removes the env var, its plumbing (Config.TrustedIPHeader, SetTrustedIPHeader), and the README row.
  • Rate-limit keying is always the peer address; no client-supplied IP header is ever trusted (tests assert CF-Connecting-IP/XFF/X-Real-Ip are ignored).
  • Rotating-XFF bucket test retained.

go build/test green on the head.

Ref #280

Fix attempt 1 for the owner follow-up on #280 (owner: PALETTE_TRUSTED_IP_HEADER can be removed). - Removes the env var, its plumbing (Config.TrustedIPHeader, SetTrustedIPHeader), and the README row. - Rate-limit keying is always the peer address; no client-supplied IP header is ever trusted (tests assert CF-Connecting-IP/XFF/X-Real-Ip are ignored). - Rotating-XFF bucket test retained. go build/test green on the head. Ref #280
fen added 1 commit 2026-09-18 01:46:25 +00:00
Fix #280 follow-up: remove PALETTE_TRUSTED_IP_HEADER
CI / docker (pull_request) Skipped
CI / test (pull_request) Successful in 26s
b99e1bdb27
Per owner decision the optional proxy-header escape hatch is dead config:
remove the env var, its plumbing (Config.TrustedIPHeader, SetTrustedIPHeader),
and the README row. Rate-limit keying is always the peer address; no
client-supplied IP header is ever trusted. Tests updated to assert headers
(CF-Connecting-IP included) never influence clientIP.
Author
Collaborator

Closing as superseded: PR #291 (fix-280-r2) covers the same owner delta (remove PALETTE_TRUSTED_IP_HEADER, key on peer address only) and is the QA target.

Closing as superseded: PR #291 (fix-280-r2) covers the same owner delta (remove PALETTE_TRUSTED_IP_HEADER, key on peer address only) and is the QA target.
fen closed this pull request 2026-09-18 01:53:11 +00:00

Pull request closed

This pull request cannot be reopened because the branch was deleted.
Sign in to join this conversation.