-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Security authn via netty channel validator #95112
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
albertzaharovits
merged 94 commits into
elastic:main
from
albertzaharovits:security-early-authn-with-header-validator
May 4, 2023
Merged
Changes from all commits
Commits
Show all changes
94 commits
Select commit
Hold shift + click to select a range
ed31653
WIP
albertzaharovits 9aeb5ce
SecurityNetty4HttpServerTransportTests
albertzaharovits c91a3dd
test compilation fixes
albertzaharovits 63c82a2
Merge branch 'main' into security-early-authn-with-header-validator
albertzaharovits d9726ab
Renames
albertzaharovits fa45926
Authn new way
albertzaharovits f4ec4c6
Nits
albertzaharovits a6093e0
Merge branch 'main' into security-early-authn-with-header-validator
albertzaharovits 22eda88
Step 1
albertzaharovits 751976f
Step 2
albertzaharovits 1b33bce
Remove ActionType
albertzaharovits fec44e9
Fix SecurityRestFilterWarningHeadersTests
albertzaharovits a0e644a
Merge branch 'simplify-security-error-response' into security-early-a…
albertzaharovits 322f4e9
Remove AuthenticationService from SecurityRestFilter
albertzaharovits 6cee039
Fix error response code
albertzaharovits 7ae2a7f
Fix LoggingAuditTrailTests
albertzaharovits e2dc713
Merge branch 'main' into security-early-authn-with-header-validator
albertzaharovits 0c8a5d8
Fix/remove tests from SecurityRestFilterTests
albertzaharovits 3324f8d
introduce HttpHeadersValidationException
albertzaharovits b2092cd
Merge branch 'main' into security-early-authn-with-header-validator
albertzaharovits 657ccdb
Rename nit
albertzaharovits 1ecda85
Register the exception
albertzaharovits d60e079
RestResponse from unwrapped request
albertzaharovits 0875625
Nit, remove populatePerRequestThreadContext
albertzaharovits 7f62690
authenticateMessage refactoring
albertzaharovits 02d0e7c
Merge branch 'main' into security-early-authn-with-header-validator
albertzaharovits 7ab0586
Comments
albertzaharovits 65665fb
RemoteHostHeader
albertzaharovits 5e82354
NOOP validator rename
albertzaharovits 887b9a1
Some javadocs
albertzaharovits 7ce4182
Nits
albertzaharovits 6dc4d9d
Spotless nit
albertzaharovits ffd158b
Some Netty4HttpServerTransportTests
albertzaharovits 78e4dd8
RestControllerTests
albertzaharovits 7e5e59f
HttpHeadersValidatorTests
albertzaharovits 01a693c
nit
albertzaharovits cfc2351
Merge branch 'main' into security-early-authn-with-header-validator
albertzaharovits 78d87ed
Javadocs
albertzaharovits 69621ef
Netty4HttpServerTransportTests with populatePerRequestThreadContext
albertzaharovits 99adc9b
Update docs/changelog/95112.yaml
albertzaharovits 5638376
Merge branch 'main' into security-early-authn-with-header-validator
albertzaharovits 5629965
Move VALIDATE_EVERYTHING_VALIDATOR
albertzaharovits fe7a775
Drop "Context" from "ValidationResultContext"
albertzaharovits 367c24a
Spotless
albertzaharovits 2586e17
More comments
albertzaharovits f67f4a6
testValidationErrors
albertzaharovits 3e86621
Remove TriConsumer
albertzaharovits b0c8f17
static HttpHeadersUtils
albertzaharovits 8564168
Remove ValidationResult
albertzaharovits ae451ed
Rename ValidatableHttpHeaders to HttpHeadersWithValidationContext
albertzaharovits be70664
Rename markAsSuccessfullyValidated to addValidationContext
albertzaharovits 50ce1ed
Nit
albertzaharovits 10b38b7
Nit, remove NOOP_VALIDATOR
albertzaharovits 41cd269
move authentication==null logging
albertzaharovits b847e39
Remove stash before authentication
albertzaharovits e6d7428
Revert "Remove stash before authentication"
albertzaharovits 32a5331
Remove stash with newStoredContext
albertzaharovits e7e15fd
Move "newStoredContext" and "contextPreservingListener" to
albertzaharovits 22d90c3
Merge branch 'main' into security-early-authn-with-header-validator
albertzaharovits a1eadee
Spotless
albertzaharovits 509fc1b
Nit
albertzaharovits 6e86d20
Leave out context from validation
albertzaharovits 9c76679
Merge branch 'main' into security-early-authn-with-header-validator
albertzaharovits 32e97d1
Nit
albertzaharovits 1a6f85d
Netty4HttpHeaderThreadContextTests
albertzaharovits bdd31cc
Merge branch 'main' into security-early-authn-with-header-validator
albertzaharovits ae3e332
There can be response headers on the transport thread context
albertzaharovits 1053dce
Remove if != default context in authentication
albertzaharovits 57b6585
Spotless
albertzaharovits 625e56c
Rename some validation to authentication
albertzaharovits 3b6e734
validation -> authentication rename fallout in tests
albertzaharovits b6b6383
Merge branch 'main' into security-early-authn-with-header-validator
albertzaharovits 5f7dae8
Fix merge fallout
albertzaharovits 14be805
Merge branch 'main' into security-early-authn-with-header-validator
albertzaharovits aa6ae60
Merge branch 'main' into security-early-authn-with-header-validator
albertzaharovits d2b363d
validator for Netty4HttpHeaderValidator in internal package
albertzaharovits c7eeba1
Authenticator in separate package
albertzaharovits b411dbe
Standalone HttpHeadersWithAuthenticationContext in http.netty4.authen…
albertzaharovits 31be670
Nit
albertzaharovits 7de6f79
Nit
albertzaharovits 429def6
8.9
albertzaharovits 4181d79
Merge branch 'main' into security-early-authn-with-header-validator
albertzaharovits df8392d
Response stack trace tests
albertzaharovits 2197964
testResponseHeadersFiltering
albertzaharovits d170c6b
Minor refactoring of Netty4HttpServerTransportTests
albertzaharovits ffa4f24
Merge branch 'main' into security-early-authn-with-header-validator
albertzaharovits 920f1fc
Nit
albertzaharovits 815e523
testMultipleValidationsOnTheSameChannel
albertzaharovits b524b7c
IMPEX
albertzaharovits 2b73b71
Replace Supplier<Netty4HttpHeaderValidator> with HttpValidator
albertzaharovits d143282
testAuthnContextWrapping
albertzaharovits e8da155
Merge branch 'main' into security-early-authn-with-header-validator
albertzaharovits 0d03f6e
Nits
albertzaharovits 36d1a88
only assert don't log null authentication
albertzaharovits 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 95112 | ||
summary: Header validator with Security | ||
area: Authentication | ||
type: enhancement | ||
issues: [] |
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.