-
Notifications
You must be signed in to change notification settings - Fork 5.1k
xff: add support for configuring a list of trusted CIDRs #31831
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
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
70893bc
api: Add trusted CIDRs to XFF config
jamesog 37f82b8
http: Utility functions for parsing XFF by CIDR
jamesog 5f390fd
xff: Allow parsing XFF using trusted CIDRs
jamesog 831057e
docs: Note about xff_trusted_cidrs.
jamesog b32b10d
changelog: Document xff trusted CIDR addition
jamesog b37899d
Format fixes
jamesog 34e7d33
Fix spell check issues
jamesog 61ade56
api: Remove use of oneof in XffConfig
jamesog 0cf5c6c
xff: Remove unused constructor
jamesog 4c0ff3f
Spelling: quote symbols
jamesog d9f1a64
Autoformat
jamesog 5842f38
Merge remote-tracking branch 'upstream/main' into xff_trusted_cidrs
jamesog 2c95c9f
api: Remove unused import
jamesog a016a6c
http: Use last address in XFF when all are trusted
jamesog eb2f7ff
api: Note about n*m operation with xff_trusted_cidrs
jamesog 1f76584
api: Clarify when recurse may want to be used
jamesog 994d4be
Merge remote-tracking branch 'upstream/main' into xff_trusted_cidrs
jamesog ebb1391
http: Use clearer variable name
jamesog d976354
xff: Throw error when setting both options
jamesog 666757e
hcm: Support returning whether to append XFF
jamesog 4193f48
docs: Add examples for xff_trusted_cidrs
jamesog a587a23
hcm: Only treat as internal when XFF has a single address
jamesog 06eccf5
api: Use bool for explicitly false defaults
jamesog 87bf560
docs: Apply suggestion from Matt
jamesog 2c15af4
hcm: Append XFF in original IP detection, add tests
jamesog 901335a
Merge remote-tracking branch 'upstream/main' into xff_trusted_cidrs
jamesog 6833c32
xff: Fix bool usage after proto change
jamesog 26756eb
test: Fix getXFFExtension usage
jamesog 6671ece
api: Move N*M comment
jamesog 5ed4660
Merge remote-tracking branch 'upstream/main' into xff_trusted_cidrs
jamesog c69df1c
xff: xff_trusted_cidrs should take precedence
jamesog eab825a
Merge remote-tracking branch 'upstream/main' into xff_trusted_cidrs
jamesog 9cfe9d6
xff: Unwrap Network::Address::CidrRange
jamesog 774cacc
xff: Remove recurse option, fail on invalid XFF entry
jamesog 5c2cbf2
hcm: Factor out code to append to XFF
jamesog e4ff49e
xff: Rename append_xff to skip_xff_append
jamesog e2fdae2
Merge remote-tracking branch 'upstream/main' into xff_trusted_cidrs
jamesog 9a625aa
xff: Use getForwardedForValue
jamesog 0267706
hcm: Test empty XFF header value
jamesog 3dd64cc
xff: Remove internal/loopback constraint
jamesog a9432b4
Merge remote-tracking branch 'upstream/main' into xff_trusted_cidrs
jamesog bfaa8b3
hcm: Style fix
jamesog 1055b01
xff: Restrict XFF header to 20 entries
jamesog 7721581
hcm: Address feedback
jamesog 837cd5f
Merge remote-tracking branch 'upstream/main' into xff_trusted_cidrs
jamesog a80178e
xff: Set skip_xff_append to true by default
jamesog aec2db5
hcm: Use absl::InlinedVector
jamesog 57baab7
xff: Revert c69df1c556e4d71dee0ad7460261eefb6df5a58d
jamesog 7344aa8
Merge remote-tracking branch 'upstream/main' into xff_trusted_cidrs
jamesog 277fefd
Merge remote-tracking branch 'upstream/main' into xff_trusted_cidrs
jamesog 91903c9
xff: Don't use smart pointer
jamesog File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.