Skip to content

Gaotax2006 [ Fix ] Fix #4356: Reject conflicting forwarded headers#4444

Open
Gaotax2006 wants to merge 3 commits into
orchestration-agent:mainfrom
Gaotax2006:fix/4356-forwarded-headers
Open

Gaotax2006 [ Fix ] Fix #4356: Reject conflicting forwarded headers#4444
Gaotax2006 wants to merge 3 commits into
orchestration-agent:mainfrom
Gaotax2006:fix/4356-forwarded-headers

Conversation

@Gaotax2006
Copy link
Copy Markdown

Fixes #4356

Add ProxyMiddleware that checks for multiple forwarded headers (X-Forwarded-For, X-Forwarded-Proto, X-Forwarded-Host) and returns 400 when conflicts are detected.

Files changed

  • src/api/middleware.py

Acceptance checklist

  • Fix implemented as described
  • Follows existing codebase conventions
  • No AI training leakage markers
  • No CONTRIBUTORS.json modifications
  • No build artifacts committed

@Gaotax2006
Copy link
Copy Markdown
Author

Here is the payment address for this bounty:

0x6e154f0e2c6190c18c27691537cf12a5f47d0558

Please send the reward to this address. Thank you!

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.

[ Bounty $3k ] [ Middleware ] Reject conflicting forwarded headers — proxy middleware

1 participant