-----------------------------------------------------------
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.
Changes
-------
Updated with Apache JIRA details
Summary (updated)
-----------------
RANGER-2349: Provide an API to download policies and tags
Bugs: RANGER-2349
https://issues.apache.org/jira/browse/RANGER-2349
Repository: ranger
Description (updated)
-------
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 (updated)
-------
Tested with local VM.
Thanks,
Abhay Kulkarni