Combine RestApiPrivilegesEvaluator and RestApiAdminPrivilegesEvaluator to RestApiAuthorizationEvaluator#6072
Combine RestApiPrivilegesEvaluator and RestApiAdminPrivilegesEvaluator to RestApiAuthorizationEvaluator#6072cwperks wants to merge 7 commits into
Conversation
…r to RestApiAuthorizationEvaluator Signed-off-by: Craig Perkins <craig5008@gmail.com>
Signed-off-by: Craig Perkins <craig5008@gmail.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
PR Reviewer Guide 🔍(Review updated until commit f72336f)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to f72336f Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit f1c96f2
Suggestions up to commit 69d1fa3
Suggestions up to commit 109df00
|
|
Persistent review updated to latest commit 69d1fa3 |
DarshitChanpura
left a comment
There was a problem hiding this comment.
this is a good approach to cleaning up the code. Left a few comments.
PR Code Analyzer ❗AI-powered 'Code-Diff-Analyzer' found issues on commit f72336f.
The table above displays the top 10 most important findings. Pull Requests Author(s): Please update your Pull Request according to the report above. Repository Maintainer(s): You can Thanks. |
|
Persistent review updated to latest commit f1c96f2 |
Signed-off-by: Craig Perkins <cwperx@amazon.com>
|
Persistent review updated to latest commit f72336f |
Description
This PR contains a refactoring to simplify authz for security APIs.
Currently, authorization is split into 2 files:
plugins.security.restapi.admin.enabledis set to true which authorizes security APIs based on whether the user has explicitly been granted the requisiterestapi:*permissionplugins.security.restapi.roles_enabledis set which authorizes security APIs based on the user's rolesRefactoring
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.