Skip to content

feat: adds Forwarded header to downstream MN requests + custom parsing for Forwarded headers #3871

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 24, 2025

Conversation

simzzz
Copy link
Contributor

@simzzz simzzz commented Jun 23, 2025

Description:
With app.proxy enabled, we already parse X-Forwarded-For headers correctly. Custom parsing for Forwarded headers has been added, along with passing a Forwarded header with the original client IP to the mirror node (if present). All of this was included in the tests coverage

Related issue(s):

Fixes #3772

…g for Forwarded

Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>
@simzzz simzzz requested review from a team as code owners June 23, 2025 13:21
@simzzz simzzz requested a review from acuarica June 23, 2025 13:21
@simzzz simzzz self-assigned this Jun 23, 2025
@simzzz simzzz added the enhancement New feature or request label Jun 23, 2025
@lfdt-bot
Copy link

lfdt-bot commented Jun 23, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

@simzzz simzzz added this to the 0.70.0 milestone Jun 23, 2025
Copy link

github-actions bot commented Jun 23, 2025

Test Results

 21 files   -  1  278 suites   - 22   20m 4s ⏱️ - 1m 25s
666 tests ± 0  660 ✅ ± 0  5 💤 ±0  1 ❌ ±0 
722 runs   - 40  716 ✅  - 38  5 💤 ±0  1 ❌  - 2 

For more details on these failures, see this check.

Results for commit d9e138b. ± Comparison against base commit b0c8b67.

♻️ This comment has been updated with latest results.

simzzz added 2 commits June 24, 2025 11:36
Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>
Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>
@Ferparishuertas Ferparishuertas self-requested a review June 24, 2025 13:29
Copy link

@Ferparishuertas Ferparishuertas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@simzzz simzzz merged commit 928f5c7 into main Jun 24, 2025
42 of 44 checks passed
@simzzz simzzz deleted the 3772-ip-forwarding branch June 24, 2025 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Forward client IP to downstream
4 participants