-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor to remove the IndexAccessControl#isGranted flag (#90141)
This is a refactoring of the `IndicesAccessControl` class intended to remove the `isGranted` flag from each of the individual index resources. In almost all cases the flag is redundant (and is `true`): * when the request is authorized (`IndicesAccessControl#isGranted` is `true`), the `isGranted` flags, for all the individual index resources, must be `true` * when the request is unauthorized the `isGranted` flag can be either `false` or `true` but the request is promptly rejected and so the flag has a short lifetime (basically it is available for the phrasing of the access denied exception). `IndexAccessControl` instances that could _theoretically_ have had `isGranted` as `false` are replaced by `null`. The code already handled nulls in the place of `IndexAccessControl` instances as if they were unauthorized.
- Loading branch information
1 parent
f746450
commit c3a1cb3
Showing
34 changed files
with
366 additions
and
393 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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.