{"action":"reopened","number":860,"pull_request":{"url":"https://api.github.com/repos/apache/incubator-zeppelin/pulls/860","id":68126664,"html_url":"https://github.com/apache/incubator-zeppelin/pull/860","diff_url":"https://github.com/apache/incubator-zeppelin/pull/860.diff","patch_url":"https://github.com/apache/incubator-zeppelin/pull/860.patch","issue_url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/860","number":860,"state":"open","locked":false,"title":"[ZEPPELIN-828] Use individual user credentials for data source authentication","user":{"login":"prasadwagle","id":870829,"avatar_url":"https://avatars.githubusercontent.com/u/870829?v=3","gravatar_id":"","url":"https://api.github.com/users/prasadwagle","html_url":"https://github.com/prasadwagle","followers_url":"https://api.github.com/users/prasadwagle/followers","following_url":"https://api.github.com/users/prasadwagle/following{/other_user}","gists_url":"https://api.github.com/users/prasadwagle/gists{/gist_id}","starred_url":"https://api.github.com/users/prasadwagle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prasadwagle/subscriptions","organizations_url":"https://api.github.com/users/prasadwagle/orgs","repos_url":"https://api.github.com/users/prasadwagle/repos","events_url":"https://api.github.com/users/prasadwagle/events{/privacy}","received_events_url":"https://api.github.com/users/prasadwagle/received_events","type":"User","site_admin":false},"body":"### What is this PR for?\r\nThe purpose of this pull request is to allow users to use their own credentials to authenticate with data sources.\r\nIt contains the following:\r\n- web UI and rest API to let users input their credentials\r\n- changes to AuthenticationInfo to add data source credentials\r\n- changes to Paragraph to set data source credentials in AuthenticationInfo\r\n- changes to HiveInterpreter to use the user credentials and simplification to use a new connection for every query. We made this change since we found an issue with closed vertica connections. Since we are using HiveInterpreter for analytics, the cost of creating a new connection is small compared to query execution. We don't have to merge this change into master.\r\n\r\n### What type of PR is it?\r\nFeature\r\n\r\n### Todos\r\n* [x] - Save user credentials in a file\r\n* [x] - Do not persist AuthenticationInfo in paragraph since it contains sensitive information\r\n* [ ] - Add tests\r\n* [ ] - Add documentation\r\n\r\n### What is the Jira issue?\r\n[ZEPPELIN-828] (https://issues.apache.org/jira/browse/ZEPPELIN-828)\r\n\r\n### How should this be tested?\r\n1. In conf/shiro.ini, use /** = authc\r\n1. Login to Zeppelin\r\n2. Enter credentials for a data source\r\n3. Check if the interpreter is using the correct credentials\r\n\r\n### Screenshots (if appropriate)\r\nhttps://gfycat.com/LiquidGentleKatydid\r\n\r\n### Questions:\r\n* Does this needs documentation? Yes.\r\n\r\n","created_at":"2016-04-27T21:18:32Z","updated_at":"2016-05-22T18:13:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2aa1b22362d0a6f0940a6e1efd44364b7dea1b72","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/incubator-zeppelin/pulls/860/commits","review_comments_url":"https://api.github.com/repos/apache/incubator-zeppelin/pulls/860/comments","review_comment_url":"https://api.github.com/repos/apache/incubator-zeppelin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/860/comments","statuses_url":"https://api.github.com/repos/apache/incubator-zeppelin/statuses/6b265360cd8da5bc5ded92f3de194cad297ac412","head":{"label":"prasadwagle:ZEPPELIN-828","ref":"ZEPPELIN-828","sha":"6b265360cd8da5bc5ded92f3de194cad297ac412","user":{"login":"prasadwagle","id":870829,"avatar_url":"https://avatars.githubusercontent.com/u/870829?v=3","gravatar_id":"","url":"https://api.github.com/users/prasadwagle","html_url":"https://github.com/prasadwagle","followers_url":"https://api.github.com/users/prasadwagle/followers","following_url":"https://api.github.com/users/prasadwagle/following{/other_user}","gists_url":"https://api.github.com/users/prasadwagle/gists{/gist_id}","starred_url":"https://api.github.com/users/prasadwagle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prasadwagle/subscriptions","organizations_url":"https://api.github.com/users/prasadwagle/orgs","repos_url":"https://api.github.com/users/prasadwagle/repos","events_url":"https://api.github.com/users/prasadwagle/events{/privacy}","received_events_url":"https://api.github.com/users/prasadwagle/received_events","type":"User","site_admin":false},"repo":{"id":45803838,"name":"incubator-zeppelin","full_name":"prasadwagle/incubator-zeppelin","owner":{"login":"prasadwagle","id":870829,"avatar_url":"https://avatars.githubusercontent.com/u/870829?v=3","gravatar_id":"","url":"https://api.github.com/users/prasadwagle","html_url":"https://github.com/prasadwagle","followers_url":"https://api.github.com/users/prasadwagle/followers","following_url":"https://api.github.com/users/prasadwagle/following{/other_user}","gists_url":"https://api.github.com/users/prasadwagle/gists{/gist_id}","starred_url":"https://api.github.com/users/prasadwagle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prasadwagle/subscriptions","organizations_url":"https://api.github.com/users/prasadwagle/orgs","repos_url":"https://api.github.com/users/prasadwagle/repos","events_url":"https://api.github.com/users/prasadwagle/events{/privacy}","received_events_url":"https://api.github.com/users/prasadwagle/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/prasadwagle/incubator-zeppelin","description":"Mirror of Apache Zeppelin (Incubating)","fork":true,"url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin","forks_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/forks","keys_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/teams","hooks_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/hooks","issue_events_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/issues/events{/number}","events_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/events","assignees_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/assignees{/user}","branches_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/branches{/branch}","tags_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/tags","blobs_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/git/refs{/sha}","trees_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/statuses/{sha}","languages_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/languages","stargazers_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/stargazers","contributors_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/contributors","subscribers_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/subscribers","subscription_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/subscription","commits_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/commits{/sha}","git_commits_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/git/commits{/sha}","comments_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/comments{/number}","issue_comment_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/issues/comments{/number}","contents_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/contents/{+path}","compare_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/merges","archive_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/downloads","issues_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/issues{/number}","pulls_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/pulls{/number}","milestones_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/milestones{/number}","notifications_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/labels{/name}","releases_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/releases{/id}","deployments_url":"https://api.github.com/repos/prasadwagle/incubator-zeppelin/deployments","created_at":"2015-11-08T23:20:30Z","updated_at":"2016-01-31T21:47:31Z","pushed_at":"2016-05-22T18:04:36Z","git_url":"git://github.com/prasadwagle/incubator-zeppelin.git","ssh_url":"git@github.com:prasadwagle/incubator-zeppelin.git","clone_url":"https://github.com/prasadwagle/incubator-zeppelin.git","svn_url":"https://github.com/prasadwagle/incubator-zeppelin","homepage":null,"size":25782,"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":"1e34c8ab8024f92bde8e853bc12731ed87016ef7","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":32848140,"name":"incubator-zeppelin","full_name":"apache/incubator-zeppelin","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/incubator-zeppelin","description":"Mirror of Apache Zeppelin (Incubating)","fork":false,"url":"https://api.github.com/repos/apache/incubator-zeppelin","forks_url":"https://api.github.com/repos/apache/incubator-zeppelin/forks","keys_url":"https://api.github.com/repos/apache/incubator-zeppelin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/incubator-zeppelin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/incubator-zeppelin/teams","hooks_url":"https://api.github.com/repos/apache/incubator-zeppelin/hooks","issue_events_url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/events{/number}","events_url":"https://api.github.com/repos/apache/incubator-zeppelin/events","assignees_url":"https://api.github.com/repos/apache/incubator-zeppelin/assignees{/user}","branches_url":"https://api.github.com/repos/apache/incubator-zeppelin/branches{/branch}","tags_url":"https://api.github.com/repos/apache/incubator-zeppelin/tags","blobs_url":"https://api.github.com/repos/apache/incubator-zeppelin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/incubator-zeppelin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/incubator-zeppelin/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/incubator-zeppelin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/incubator-zeppelin/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/incubator-zeppelin/languages","stargazers_url":"https://api.github.com/repos/apache/incubator-zeppelin/stargazers","contributors_url":"https://api.github.com/repos/apache/incubator-zeppelin/contributors","subscribers_url":"https://api.github.com/repos/apache/incubator-zeppelin/subscribers","subscription_url":"https://api.github.com/repos/apache/incubator-zeppelin/subscription","commits_url":"https://api.github.com/repos/apache/incubator-zeppelin/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/incubator-zeppelin/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/incubator-zeppelin/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/incubator-zeppelin/contents/{+path}","compare_url":"https://api.github.com/repos/apache/incubator-zeppelin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/incubator-zeppelin/merges","archive_url":"https://api.github.com/repos/apache/incubator-zeppelin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/incubator-zeppelin/downloads","issues_url":"https://api.github.com/repos/apache/incubator-zeppelin/issues{/number}","pulls_url":"https://api.github.com/repos/apache/incubator-zeppelin/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/incubator-zeppelin/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/incubator-zeppelin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/incubator-zeppelin/labels{/name}","releases_url":"https://api.github.com/repos/apache/incubator-zeppelin/releases{/id}","deployments_url":"https://api.github.com/repos/apache/incubator-zeppelin/deployments","created_at":"2015-03-25T07:00:06Z","updated_at":"2016-05-22T14:04:42Z","pushed_at":"2016-05-22T14:37:30Z","git_url":"git://github.com/apache/incubator-zeppelin.git","ssh_url":"git@github.com:apache/incubator-zeppelin.git","clone_url":"https://github.com/apache/incubator-zeppelin.git","svn_url":"https://github.com/apache/incubator-zeppelin","homepage":null,"size":100606,"stargazers_count":1476,"watchers_count":1476,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":733,"mirror_url":"git://git.apache.org/incubator-zeppelin.git","open_issues_count":102,"forks":733,"open_issues":102,"watchers":1476,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-zeppelin/pulls/860"},"html":{"href":"https://github.com/apache/incubator-zeppelin/pull/860"},"issue":{"href":"https://api.github.com/repos/apache/incubator-zeppelin/issues/860"},"comments":{"href":"https://api.github.com/repos/apache/incubator-zeppelin/issues/860/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/incubator-zeppelin/pulls/860/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/incubator-zeppelin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/incubator-zeppelin/pulls/860/commits"},"statuses":{"href":"https://api.github.com/repos/apache/incubator-zeppelin/statuses/6b265360cd8da5bc5ded92f3de194cad297ac412"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":5,"review_comments":0,"commits":11,"additions":665,"deletions":19,"changed_files":26}}
{"actor":{"display_login":"prasadwagle"}}