Combine RestApiPrivilegesEvaluator and RestApiAdminPrivilegesEvaluator to RestApiAuthorizationEvaluator#6072
Combine RestApiPrivilegesEvaluator and RestApiAdminPrivilegesEvaluator to RestApiAuthorizationEvaluator#6072cwperks wants to merge 3 commits intoopensearch-project:mainfrom
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 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
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.