----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/73601/#review223614 -----------------------------------------------------------
Ship it! Ship It! - Abhay Kulkarni On Sept. 22, 2021, 11:03 a.m., Pradeep Agrawal wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/73601/ > ----------------------------------------------------------- > > (Updated Sept. 22, 2021, 11:03 a.m.) > > > Review request for ranger, Dineshkumar Yadav, Abhay Kulkarni, Madhan > Neethiraj, Mehul Parikh, Ramesh Mani, Sailaja Polavarapu, and Velmurugan > Periasamy. > > > Bugs: RANGER-3439 > https://issues.apache.org/jira/browse/RANGER-3439 > > > Repository: ranger > > > Description > ------- > > **Problem Statmeent: ** This is required after the analysys of RANGER-3401, > as there could be request on x_policy table to find a policy by guid and > service id. There is no workaround to this problem however its recommended > that similar option should be provided through a REST url. > > > **Proposed solution:** A New API can be introduced which shall accept the > guid and service name as request parameter input and either provide the > respective policy or delete the same. > API: > a) getPolicyByGUIDAndServiceName(guid, service): reads the input values and > returns the policy object. > b) deletePolicyByGUIDAndServiceName(guid, service) : reads the input values > and deletes the respective policy object. > > > Diffs > ----- > > security-admin/src/main/java/org/apache/ranger/biz/ServiceDBStore.java > 3cd289cc2 > security-admin/src/main/java/org/apache/ranger/db/XXPolicyDao.java > 865926706 > security-admin/src/main/java/org/apache/ranger/rest/PublicAPIsv2.java > ab2f54a5a > security-admin/src/main/java/org/apache/ranger/rest/ServiceREST.java > f0bf64e76 > security-admin/src/main/resources/META-INF/jpa_named_queries.xml ab2d9cd0d > > > Diff: https://reviews.apache.org/r/73601/diff/2/ > > > Testing > ------- > > Tested getPolicyByGUIDAndServiceName() API and was able to recieve the > matching policy object. > Tested deletePolicyByGUIDAndServiceName() API and was able to delete the > respective policy object. > > > Thanks, > > Pradeep Agrawal > >
