----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/73659/#review223674 -----------------------------------------------------------
Ship it! Ship It! - Madhan Neethiraj On Oct. 27, 2021, midnight, Abhay Kulkarni wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/73659/ > ----------------------------------------------------------- > > (Updated Oct. 27, 2021, midnight) > > > Review request for ranger, Dineshkumar Yadav, Madhan Neethiraj, Pradeep > Agrawal, Ramesh Mani, and Sailaja Polavarapu. > > > Bugs: RANGER-3490 > https://issues.apache.org/jira/browse/RANGER-3490 > > > Repository: ranger > > > Description > ------- > > There may be multiple policies with the same resource signature within a > service (at most one enabled policy and potentially any number of disabled > policies). Therefore, the resource-signature uniqueness within a service > cannot be enforced at the database level. > > The proposal is to encode GUID of a disabled policy within the resource > signature, thus making the resource signature unique within a service. > > > Diffs > ----- > > > agents-common/src/main/java/org/apache/ranger/plugin/model/RangerPolicyResourceSignature.java > 312005e0f > > agents-common/src/main/java/org/apache/ranger/plugin/model/validation/RangerPolicyValidator.java > 0ba1fb918 > > agents-common/src/main/java/org/apache/ranger/plugin/model/validation/RangerValidator.java > b02090b3c > > agents-common/src/test/java/org/apache/ranger/plugin/model/TestRangerPolicyResourceSignature.java > bc9df31cc > > agents-common/src/test/java/org/apache/ranger/plugin/model/validation/TestRangerPolicyValidator.java > f0e2d07d9 > > agents-common/src/test/java/org/apache/ranger/plugin/model/validation/TestRangerValidator.java > 6de590b0e > security-admin/src/main/java/org/apache/ranger/biz/ServiceDBStore.java > f13cef71d > security-admin/src/test/java/org/apache/ranger/biz/TestServiceDBStore.java > ef0d3b4eb > > > Diff: https://reviews.apache.org/r/73659/diff/3/ > > > Testing > ------- > > Compiled and ran all unit tests successfully. > > > Thanks, > > Abhay Kulkarni > >
