ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From madhan <>
Subject Re: Review Request 69842: RANGER-2349: Provide an API to download policies and tags
Date Thu, 07 Mar 2019 18:25:10 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/69842/#review213529
-----------------------------------------------------------


Ship it!




Ship It!

- madhan


On March 7, 2019, 6:03 p.m., Abhay Kulkarni wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/69842/
> -----------------------------------------------------------
> 
> (Updated March 7, 2019, 6:03 p.m.)
> 
> 
> Review request for ranger, Madhan Neethiraj and Velmurugan Periasamy.
> 
> 
> Bugs: RANGER-2349
>     https://issues.apache.org/jira/browse/RANGER-2349
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> Ranger plugin may want to use the latest policies and tags available in Ranger Admin
for authorization, rather than wait for the next scheduled download. Ranger needs to provide
a way to achieve this.
> 
> RangerBasePlugin class now provides BasePlugin.refreshPoliciesAndTags() API to sync policies
and tags from Ranger Admin at any time. The call will return after checking and fetching,
if necessary, policies and tags from Ranger admin, and building a new policy-engine. Periodic
policy/tag download continue to work as before.
> 
> 
> Diffs
> -----
> 
>   agents-common/src/main/java/org/apache/ranger/plugin/contextenricher/RangerTagEnricher.java
028efe865 
>   agents-common/src/main/java/org/apache/ranger/plugin/service/RangerAuthContext.java
8b00144ed 
>   agents-common/src/main/java/org/apache/ranger/plugin/service/RangerBasePlugin.java
96ca31712 
>   agents-common/src/main/java/org/apache/ranger/plugin/util/DownloadTrigger.java PRE-CREATION

>   agents-common/src/main/java/org/apache/ranger/plugin/util/DownloaderTask.java PRE-CREATION

>   agents-common/src/main/java/org/apache/ranger/plugin/util/PolicyRefresher.java e85612a14

> 
> 
> Diff: https://reviews.apache.org/r/69842/diff/2/
> 
> 
> Testing
> -------
> 
> Tested with local VM.
> 
> 
> Thanks,
> 
> Abhay Kulkarni
> 
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message