-
Notifications
You must be signed in to change notification settings - Fork 25.3k
Failure Store Access Authorization #123986
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
elasticsearchmachine
merged 178 commits into
elastic:main
from
n1v0lg:read-failure-store-privilege-authz
Mar 20, 2025
Merged
Changes from all commits
Commits
Show all changes
178 commits
Select commit
Hold shift + click to select a range
0ff0bf5
WIP
n1v0lg 78170dc
More
n1v0lg 4c0d584
Moar
n1v0lg 37d5427
Merge branch 'main' into read-failure-store-privilege-role-building
n1v0lg 0789eea
Merge branch 'main' into read-failure-store-privilege-role-building
n1v0lg 9976ca1
More
n1v0lg bcd42c0
Fix
n1v0lg 6ceb401
Fix imports
n1v0lg 793215f
Merge branch 'main' into read-failure-store-privilege-role-building
n1v0lg a531e5f
More fixes
n1v0lg 2ccd969
Moar
n1v0lg 444112b
Superuser etc
n1v0lg 79d15eb
Composite role store tests
n1v0lg 125e808
Test fixes
n1v0lg 671cf70
Test fixes
n1v0lg 1988a21
Fix more
n1v0lg ffcf427
Merge branch 'main' into read-failure-store-privilege-role-building
n1v0lg c8fc1f7
Keep selector with index privilege
n1v0lg 0858cd3
Remote indices too
n1v0lg 8fcb15c
Undo docs test
n1v0lg bf3d46b
Simlify
n1v0lg 4d301c9
Cleaner selector handling
n1v0lg b03a593
Fix test
n1v0lg d0e61c1
Merge branch 'main' into read-failure-store-privilege-role-building
n1v0lg da43e54
Union
n1v0lg 8582f80
Rework IndexPrivilege#get
n1v0lg 9732f8d
Assert on names
n1v0lg 0c848e4
More clean up and TODOs
n1v0lg 83f2148
Merge branch 'main' into read-failure-store-privilege-role-building
n1v0lg fc01664
Fix and simplify
n1v0lg 79433cb
Test fixes
n1v0lg 6ae9f84
Javadoc and test fixes
n1v0lg 66ccd33
More test fixes
n1v0lg 7e1e2c0
Moar
n1v0lg 37dd755
Fix assertion
n1v0lg aae20bd
Tests
n1v0lg d434496
Merge branch 'main' into read-failure-store-privilege-role-building
n1v0lg 253f6ab
Test get privileges
n1v0lg 5922f1f
Javadoc and renames
n1v0lg 8f2eddc
Fix refactor wonkiness
n1v0lg e7fcf93
Naming so hard
n1v0lg 17855ab
Javadoc
n1v0lg 4a44748
More split tests
n1v0lg 481da2a
Tests
n1v0lg 8036ecf
FLS DLS tests
n1v0lg d470e5a
Merge branch 'main' into read-failure-store-privilege-role-building
n1v0lg 12d00b8
Merge branch 'main' into read-failure-store-privilege-role-building
n1v0lg 16668b0
Automaton and fls dls test
n1v0lg 879b2b6
Manage roles
n1v0lg 6b9640b
Merge branch 'main' into read-failure-store-privilege-role-building
n1v0lg f6b6cfb
More
n1v0lg cafd8d2
Merge branch 'main' into read-failure-store-privilege-role-building
n1v0lg c2baa5b
Fix test
n1v0lg baf63ed
Fix
n1v0lg 22b861f
Fix and more tests
n1v0lg 2bc314e
Merge branch 'main' into read-failure-store-privilege-role-building
n1v0lg 18258c1
Beef up coverage
n1v0lg cd4897b
Merge branch 'main' into read-failure-store-privilege-role-building
n1v0lg 6422450
WIP review feedback
n1v0lg 79a7fd5
More
n1v0lg 747597e
Merge branch 'main' into read-failure-store-privilege-role-building
n1v0lg b05f82b
Assert in config cluser privs
n1v0lg a603121
Merge branch 'main' into read-failure-store-privilege-role-building
n1v0lg 172141f
Tests
n1v0lg 20f4c5c
More
n1v0lg aae2ace
Merge branch 'main' into read-failure-store-privilege-role-building
n1v0lg 183cebc
Deterministic order
n1v0lg 35a9935
Merge branch 'main' into read-failure-store-privilege-role-building
n1v0lg efd11b5
WIP
n1v0lg 95d6369
Authz and test
n1v0lg fa783df
Merge
n1v0lg 126d615
Merge branch 'main' into read-failure-store-privilege-authz
n1v0lg 2a654ba
Deal with privilege ordering
n1v0lg 8b1fedb
Merge branch 'read-failure-store-privilege-authz' of github.com:n1v0l…
n1v0lg 47c30cc
Comments
n1v0lg 55c88db
Handle resources with same name different selector
n1v0lg 58e938b
WIP index resolution
n1v0lg 4456c2d
Selectors
n1v0lg a750b38
x-pack
n1v0lg df8c04d
More
n1v0lg 674277a
Fix resolvers
n1v0lg dfe957a
More
n1v0lg ba33b7c
Write tests
n1v0lg 5a81747
Merge branch 'main' into read-failure-store-privilege-authz
n1v0lg 1e33a1f
Moar
n1v0lg 2bd7437
WIP clean up tests
n1v0lg 94b71b7
Merge branch 'main' into read-failure-store-privilege-authz
n1v0lg abcb1a3
Moar
n1v0lg e555f74
More tests
n1v0lg 9aafa69
WIP clean up
n1v0lg ab87f55
Refactor but is it better
n1v0lg 1b96a23
Util
n1v0lg 776d49a
Check selector first
n1v0lg 39995f8
More
n1v0lg f76392a
Merge branch 'main' into read-failure-store-privilege-authz
n1v0lg 6b0b6c9
Inline
n1v0lg d728fd6
Fix sig
n1v0lg 2a22090
Timer
n1v0lg 375fe69
Merge branch 'main' into read-failure-store-privilege-authz
n1v0lg 365b2b8
Rework name handling
n1v0lg db2be5d
Merge branch 'main' into read-failure-store-privilege-authz
n1v0lg 28f207f
Spotless
n1v0lg 084ac8c
More tests
n1v0lg d8ed014
Toss supplier
n1v0lg be718df
Moar
n1v0lg 400a1f7
Fix
n1v0lg fb599ca
Prevent privilege checks
n1v0lg 79d50be
Null check
n1v0lg 0c4ec24
WIP unit tests
n1v0lg c8205fb
Fix
n1v0lg 599658d
Merge branch 'main' into read-failure-store-privilege-authz
n1v0lg aa74147
More selector handling
n1v0lg a3e6429
WIP test clean up and async search
n1v0lg e77fb81
Tests and flags
n1v0lg e8d9542
Use API keys
n1v0lg 0f01492
Merge branch 'main' into read-failure-store-privilege-authz
n1v0lg 4d7d0f5
API keys with assigned role descriptors
n1v0lg a1e9c5b
Nit
n1v0lg 6a938f1
Assert
n1v0lg f7e1690
Fix customer authz engine
n1v0lg 49f9c4c
Clean up
n1v0lg ca566e8
More
n1v0lg 8efd2d2
Moar
n1v0lg 4f56acc
Merge branch 'main' into read-failure-store-privilege-authz
n1v0lg 24db961
More comments
n1v0lg 240007e
Assert
n1v0lg a5b5ac4
Better method name
n1v0lg 2f218db
Merge branch 'main' into read-failure-store-privilege-authz
n1v0lg 8222abc
Merge branch 'main' into read-failure-store-privilege-authz
n1v0lg bdf134a
Merge branch 'main' into read-failure-store-privilege-authz
n1v0lg 092371e
Tests tests tests
n1v0lg ff82c48
Merge branch 'read-failure-store-privilege-authz' of github.com:n1v0l…
n1v0lg 903941e
More
n1v0lg 5d0d5d8
Action matcher
n1v0lg da81d50
Assertions and WIP API key tests
n1v0lg cd6e74a
More api key tests
n1v0lg e5d3447
Merge branch 'main' into read-failure-store-privilege-authz
n1v0lg fc5c405
Nit
n1v0lg dae2ce8
Merge branch 'main' into read-failure-store-privilege-authz
n1v0lg af90738
Support selectors in allowedActionsMatcher
n1v0lg 82959d7
More unsupported places
n1v0lg 3d66d16
HasPrivileges validation
n1v0lg 8020982
TODO
n1v0lg 1667883
Merge branch 'main' into read-failure-store-privilege-authz
n1v0lg 063954b
Nits
n1v0lg 758fadb
Merge branch 'main' into read-failure-store-privilege-authz
n1v0lg 4590f04
Basic FLS tests
n1v0lg d78cc3e
DLS
n1v0lg 3b6e030
More assertions
n1v0lg 0b09483
Tweak interface
n1v0lg 2ccbcdf
More fixes
n1v0lg a2ea6f2
Skip pointless map
n1v0lg d3f50dc
Fix tests
n1v0lg 4ca9978
Assert
n1v0lg b23f04c
Tests and comments
n1v0lg fa467f4
Assert
n1v0lg 2931c85
Javadoc
n1v0lg 21f1218
Rm nullable annotations
n1v0lg 9cb1db6
Merge branch 'main' into read-failure-store-privilege-authz
n1v0lg 75dbd7b
More tests
n1v0lg 1ee4988
Merge branch 'main' into read-failure-store-privilege-authz
n1v0lg 917b2c7
Update docs/changelog/123986.yaml
n1v0lg 2bb84a0
PIT tests
n1v0lg 1698536
Merge branch 'read-failure-store-privilege-authz' of github.com:n1v0l…
n1v0lg 80619ec
Merge branch 'main' into read-failure-store-privilege-authz
n1v0lg f7c5c8e
Changelog
n1v0lg bfe9448
Merge branch 'main' into read-failure-store-privilege-authz
n1v0lg d05ddcf
Address review comments
n1v0lg 6465b7a
Delete docs/changelog/123986.yaml
n1v0lg 5b71fb7
RM changelog
n1v0lg 6dd03c6
Merge branch 'read-failure-store-privilege-authz' of github.com:n1v0l…
n1v0lg 75224d8
Merge branch 'main' into read-failure-store-privilege-authz
n1v0lg a5b59bb
Fix edge cases
n1v0lg 91879e7
Clean up
n1v0lg ff94545
Merge branch 'main' into read-failure-store-privilege-authz
n1v0lg 998ad64
Fix tests
n1v0lg 3c04acf
Merge branch 'read-failure-store-privilege-authz' of github.com:n1v0l…
n1v0lg 21c920a
Merge branch 'main' into read-failure-store-privilege-authz
n1v0lg 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be leftover from the #121900 PR, right?
Looking closer, these tests seem to pass with any string value for the selector, except the
failures
.Not something we should do in this PR, but I wonder if we should validate the selector inside the
isIndexVisible
method and only acceptnull
,failures
ordata
?Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, I'll note this down to look into in a follow up.