Skip to content

Release 5.0.0: stricter proxy header handling; deprecate legacy engine - #37

Merged
un33k merged 7 commits into
mainfrom
fix/header-hardening
Nov 29, 2026
Merged

un33k merged 7 commits into
mainfrom
fix/header-hardening

Conversation

@un33k

@un33k un33k commented Nov 29, 2026

Copy link
Copy Markdown
Owner

Release 5.0.0.

Reported by Sang Nguyen (sangn6767@gmail.com).

  • Stricter handling of malformed proxy header values (modern engine).
  • Breaking: with proxy_count / proxy_list set, only the first header present (by precedence) is used; lower headers are no longer consulted, and empty or non-IP entries keep their position in the chain. Pass a precedence naming the header your proxies write.
  • Header spellings are decided together: a dashed name beats an underscore one, disagreeing spellings make the header unusable, and REMOTE_ADDR / HTTP_* server variables cannot be replaced by a client header.
  • Deprecate the legacy engine (algorithm="legacy" / LegacyIpWare): it emits a DeprecationWarning and will be removed in a future major release.

Checks: 217 unit tests and the frozen v3 suite pass, ruff clean.

🚀 Generated with Dojo ⛩️

@un33k
un33k merged commit 4622f5c into main Nov 29, 2026
15 checks passed
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage is 98.954% — fix/header-hardening into main. No base build found for main.

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.

2 participants