{"action":"created","comment":{"url":"https://api.github.com/repos/apache/nifi/pulls/comments/71930207","id":71930207,"diff_hunk":"@@ -0,0 +1,83 @@\n+/*","path":"nifi-nar-bundles/nifi-ranger-bundle/nifi-ranger-plugin/src/main/java/org/apache/nifi/ranger/authorization/RangerBasePluginWithPolicies.java","position":1,"original_position":1,"commit_id":"2416d178de8770da257f262ccc317c2e97db9b92","original_commit_id":"2416d178de8770da257f262ccc317c2e97db9b92","user":{"login":"YolandaMDavis","id":1371858,"avatar_url":"https://avatars.githubusercontent.com/u/1371858?v=3","gravatar_id":"","url":"https://api.github.com/users/YolandaMDavis","html_url":"https://github.com/YolandaMDavis","followers_url":"https://api.github.com/users/YolandaMDavis/followers","following_url":"https://api.github.com/users/YolandaMDavis/following{/other_user}","gists_url":"https://api.github.com/users/YolandaMDavis/gists{/gist_id}","starred_url":"https://api.github.com/users/YolandaMDavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YolandaMDavis/subscriptions","organizations_url":"https://api.github.com/users/YolandaMDavis/orgs","repos_url":"https://api.github.com/users/YolandaMDavis/repos","events_url":"https://api.github.com/users/YolandaMDavis/events{/privacy}","received_events_url":"https://api.github.com/users/YolandaMDavis/received_events","type":"User","site_admin":false},"body":"Suggest adding a test to cover this class if possible.","created_at":"2016-07-22T19:09:20Z","updated_at":"2016-07-22T19:09:20Z","html_url":"https://github.com/apache/nifi/pull/574#discussion_r71930207","pull_request_url":"https://api.github.com/repos/apache/nifi/pulls/574","_links":{"self":{"href":"https://api.github.com/repos/apache/nifi/pulls/comments/71930207"},"html":{"href":"https://github.com/apache/nifi/pull/574#discussion_r71930207"},"pull_request":{"href":"https://api.github.com/repos/apache/nifi/pulls/574"}}},"pull_request":{"url":"https://api.github.com/repos/apache/nifi/pulls/574","id":75140780,"html_url":"https://github.com/apache/nifi/pull/574","diff_url":"https://github.com/apache/nifi/pull/574.diff","patch_url":"https://github.com/apache/nifi/pull/574.patch","issue_url":"https://api.github.com/repos/apache/nifi/issues/574","number":574,"state":"open","locked":false,"title":"NIFI-1733 Adding a Ranger implementation of NiFi's Authorizer API","user":{"login":"bbende","id":605416,"avatar_url":"https://avatars.githubusercontent.com/u/605416?v=3","gravatar_id":"","url":"https://api.github.com/users/bbende","html_url":"https://github.com/bbende","followers_url":"https://api.github.com/users/bbende/followers","following_url":"https://api.github.com/users/bbende/following{/other_user}","gists_url":"https://api.github.com/users/bbende/gists{/gist_id}","starred_url":"https://api.github.com/users/bbende/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbende/subscriptions","organizations_url":"https://api.github.com/users/bbende/orgs","repos_url":"https://api.github.com/users/bbende/repos","events_url":"https://api.github.com/users/bbende/events{/privacy}","received_events_url":"https://api.github.com/users/bbende/received_events","type":"User","site_admin":false},"body":"This PR adds an Authorizer implementation that uses Apache Ranger and also modifies the build so that Ranger related artifacts are only included when using -Pinclude-ranger, this way the normal build does not need to include anything related to Ranger, and those that want it can also easily build it themselves.\r\n\r\nWhen using NiFi with Ranger you would declare an Authorizer like the following in authorizers.xml:\r\n```\r\n    <authorizer>\r\n        <identifier>ranger-provider</identifier>\r\n        <class>org.apache.nifi.ranger.authorization.RangerNiFiAuthorizer</class>\r\n        <property name=\"Ranger Audit Config Path\">src/test/resources/ranger/ranger-nifi-audit.xml</property>\r\n        <property name=\"Ranger Security Config Path\">src/test/resources/ranger/ranger-nifi-security.xml</property>\r\n        <property name=\"Ranger Service Type\">nifi</property>\r\n        <property name=\"Ranger Application Id\">nifi</property>\r\n        <property name=\"Ranger Admin Identity\">CN=ranger-admin, OU=Apache Ranger, O=Apache, L=Santa Monica, ST=CA, C=US</property>\r\n        <property name=\"Ranger Kerberos Enabled\">false</property>\r\n    </authorizer>\r\n```\r\n\r\nFor anyone interested in playing around with this, I created a Vagrant VM that can run a build of Ranger:\r\nhttps://github.com/bbende/apache-ranger-vagrant","created_at":"2016-06-24T16:39:17Z","updated_at":"2016-07-22T19:09:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"92333d1f469e3488c56fb906abf7eb276e4384ac","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/apache/nifi/pulls/574/commits","review_comments_url":"https://api.github.com/repos/apache/nifi/pulls/574/comments","review_comment_url":"https://api.github.com/repos/apache/nifi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/nifi/issues/574/comments","statuses_url":"https://api.github.com/repos/apache/nifi/statuses/2416d178de8770da257f262ccc317c2e97db9b92","head":{"label":"bbende:NIFI-1733","ref":"NIFI-1733","sha":"2416d178de8770da257f262ccc317c2e97db9b92","user":{"login":"bbende","id":605416,"avatar_url":"https://avatars.githubusercontent.com/u/605416?v=3","gravatar_id":"","url":"https://api.github.com/users/bbende","html_url":"https://github.com/bbende","followers_url":"https://api.github.com/users/bbende/followers","following_url":"https://api.github.com/users/bbende/following{/other_user}","gists_url":"https://api.github.com/users/bbende/gists{/gist_id}","starred_url":"https://api.github.com/users/bbende/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbende/subscriptions","organizations_url":"https://api.github.com/users/bbende/orgs","repos_url":"https://api.github.com/users/bbende/repos","events_url":"https://api.github.com/users/bbende/events{/privacy}","received_events_url":"https://api.github.com/users/bbende/received_events","type":"User","site_admin":false},"repo":{"id":48186740,"name":"nifi","full_name":"bbende/nifi","owner":{"login":"bbende","id":605416,"avatar_url":"https://avatars.githubusercontent.com/u/605416?v=3","gravatar_id":"","url":"https://api.github.com/users/bbende","html_url":"https://github.com/bbende","followers_url":"https://api.github.com/users/bbende/followers","following_url":"https://api.github.com/users/bbende/following{/other_user}","gists_url":"https://api.github.com/users/bbende/gists{/gist_id}","starred_url":"https://api.github.com/users/bbende/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbende/subscriptions","organizations_url":"https://api.github.com/users/bbende/orgs","repos_url":"https://api.github.com/users/bbende/repos","events_url":"https://api.github.com/users/bbende/events{/privacy}","received_events_url":"https://api.github.com/users/bbende/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bbende/nifi","description":"Mirror of Apache NiFi","fork":true,"url":"https://api.github.com/repos/bbende/nifi","forks_url":"https://api.github.com/repos/bbende/nifi/forks","keys_url":"https://api.github.com/repos/bbende/nifi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bbende/nifi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bbende/nifi/teams","hooks_url":"https://api.github.com/repos/bbende/nifi/hooks","issue_events_url":"https://api.github.com/repos/bbende/nifi/issues/events{/number}","events_url":"https://api.github.com/repos/bbende/nifi/events","assignees_url":"https://api.github.com/repos/bbende/nifi/assignees{/user}","branches_url":"https://api.github.com/repos/bbende/nifi/branches{/branch}","tags_url":"https://api.github.com/repos/bbende/nifi/tags","blobs_url":"https://api.github.com/repos/bbende/nifi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bbende/nifi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bbende/nifi/git/refs{/sha}","trees_url":"https://api.github.com/repos/bbende/nifi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bbende/nifi/statuses/{sha}","languages_url":"https://api.github.com/repos/bbende/nifi/languages","stargazers_url":"https://api.github.com/repos/bbende/nifi/stargazers","contributors_url":"https://api.github.com/repos/bbende/nifi/contributors","subscribers_url":"https://api.github.com/repos/bbende/nifi/subscribers","subscription_url":"https://api.github.com/repos/bbende/nifi/subscription","commits_url":"https://api.github.com/repos/bbende/nifi/commits{/sha}","git_commits_url":"https://api.github.com/repos/bbende/nifi/git/commits{/sha}","comments_url":"https://api.github.com/repos/bbende/nifi/comments{/number}","issue_comment_url":"https://api.github.com/repos/bbende/nifi/issues/comments{/number}","contents_url":"https://api.github.com/repos/bbende/nifi/contents/{+path}","compare_url":"https://api.github.com/repos/bbende/nifi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bbende/nifi/merges","archive_url":"https://api.github.com/repos/bbende/nifi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bbende/nifi/downloads","issues_url":"https://api.github.com/repos/bbende/nifi/issues{/number}","pulls_url":"https://api.github.com/repos/bbende/nifi/pulls{/number}","milestones_url":"https://api.github.com/repos/bbende/nifi/milestones{/number}","notifications_url":"https://api.github.com/repos/bbende/nifi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bbende/nifi/labels{/name}","releases_url":"https://api.github.com/repos/bbende/nifi/releases{/id}","deployments_url":"https://api.github.com/repos/bbende/nifi/deployments","created_at":"2015-12-17T16:52:44Z","updated_at":"2016-01-24T14:54:43Z","pushed_at":"2016-07-21T18:30:28Z","git_url":"git://github.com/bbende/nifi.git","ssh_url":"git@github.com:bbende/nifi.git","clone_url":"https://github.com/bbende/nifi.git","svn_url":"https://github.com/bbende/nifi","homepage":"","size":53156,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"259f5bba47b2890af936419e27a4dff141a7aeaa","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":27911088,"name":"nifi","full_name":"apache/nifi","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/nifi","description":"Mirror of Apache NiFi","fork":false,"url":"https://api.github.com/repos/apache/nifi","forks_url":"https://api.github.com/repos/apache/nifi/forks","keys_url":"https://api.github.com/repos/apache/nifi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/nifi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/nifi/teams","hooks_url":"https://api.github.com/repos/apache/nifi/hooks","issue_events_url":"https://api.github.com/repos/apache/nifi/issues/events{/number}","events_url":"https://api.github.com/repos/apache/nifi/events","assignees_url":"https://api.github.com/repos/apache/nifi/assignees{/user}","branches_url":"https://api.github.com/repos/apache/nifi/branches{/branch}","tags_url":"https://api.github.com/repos/apache/nifi/tags","blobs_url":"https://api.github.com/repos/apache/nifi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/nifi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/nifi/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/nifi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/nifi/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/nifi/languages","stargazers_url":"https://api.github.com/repos/apache/nifi/stargazers","contributors_url":"https://api.github.com/repos/apache/nifi/contributors","subscribers_url":"https://api.github.com/repos/apache/nifi/subscribers","subscription_url":"https://api.github.com/repos/apache/nifi/subscription","commits_url":"https://api.github.com/repos/apache/nifi/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/nifi/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/nifi/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/nifi/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/nifi/contents/{+path}","compare_url":"https://api.github.com/repos/apache/nifi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/nifi/merges","archive_url":"https://api.github.com/repos/apache/nifi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/nifi/downloads","issues_url":"https://api.github.com/repos/apache/nifi/issues{/number}","pulls_url":"https://api.github.com/repos/apache/nifi/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/nifi/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/nifi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/nifi/labels{/name}","releases_url":"https://api.github.com/repos/apache/nifi/releases{/id}","deployments_url":"https://api.github.com/repos/apache/nifi/deployments","created_at":"2014-12-12T08:00:05Z","updated_at":"2016-07-21T19:43:23Z","pushed_at":"2016-07-22T19:09:17Z","git_url":"git://github.com/apache/nifi.git","ssh_url":"git@github.com:apache/nifi.git","clone_url":"https://github.com/apache/nifi.git","svn_url":"https://github.com/apache/nifi","homepage":"","size":74218,"stargazers_count":317,"watchers_count":317,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":278,"mirror_url":"git://git.apache.org/nifi.git","open_issues_count":54,"forks":278,"open_issues":54,"watchers":317,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/nifi/pulls/574"},"html":{"href":"https://github.com/apache/nifi/pull/574"},"issue":{"href":"https://api.github.com/repos/apache/nifi/issues/574"},"comments":{"href":"https://api.github.com/repos/apache/nifi/issues/574/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/nifi/pulls/574/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/nifi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/nifi/pulls/574/commits"},"statuses":{"href":"https://api.github.com/repos/apache/nifi/statuses/2416d178de8770da257f262ccc317c2e97db9b92"}}}}
{"actor":{"display_login":"YolandaMDavis"}}