{"action":"created","comment":{"url":"https://api.github.com/repos/Stratio/Crossdata/pulls/comments/62894511","id":62894511,"diff_hunk":"@@ -0,0 +1,36 @@\n+/*\n+ * Copyright (C) 2015 Stratio (http://stratio.com)\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *         http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+package org.apache.spark.sql.crossdata.security\n+\n+class DefaultSecurityManager(override val credentials: Credentials) extends SecurityManager(credentials) {\n+\n+  val user = credentials.user match {","path":"core/src/main/scala/org/apache/spark/sql/crossdata/security/DefaultSecurityManager.scala","position":20,"original_position":20,"commit_id":"ef321b65725c9ca2893e3529b863ccc67577eb34","original_commit_id":"e22ab66c51b2302d758e5be37f77feefb47da90c","user":{"login":"miguel0afd","id":6031466,"avatar_url":"https://avatars.githubusercontent.com/u/6031466?v=3","gravatar_id":"","url":"https://api.github.com/users/miguel0afd","html_url":"https://github.com/miguel0afd","followers_url":"https://api.github.com/users/miguel0afd/followers","following_url":"https://api.github.com/users/miguel0afd/following{/other_user}","gists_url":"https://api.github.com/users/miguel0afd/gists{/gist_id}","starred_url":"https://api.github.com/users/miguel0afd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miguel0afd/subscriptions","organizations_url":"https://api.github.com/users/miguel0afd/orgs","repos_url":"https://api.github.com/users/miguel0afd/repos","events_url":"https://api.github.com/users/miguel0afd/events{/privacy}","received_events_url":"https://api.github.com/users/miguel0afd/received_events","type":"User","site_admin":false},"body":"If we use a getOrElse, that makes to get a String when we actually want to get an Option[String]","created_at":"2016-05-11T17:53:11Z","updated_at":"2016-05-11T17:53:11Z","html_url":"https://github.com/Stratio/Crossdata/pull/539#discussion_r62894511","pull_request_url":"https://api.github.com/repos/Stratio/Crossdata/pulls/539","_links":{"self":{"href":"https://api.github.com/repos/Stratio/Crossdata/pulls/comments/62894511"},"html":{"href":"https://github.com/Stratio/Crossdata/pull/539#discussion_r62894511"},"pull_request":{"href":"https://api.github.com/repos/Stratio/Crossdata/pulls/539"}}},"pull_request":{"url":"https://api.github.com/repos/Stratio/Crossdata/pulls/539","id":69458716,"html_url":"https://github.com/Stratio/Crossdata/pull/539","diff_url":"https://github.com/Stratio/Crossdata/pull/539.diff","patch_url":"https://github.com/Stratio/Crossdata/pull/539.patch","issue_url":"https://api.github.com/repos/Stratio/Crossdata/issues/539","number":539,"state":"open","locked":false,"title":"[WIP] [CROSSDATA-467] [SECURITY] Security Manager added","user":{"login":"miguel0afd","id":6031466,"avatar_url":"https://avatars.githubusercontent.com/u/6031466?v=3","gravatar_id":"","url":"https://api.github.com/users/miguel0afd","html_url":"https://github.com/miguel0afd","followers_url":"https://api.github.com/users/miguel0afd/followers","following_url":"https://api.github.com/users/miguel0afd/following{/other_user}","gists_url":"https://api.github.com/users/miguel0afd/gists{/gist_id}","starred_url":"https://api.github.com/users/miguel0afd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miguel0afd/subscriptions","organizations_url":"https://api.github.com/users/miguel0afd/orgs","repos_url":"https://api.github.com/users/miguel0afd/repos","events_url":"https://api.github.com/users/miguel0afd/events{/privacy}","received_events_url":"https://api.github.com/users/miguel0afd/received_events","type":"User","site_admin":false},"body":"This PR adds a basic trait of a Security Manager and a default implementation. This lets to add authorization operations and include more information into the logs.","created_at":"2016-05-10T07:15:21Z","updated_at":"2016-05-11T17:53:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5ddd0ab226c3202ab1c41d346477209a49232647","assignee":null,"milestone":{"url":"https://api.github.com/repos/Stratio/Crossdata/milestones/7","html_url":"https://github.com/Stratio/Crossdata/milestones/1.3","labels_url":"https://api.github.com/repos/Stratio/Crossdata/milestones/7/labels","id":1713007,"number":7,"title":"1.3","description":null,"creator":{"login":"miguel0afd","id":6031466,"avatar_url":"https://avatars.githubusercontent.com/u/6031466?v=3","gravatar_id":"","url":"https://api.github.com/users/miguel0afd","html_url":"https://github.com/miguel0afd","followers_url":"https://api.github.com/users/miguel0afd/followers","following_url":"https://api.github.com/users/miguel0afd/following{/other_user}","gists_url":"https://api.github.com/users/miguel0afd/gists{/gist_id}","starred_url":"https://api.github.com/users/miguel0afd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miguel0afd/subscriptions","organizations_url":"https://api.github.com/users/miguel0afd/orgs","repos_url":"https://api.github.com/users/miguel0afd/repos","events_url":"https://api.github.com/users/miguel0afd/events{/privacy}","received_events_url":"https://api.github.com/users/miguel0afd/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":4,"state":"open","created_at":"2016-04-18T08:26:17Z","updated_at":"2016-05-10T07:15:21Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/Stratio/Crossdata/pulls/539/commits","review_comments_url":"https://api.github.com/repos/Stratio/Crossdata/pulls/539/comments","review_comment_url":"https://api.github.com/repos/Stratio/Crossdata/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Stratio/Crossdata/issues/539/comments","statuses_url":"https://api.github.com/repos/Stratio/Crossdata/statuses/ef321b65725c9ca2893e3529b863ccc67577eb34","head":{"label":"miguel0afd:CROSSDATA-467","ref":"CROSSDATA-467","sha":"ef321b65725c9ca2893e3529b863ccc67577eb34","user":{"login":"miguel0afd","id":6031466,"avatar_url":"https://avatars.githubusercontent.com/u/6031466?v=3","gravatar_id":"","url":"https://api.github.com/users/miguel0afd","html_url":"https://github.com/miguel0afd","followers_url":"https://api.github.com/users/miguel0afd/followers","following_url":"https://api.github.com/users/miguel0afd/following{/other_user}","gists_url":"https://api.github.com/users/miguel0afd/gists{/gist_id}","starred_url":"https://api.github.com/users/miguel0afd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miguel0afd/subscriptions","organizations_url":"https://api.github.com/users/miguel0afd/orgs","repos_url":"https://api.github.com/users/miguel0afd/repos","events_url":"https://api.github.com/users/miguel0afd/events{/privacy}","received_events_url":"https://api.github.com/users/miguel0afd/received_events","type":"User","site_admin":false},"repo":{"id":27240847,"name":"crossdata","full_name":"miguel0afd/crossdata","owner":{"login":"miguel0afd","id":6031466,"avatar_url":"https://avatars.githubusercontent.com/u/6031466?v=3","gravatar_id":"","url":"https://api.github.com/users/miguel0afd","html_url":"https://github.com/miguel0afd","followers_url":"https://api.github.com/users/miguel0afd/followers","following_url":"https://api.github.com/users/miguel0afd/following{/other_user}","gists_url":"https://api.github.com/users/miguel0afd/gists{/gist_id}","starred_url":"https://api.github.com/users/miguel0afd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miguel0afd/subscriptions","organizations_url":"https://api.github.com/users/miguel0afd/orgs","repos_url":"https://api.github.com/users/miguel0afd/repos","events_url":"https://api.github.com/users/miguel0afd/events{/privacy}","received_events_url":"https://api.github.com/users/miguel0afd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/miguel0afd/crossdata","description":"Easy access to big things","fork":true,"url":"https://api.github.com/repos/miguel0afd/crossdata","forks_url":"https://api.github.com/repos/miguel0afd/crossdata/forks","keys_url":"https://api.github.com/repos/miguel0afd/crossdata/keys{/key_id}","collaborators_url":"https://api.github.com/repos/miguel0afd/crossdata/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/miguel0afd/crossdata/teams","hooks_url":"https://api.github.com/repos/miguel0afd/crossdata/hooks","issue_events_url":"https://api.github.com/repos/miguel0afd/crossdata/issues/events{/number}","events_url":"https://api.github.com/repos/miguel0afd/crossdata/events","assignees_url":"https://api.github.com/repos/miguel0afd/crossdata/assignees{/user}","branches_url":"https://api.github.com/repos/miguel0afd/crossdata/branches{/branch}","tags_url":"https://api.github.com/repos/miguel0afd/crossdata/tags","blobs_url":"https://api.github.com/repos/miguel0afd/crossdata/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/miguel0afd/crossdata/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/miguel0afd/crossdata/git/refs{/sha}","trees_url":"https://api.github.com/repos/miguel0afd/crossdata/git/trees{/sha}","statuses_url":"https://api.github.com/repos/miguel0afd/crossdata/statuses/{sha}","languages_url":"https://api.github.com/repos/miguel0afd/crossdata/languages","stargazers_url":"https://api.github.com/repos/miguel0afd/crossdata/stargazers","contributors_url":"https://api.github.com/repos/miguel0afd/crossdata/contributors","subscribers_url":"https://api.github.com/repos/miguel0afd/crossdata/subscribers","subscription_url":"https://api.github.com/repos/miguel0afd/crossdata/subscription","commits_url":"https://api.github.com/repos/miguel0afd/crossdata/commits{/sha}","git_commits_url":"https://api.github.com/repos/miguel0afd/crossdata/git/commits{/sha}","comments_url":"https://api.github.com/repos/miguel0afd/crossdata/comments{/number}","issue_comment_url":"https://api.github.com/repos/miguel0afd/crossdata/issues/comments{/number}","contents_url":"https://api.github.com/repos/miguel0afd/crossdata/contents/{+path}","compare_url":"https://api.github.com/repos/miguel0afd/crossdata/compare/{base}...{head}","merges_url":"https://api.github.com/repos/miguel0afd/crossdata/merges","archive_url":"https://api.github.com/repos/miguel0afd/crossdata/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/miguel0afd/crossdata/downloads","issues_url":"https://api.github.com/repos/miguel0afd/crossdata/issues{/number}","pulls_url":"https://api.github.com/repos/miguel0afd/crossdata/pulls{/number}","milestones_url":"https://api.github.com/repos/miguel0afd/crossdata/milestones{/number}","notifications_url":"https://api.github.com/repos/miguel0afd/crossdata/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/miguel0afd/crossdata/labels{/name}","releases_url":"https://api.github.com/repos/miguel0afd/crossdata/releases{/id}","deployments_url":"https://api.github.com/repos/miguel0afd/crossdata/deployments","created_at":"2014-11-27T20:46:40Z","updated_at":"2016-01-11T16:28:50Z","pushed_at":"2016-05-11T17:30:49Z","git_url":"git://github.com/miguel0afd/crossdata.git","ssh_url":"git@github.com:miguel0afd/crossdata.git","clone_url":"https://github.com/miguel0afd/crossdata.git","svn_url":"https://github.com/miguel0afd/crossdata","homepage":"http://stratio.github.io/crossdata","size":29641,"stargazers_count":1,"watchers_count":1,"language":"Scala","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":1,"default_branch":"master"}},"base":{"label":"Stratio:master","ref":"master","sha":"625f36df2a554db04ab32046e5622de377ac7a51","user":{"login":"Stratio","id":5228027,"avatar_url":"https://avatars.githubusercontent.com/u/5228027?v=3","gravatar_id":"","url":"https://api.github.com/users/Stratio","html_url":"https://github.com/Stratio","followers_url":"https://api.github.com/users/Stratio/followers","following_url":"https://api.github.com/users/Stratio/following{/other_user}","gists_url":"https://api.github.com/users/Stratio/gists{/gist_id}","starred_url":"https://api.github.com/users/Stratio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stratio/subscriptions","organizations_url":"https://api.github.com/users/Stratio/orgs","repos_url":"https://api.github.com/users/Stratio/repos","events_url":"https://api.github.com/users/Stratio/events{/privacy}","received_events_url":"https://api.github.com/users/Stratio/received_events","type":"Organization","site_admin":false},"repo":{"id":16574627,"name":"Crossdata","full_name":"Stratio/Crossdata","owner":{"login":"Stratio","id":5228027,"avatar_url":"https://avatars.githubusercontent.com/u/5228027?v=3","gravatar_id":"","url":"https://api.github.com/users/Stratio","html_url":"https://github.com/Stratio","followers_url":"https://api.github.com/users/Stratio/followers","following_url":"https://api.github.com/users/Stratio/following{/other_user}","gists_url":"https://api.github.com/users/Stratio/gists{/gist_id}","starred_url":"https://api.github.com/users/Stratio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stratio/subscriptions","organizations_url":"https://api.github.com/users/Stratio/orgs","repos_url":"https://api.github.com/users/Stratio/repos","events_url":"https://api.github.com/users/Stratio/events{/privacy}","received_events_url":"https://api.github.com/users/Stratio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Stratio/Crossdata","description":"Easy access to big things. Library for Apache Spark extending and improving its capabilities","fork":false,"url":"https://api.github.com/repos/Stratio/Crossdata","forks_url":"https://api.github.com/repos/Stratio/Crossdata/forks","keys_url":"https://api.github.com/repos/Stratio/Crossdata/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Stratio/Crossdata/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Stratio/Crossdata/teams","hooks_url":"https://api.github.com/repos/Stratio/Crossdata/hooks","issue_events_url":"https://api.github.com/repos/Stratio/Crossdata/issues/events{/number}","events_url":"https://api.github.com/repos/Stratio/Crossdata/events","assignees_url":"https://api.github.com/repos/Stratio/Crossdata/assignees{/user}","branches_url":"https://api.github.com/repos/Stratio/Crossdata/branches{/branch}","tags_url":"https://api.github.com/repos/Stratio/Crossdata/tags","blobs_url":"https://api.github.com/repos/Stratio/Crossdata/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Stratio/Crossdata/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Stratio/Crossdata/git/refs{/sha}","trees_url":"https://api.github.com/repos/Stratio/Crossdata/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Stratio/Crossdata/statuses/{sha}","languages_url":"https://api.github.com/repos/Stratio/Crossdata/languages","stargazers_url":"https://api.github.com/repos/Stratio/Crossdata/stargazers","contributors_url":"https://api.github.com/repos/Stratio/Crossdata/contributors","subscribers_url":"https://api.github.com/repos/Stratio/Crossdata/subscribers","subscription_url":"https://api.github.com/repos/Stratio/Crossdata/subscription","commits_url":"https://api.github.com/repos/Stratio/Crossdata/commits{/sha}","git_commits_url":"https://api.github.com/repos/Stratio/Crossdata/git/commits{/sha}","comments_url":"https://api.github.com/repos/Stratio/Crossdata/comments{/number}","issue_comment_url":"https://api.github.com/repos/Stratio/Crossdata/issues/comments{/number}","contents_url":"https://api.github.com/repos/Stratio/Crossdata/contents/{+path}","compare_url":"https://api.github.com/repos/Stratio/Crossdata/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Stratio/Crossdata/merges","archive_url":"https://api.github.com/repos/Stratio/Crossdata/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Stratio/Crossdata/downloads","issues_url":"https://api.github.com/repos/Stratio/Crossdata/issues{/number}","pulls_url":"https://api.github.com/repos/Stratio/Crossdata/pulls{/number}","milestones_url":"https://api.github.com/repos/Stratio/Crossdata/milestones{/number}","notifications_url":"https://api.github.com/repos/Stratio/Crossdata/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Stratio/Crossdata/labels{/name}","releases_url":"https://api.github.com/repos/Stratio/Crossdata/releases{/id}","deployments_url":"https://api.github.com/repos/Stratio/Crossdata/deployments","created_at":"2014-02-06T09:41:52Z","updated_at":"2016-05-04T11:10:11Z","pushed_at":"2016-05-11T17:30:50Z","git_url":"git://github.com/Stratio/Crossdata.git","ssh_url":"git@github.com:Stratio/Crossdata.git","clone_url":"https://github.com/Stratio/Crossdata.git","svn_url":"https://github.com/Stratio/Crossdata","homepage":"https://stratio.atlassian.net/wiki/display/CROSSDATA1x2/Home","size":29207,"stargazers_count":114,"watchers_count":114,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":36,"forks":24,"open_issues":36,"watchers":114,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Stratio/Crossdata/pulls/539"},"html":{"href":"https://github.com/Stratio/Crossdata/pull/539"},"issue":{"href":"https://api.github.com/repos/Stratio/Crossdata/issues/539"},"comments":{"href":"https://api.github.com/repos/Stratio/Crossdata/issues/539/comments"},"review_comments":{"href":"https://api.github.com/repos/Stratio/Crossdata/pulls/539/comments"},"review_comment":{"href":"https://api.github.com/repos/Stratio/Crossdata/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Stratio/Crossdata/pulls/539/commits"},"statuses":{"href":"https://api.github.com/repos/Stratio/Crossdata/statuses/ef321b65725c9ca2893e3529b863ccc67577eb34"}}}}