Skip to content

Select the first valid & non-private IP from x-forwarded-for header#519

Merged
hansott merged 6 commits intomainfrom
x-forwarded-for
Feb 7, 2025
Merged

Select the first valid & non-private IP from x-forwarded-for header#519
hansott merged 6 commits intomainfrom
x-forwarded-for

Conversation

@hansott
Copy link
Member

@hansott hansott commented Feb 7, 2025

No description provided.

@codecov
Copy link

codecov bot commented Feb 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@hansott hansott merged commit 2623c27 into main Feb 7, 2025
11 checks passed
@hansott hansott deleted the x-forwarded-for branch February 7, 2025 16:02
hansott added a commit that referenced this pull request Feb 17, 2025
* 'main' of github.com:AikidoSec/node-RASP: (21 commits)
  Remove double middleware inclusion in sample app
  Improve allowed ip addresses test
  Add comment
  Rename to allowedIPAddresses
  Add comments
  Rename allowedIP to bypassedIP
  Do not merge allowed ip addresses
  Fix import with SyntheticDefaultImports enabled
  Add comment
  Fix static files detected as secret
  Add some comments to the X-Forwarded-For function for the future
  Suppresses type errors for optional dependencies (#521)
  Select the first valid & non-private IP from x-forwarded-for header (#519)
  Split test file
  Add test
  Do not block private ip addresses
  Rename to onlyAllowedIPAddresses
  Add comment, fix import
  Add e2e tests
  Fix typo
  ...
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.

3 participants