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

(Updated Jan. 13, 2017, 10:24 a.m.)


Review request for ranger, Don Bosco Durai, Gautam Borad, Madhan Neethiraj, 
Ramesh Mani, and Velmurugan Periasamy.


Changes
-------

Updated patch contains following changes : 

* Removal of import from excel. 
* Removal of export to excel and csv from landing page (From landing page, only 
export/import to json will be provided).
* Added metadata info to exported json files. 
* Showing metadata info in Admin Audits as well (whenver policies are imported 
with json having metadata).
* Exported metadata contains : exported by, exported on, ranger version and 
hostname


Bugs: RANGER-1214
    https://issues.apache.org/jira/browse/RANGER-1214


Repository: ranger


Description
-------

**Problem Statement**
Users need to be able to export and import policies from Ranger Admin UI from 
one cluster into another for easily bootstrapping new clusters or moving 
policies from cluster1 -> cluster2.
**Need following features:**
Provide a filter to export specific repos or specific policies.
Option to overwrite existing policies in the destination cluster.


Diffs (updated)
-----

  agents-common/src/main/java/org/apache/ranger/plugin/client/BaseClient.java 
4ba1f89 
  agents-common/src/main/java/org/apache/ranger/plugin/util/PasswordUtils.java 
f47fd29 
  
agents-common/src/main/java/org/apache/ranger/plugin/util/StringTokenReplacer.java
 f7047f3 
  
credentialbuilder/src/main/java/org/apache/ranger/credentialapi/CredentialReader.java
 94e6afd 
  
credentialbuilder/src/test/java/org/apache/ranger/credentialapi/Testbuildks.java
 5386838 
  jisql/src/main/java/org/apache/util/sql/Jisql.java b613e80 
  security-admin/pom.xml 01d5fb8 
  security-admin/src/main/java/org/apache/ranger/biz/ServiceDBStore.java 
dfe927f 
  security-admin/src/main/java/org/apache/ranger/common/RESTErrorUtil.java 
5c01e59 
  security-admin/src/main/java/org/apache/ranger/common/RangerConstants.java 
4decbcb 
  
security-admin/src/main/java/org/apache/ranger/credentialapi/CredentialReader.java
 f782396 
  security-admin/src/main/java/org/apache/ranger/entity/XXAccessAuditBase.java 
8f83f10 
  security-admin/src/main/java/org/apache/ranger/entity/XXAuthSession.java 
a4f93f2 
  security-admin/src/main/java/org/apache/ranger/entity/XXTrxLog.java 5995201 
  security-admin/src/main/java/org/apache/ranger/rest/ServiceREST.java 307eb80 
  
security-admin/src/main/java/org/apache/ranger/security/context/RangerPreAuthSecurityHandler.java
 97f573a 
  
security-admin/src/main/java/org/apache/ranger/view/RangerExportPolicyList.java 
PRE-CREATION 
  security-admin/src/main/webapp/scripts/collection_bases/VXTrxLogListBase.js 
4c0bd21 
  security-admin/src/main/webapp/scripts/modules/globalize/message/en.js 
37821fe 
  security-admin/src/main/webapp/scripts/utils/XAUtils.js 11849ad 
  security-admin/src/main/webapp/scripts/views/DownloadServicePolicy.js 
PRE-CREATION 
  security-admin/src/main/webapp/scripts/views/UploadServicePolicy.js 
PRE-CREATION 
  security-admin/src/main/webapp/scripts/views/policymanager/ServiceLayout.js 
64c5f4c 
  security-admin/src/main/webapp/scripts/views/reports/AuditLayout.js 51082c0 
  security-admin/src/main/webapp/scripts/views/reports/UserAccessLayout.js 
56bba66 
  security-admin/src/main/webapp/styles/xa.css 2b533e2 
  
security-admin/src/main/webapp/templates/common/ServiceManagerLayout_tmpl.html 
72ae4de 
  security-admin/src/main/webapp/templates/common/ServiceMappingItem.html 
PRE-CREATION 
  
security-admin/src/main/webapp/templates/common/downloadservicepolicy_tmpl.html 
PRE-CREATION 
  security-admin/src/main/webapp/templates/common/uploadservicepolicy_tmpl.html 
PRE-CREATION 
  security-admin/src/main/webapp/templates/helpers/XAHelpers.js 08d18cf 
  security-admin/src/main/webapp/templates/reports/UserAccessLayout_tmpl.html 
da323ef 
  src/main/assembly/admin-web.xml 70873d5 
  
ugsync/src/main/java/org/apache/ranger/ldapusersync/process/LdapUserGroupBuilder.java
 36246aa 
  
ugsync/src/main/java/org/apache/ranger/unixusersync/process/PolicyMgrUserGroupBuilder.java
 9f97d7b 
  
unixauthclient/src/main/java/org/apache/ranger/authentication/unix/jaas/RemoteUnixLoginModule.java
 635ad1f 
  
unixauthservice/src/main/java/org/apache/ranger/authentication/UnixAuthenticationService.java
 99a38db 

Diff: https://reviews.apache.org/r/54814/diff/


Testing
-------

Verified : 

1) UI based import / export feature from list of services page for all services 
of a service type. 
2) UI based import / export feature from list of services page for particular 
services of a service type. 
3) UI based export from Reports page
4) REST api verification done using curl command as well for import / export of 
policies. 
5) Verified overrides functionality provided in REST api for import policies.
6) Verified plugin enforcements after importing set of policies.


Thanks,

Mehul Parikh

Reply via email to