vyommani opened a new pull request, #1382:
URL: https://github.com/apache/ranger/pull/1382

   
   ## What changes were proposed in this pull request?
   
   Follow-up to RANGER-5793. getAllModifiedAccessTypes() used to compare access 
types per principal, merged across the allow, deny and exception lists, and 
ignored item-level details. This change keys each principal by item list type, 
item conditions and item info (data-mask, row-filter or constraint). A change 
to any of these now counts as a modification of the item’s access types.
   
   Condition values are normalized before comparison, and constraint parameters 
are compared as JSON with sorted keys. Accesses with isAllowed=false are left 
out, the same way the policy engine treats them. isAuditEnabled is added to 
isPolicyScopeChanged().
   
   
   ## How was this patch tested?
   
   New unit tests in TestRangerPolicyAdminImpl cover moving an item between 
lists for user, group and role principals, and changes to item conditions and 
to data-mask and constraint info. They also cover isAllowed and isAuditEnabled 
changes, each combined with another change in the same update. Control tests 
check that an in-scope change alone is allowed, and that reordered conditions 
or parameters alone are not treated as a change.


-- 
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]

Reply via email to