GitHub user DadanielZ opened a pull request: https://github.com/apache/incubator-eagle/pull/300
EAGLE-283 Convert fid,uid in MapR's audit log to FIle/folder name, user name 1. Added resolver for user's input of "volume", "file/folder", "Status" - These resolver provide drop down list for user to select 2. Added NameConvertor to convert user's input to corresponding id and saved it in policy - volume value will be used to call MapR's REST API to get volume id - status code will be resolved to status id - file/folder name will be passed to MapR's command line class to get its id. 3. Modified controller.js - As soon as user input a value for "volume", "file", "status", it will fetch user's input and call rest service to get corresponding id - Save ids as a new match criteria in the policy Eg: after user select "== '/test'" in field "dst", a new match criteria "== 234.567.890" will appear automatically under it, and the policy will end up as: dst == 'test' or dst == '234.567.890' Same for volume and status input. In this way, the policy is human readable and can be used to match the ids in maprfsAuditLog for monitoring. 4. Added maprfs resource resolver to provide drop down list for user 5. Added license for "/eagle-app-example/src/main/java/org/apache/eagle/app/example/ExampleStormConfig.java" to pass rat check. For user id conversion I haven't come up with a perfect solution, this is because: - As user id is more OS standard staff, user might need to make OS calls to get the user ids. - If user use LDAP, it will make it easier as we can query that directly. You can merge this pull request into a Git repository by running: $ git pull https://github.com/DadanielZ/incubator-eagle develop Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-eagle/pull/300.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #300 ---- commit c6d10261e5ba32bf22c1fcee07c8c0ebf6f43a68 Author: Daniel <dzh...@binghamton.edu> Date: 2016-07-05T18:11:12Z Merge pull request #12 from apache/develop EAGLE-276 eagle support for mr & spark history job monitoring commit 92d7a14a529b17608f018fb624039bb9115b9dff Author: Daniel <dzh...@binghamton.edu> Date: 2016-07-21T05:18:22Z Merge pull request #13 from apache/develop update from Eagle develop commit 2d97d281ec10eb24dca76f64557733d412ce6a19 Author: Daniel <dzh...@binghamton.edu> Date: 2016-07-28T17:56:52Z Merge pull request #14 from apache/develop update from eagle-develop commit 1e2e6a98569d2000f3561c420067e2f926fa2a75 Author: Daniel <dzh...@binghamton.edu> Date: 2016-07-29T19:38:01Z Merge pull request #15 from apache/develop update from apache-eagle develop branch commit 55b6e1d8279be9b72b3958c52fc36bbe72a2ceb0 Author: Daniel <daz...@apache.org> Date: 2016-08-04T05:10:29Z Merge pull request #16 from apache/develop update from eagle-develop commit 7340451cbb0621bfc1eebae1deeed730349ee8a6 Author: Daniel <daniel.z...@dataguise.com> Date: 2016-08-04T21:19:37Z EAGLE-283: Convert fid,uid in MapR's audit log to FIle/folder name, user name 1. Added resolver for user's input of "volume", "file/folder", "Status" - These resolver provide drop down list for user to select 2. Added NameConvertor to convert user's input to corresponding id and saved it in policy - volume value will be used to call MapR's REST API to get volume id - status code will be resolved to status id - file/folder name will be passed to MapR's command line class to get its id. 3. Modified controller.js - As soon as user input a value for "volume", "file", "status", it will fetch user's input and call rest service to get corresponding id - Save ids as a new match criteria in the policy Eg: user select "== '/test'" in field "dst", a new match criteria "== 234.567.890" will appear automatically under it, and the policy will end up as: dst == 'test' or dst == '234.567.890' Same for volume and status input. In this way, the policy is human readable and can be used to match the ids in maprfsAuditLog. 4. Added maprfs resource resolver to provide drop down list for user 5. Added license for "/eagle-app-example/src/main/java/org/apache/eagle/app/example/ExampleStormConfig.java" to pass rat check. ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---