fmorg-git commented on code in PR #1073:
URL: https://github.com/apache/ranger/pull/1073#discussion_r3604829493
##########
plugin-ozone/src/main/java/org/apache/ranger/authorization/ozone/authorizer/RangerOzoneAuthorizer.java:
##########
@@ -168,7 +171,11 @@ public boolean checkAccess(IOzoneObj ozoneObject,
RequestContext context) {
rangerResource.setOwnerUser(context.getOwnerName());
rangerRequest.setResource(rangerResource);
rangerRequest.setAccessType(accessType);
- rangerRequest.setAction(context.getS3Action());
+ if (isOzoneActionPolicyEnabled(plugin)) {
Review Comment:
hi @mneethiraj @ramackri - in the code prior to RANGER-5628, it was setting
action to `accessType`. So when the feature flag is off, I believe it should
match that prior behavior, otherwise the audit logs will differ when the
feature flag is off when compared to the pre-RANGER-5628 behavior.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]