fateh288 commented on code in PR #584: URL: https://github.com/apache/ranger/pull/584#discussion_r2211791266
########## agents-common/src/main/java/org/apache/ranger/plugin/service/RangerDefaultRequestProcessor.java: ########## @@ -98,6 +103,53 @@ public void preProcess(RangerAccessRequest request) { reqImpl.setClusterType(pluginContext.getClusterType()); } + RangerPluginConfig config = policyEngine.getPluginContext().getConfig(); Review Comment: Can we break this code segment into multiple utility functions. Two functions I can think of for better readability are 1) getTransformedUser() 2) getTransformedGroups() After calling these methods, we can then set it reqImpl.setUser(transformedUser); / reqImpl.setUserGroups(transformedGroups); -- 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: dev-unsubscr...@ranger.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org