{"action":"closed","number":1037,"pull_request":{"url":"https://api.github.com/repos/VOLTTRON/volttron/pulls/1037","id":93201086,"html_url":"https://github.com/VOLTTRON/volttron/pull/1037","diff_url":"https://github.com/VOLTTRON/volttron/pull/1037.diff","patch_url":"https://github.com/VOLTTRON/volttron/pull/1037.patch","issue_url":"https://api.github.com/repos/VOLTTRON/volttron/issues/1037","number":1037,"state":"closed","locked":false,"title":"Auth subsystem, fixes #519","user":{"login":"zbeech","id":6453003,"avatar_url":"https://avatars.githubusercontent.com/u/6453003?v=3","gravatar_id":"","url":"https://api.github.com/users/zbeech","html_url":"https://github.com/zbeech","followers_url":"https://api.github.com/users/zbeech/followers","following_url":"https://api.github.com/users/zbeech/following{/other_user}","gists_url":"https://api.github.com/users/zbeech/gists{/gist_id}","starred_url":"https://api.github.com/users/zbeech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zbeech/subscriptions","organizations_url":"https://api.github.com/users/zbeech/orgs","repos_url":"https://api.github.com/users/zbeech/repos","events_url":"https://api.github.com/users/zbeech/events{/privacy}","received_events_url":"https://api.github.com/users/zbeech/received_events","type":"User","site_admin":false},"body":"Added auth subsystem to cache capabilities for each user ID. Without this cache the `RPC` and `PubSub` subsystems would have to make a RPC call to the `AuthService` for each capability check. (This means an extra RPC call was made for every `publish` or `rpc.call` to a protected topic or method.)\r\n\r\nThe lookup key for this cache is the `AuthEntry`'s `user_id` field. The `user-id` field is now required and must be unique. If this field is not specified in the `volttron-ctl auth add` command, then a UUID will automatically be used. This new requirements on the `user_id` field bumped the `AuthFile` version to 1.1. The AuthFile will be automatically updated and it is compatible with 1.0.\r\n\r\nAnother thing worth pointing out: the default value for `AuthFile.add`'s `overwrite` argument is now `False`. This seems to better apply the \"Zen of Python\": `Errors should never pass silently. Unless explicitly silenced.` This change should only effect platform code (which has been modified accordingly).\n\n<!-- Reviewable:start -->\n---\nThis change is [<img src=\"https://reviewable.io/review_button.svg\" height=\"34\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.io/reviews/volttron/volttron/1037)\n<!-- Reviewable:end -->\n","created_at":"2016-11-10T18:04:29Z","updated_at":"2016-11-23T21:33:40Z","closed_at":"2016-11-23T21:33:40Z","merged_at":"2016-11-23T21:33:40Z","merge_commit_sha":"e6b184aed0073c7441fc9864058537ce627e36ee","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/VOLTTRON/volttron/pulls/1037/commits","review_comments_url":"https://api.github.com/repos/VOLTTRON/volttron/pulls/1037/comments","review_comment_url":"https://api.github.com/repos/VOLTTRON/volttron/pulls/comments{/number}","comments_url":"https://api.github.com/repos/VOLTTRON/volttron/issues/1037/comments","statuses_url":"https://api.github.com/repos/VOLTTRON/volttron/statuses/96b830164ad211fdef602972175bb20fb7b8693e","head":{"label":"zbeech:auth_subsystem","ref":"auth_subsystem","sha":"96b830164ad211fdef602972175bb20fb7b8693e","user":{"login":"zbeech","id":6453003,"avatar_url":"https://avatars.githubusercontent.com/u/6453003?v=3","gravatar_id":"","url":"https://api.github.com/users/zbeech","html_url":"https://github.com/zbeech","followers_url":"https://api.github.com/users/zbeech/followers","following_url":"https://api.github.com/users/zbeech/following{/other_user}","gists_url":"https://api.github.com/users/zbeech/gists{/gist_id}","starred_url":"https://api.github.com/users/zbeech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zbeech/subscriptions","organizations_url":"https://api.github.com/users/zbeech/orgs","repos_url":"https://api.github.com/users/zbeech/repos","events_url":"https://api.github.com/users/zbeech/events{/privacy}","received_events_url":"https://api.github.com/users/zbeech/received_events","type":"User","site_admin":false},"repo":{"id":62262911,"name":"volttron","full_name":"zbeech/volttron","owner":{"login":"zbeech","id":6453003,"avatar_url":"https://avatars.githubusercontent.com/u/6453003?v=3","gravatar_id":"","url":"https://api.github.com/users/zbeech","html_url":"https://github.com/zbeech","followers_url":"https://api.github.com/users/zbeech/followers","following_url":"https://api.github.com/users/zbeech/following{/other_user}","gists_url":"https://api.github.com/users/zbeech/gists{/gist_id}","starred_url":"https://api.github.com/users/zbeech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zbeech/subscriptions","organizations_url":"https://api.github.com/users/zbeech/orgs","repos_url":"https://api.github.com/users/zbeech/repos","events_url":"https://api.github.com/users/zbeech/events{/privacy}","received_events_url":"https://api.github.com/users/zbeech/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zbeech/volttron","description":"VOLTTRON Distributed Control System Platform","fork":true,"url":"https://api.github.com/repos/zbeech/volttron","forks_url":"https://api.github.com/repos/zbeech/volttron/forks","keys_url":"https://api.github.com/repos/zbeech/volttron/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zbeech/volttron/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zbeech/volttron/teams","hooks_url":"https://api.github.com/repos/zbeech/volttron/hooks","issue_events_url":"https://api.github.com/repos/zbeech/volttron/issues/events{/number}","events_url":"https://api.github.com/repos/zbeech/volttron/events","assignees_url":"https://api.github.com/repos/zbeech/volttron/assignees{/user}","branches_url":"https://api.github.com/repos/zbeech/volttron/branches{/branch}","tags_url":"https://api.github.com/repos/zbeech/volttron/tags","blobs_url":"https://api.github.com/repos/zbeech/volttron/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zbeech/volttron/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zbeech/volttron/git/refs{/sha}","trees_url":"https://api.github.com/repos/zbeech/volttron/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zbeech/volttron/statuses/{sha}","languages_url":"https://api.github.com/repos/zbeech/volttron/languages","stargazers_url":"https://api.github.com/repos/zbeech/volttron/stargazers","contributors_url":"https://api.github.com/repos/zbeech/volttron/contributors","subscribers_url":"https://api.github.com/repos/zbeech/volttron/subscribers","subscription_url":"https://api.github.com/repos/zbeech/volttron/subscription","commits_url":"https://api.github.com/repos/zbeech/volttron/commits{/sha}","git_commits_url":"https://api.github.com/repos/zbeech/volttron/git/commits{/sha}","comments_url":"https://api.github.com/repos/zbeech/volttron/comments{/number}","issue_comment_url":"https://api.github.com/repos/zbeech/volttron/issues/comments{/number}","contents_url":"https://api.github.com/repos/zbeech/volttron/contents/{+path}","compare_url":"https://api.github.com/repos/zbeech/volttron/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zbeech/volttron/merges","archive_url":"https://api.github.com/repos/zbeech/volttron/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zbeech/volttron/downloads","issues_url":"https://api.github.com/repos/zbeech/volttron/issues{/number}","pulls_url":"https://api.github.com/repos/zbeech/volttron/pulls{/number}","milestones_url":"https://api.github.com/repos/zbeech/volttron/milestones{/number}","notifications_url":"https://api.github.com/repos/zbeech/volttron/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zbeech/volttron/labels{/name}","releases_url":"https://api.github.com/repos/zbeech/volttron/releases{/id}","deployments_url":"https://api.github.com/repos/zbeech/volttron/deployments","created_at":"2016-06-29T22:49:08Z","updated_at":"2016-06-29T22:49:11Z","pushed_at":"2016-11-23T21:15:47Z","git_url":"git://github.com/zbeech/volttron.git","ssh_url":"git@github.com:zbeech/volttron.git","clone_url":"https://github.com/zbeech/volttron.git","svn_url":"https://github.com/zbeech/volttron","homepage":null,"size":44136,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"VOLTTRON:develop","ref":"develop","sha":"aa79c47f649b2d54f4c4d8ce233fc20693e64a80","user":{"login":"VOLTTRON","id":5875448,"avatar_url":"https://avatars.githubusercontent.com/u/5875448?v=3","gravatar_id":"","url":"https://api.github.com/users/VOLTTRON","html_url":"https://github.com/VOLTTRON","followers_url":"https://api.github.com/users/VOLTTRON/followers","following_url":"https://api.github.com/users/VOLTTRON/following{/other_user}","gists_url":"https://api.github.com/users/VOLTTRON/gists{/gist_id}","starred_url":"https://api.github.com/users/VOLTTRON/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VOLTTRON/subscriptions","organizations_url":"https://api.github.com/users/VOLTTRON/orgs","repos_url":"https://api.github.com/users/VOLTTRON/repos","events_url":"https://api.github.com/users/VOLTTRON/events{/privacy}","received_events_url":"https://api.github.com/users/VOLTTRON/received_events","type":"Organization","site_admin":false},"repo":{"id":14191740,"name":"volttron","full_name":"VOLTTRON/volttron","owner":{"login":"VOLTTRON","id":5875448,"avatar_url":"https://avatars.githubusercontent.com/u/5875448?v=3","gravatar_id":"","url":"https://api.github.com/users/VOLTTRON","html_url":"https://github.com/VOLTTRON","followers_url":"https://api.github.com/users/VOLTTRON/followers","following_url":"https://api.github.com/users/VOLTTRON/following{/other_user}","gists_url":"https://api.github.com/users/VOLTTRON/gists{/gist_id}","starred_url":"https://api.github.com/users/VOLTTRON/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VOLTTRON/subscriptions","organizations_url":"https://api.github.com/users/VOLTTRON/orgs","repos_url":"https://api.github.com/users/VOLTTRON/repos","events_url":"https://api.github.com/users/VOLTTRON/events{/privacy}","received_events_url":"https://api.github.com/users/VOLTTRON/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/VOLTTRON/volttron","description":"VOLTTRON Distributed Control System Platform","fork":false,"url":"https://api.github.com/repos/VOLTTRON/volttron","forks_url":"https://api.github.com/repos/VOLTTRON/volttron/forks","keys_url":"https://api.github.com/repos/VOLTTRON/volttron/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VOLTTRON/volttron/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VOLTTRON/volttron/teams","hooks_url":"https://api.github.com/repos/VOLTTRON/volttron/hooks","issue_events_url":"https://api.github.com/repos/VOLTTRON/volttron/issues/events{/number}","events_url":"https://api.github.com/repos/VOLTTRON/volttron/events","assignees_url":"https://api.github.com/repos/VOLTTRON/volttron/assignees{/user}","branches_url":"https://api.github.com/repos/VOLTTRON/volttron/branches{/branch}","tags_url":"https://api.github.com/repos/VOLTTRON/volttron/tags","blobs_url":"https://api.github.com/repos/VOLTTRON/volttron/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VOLTTRON/volttron/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VOLTTRON/volttron/git/refs{/sha}","trees_url":"https://api.github.com/repos/VOLTTRON/volttron/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VOLTTRON/volttron/statuses/{sha}","languages_url":"https://api.github.com/repos/VOLTTRON/volttron/languages","stargazers_url":"https://api.github.com/repos/VOLTTRON/volttron/stargazers","contributors_url":"https://api.github.com/repos/VOLTTRON/volttron/contributors","subscribers_url":"https://api.github.com/repos/VOLTTRON/volttron/subscribers","subscription_url":"https://api.github.com/repos/VOLTTRON/volttron/subscription","commits_url":"https://api.github.com/repos/VOLTTRON/volttron/commits{/sha}","git_commits_url":"https://api.github.com/repos/VOLTTRON/volttron/git/commits{/sha}","comments_url":"https://api.github.com/repos/VOLTTRON/volttron/comments{/number}","issue_comment_url":"https://api.github.com/repos/VOLTTRON/volttron/issues/comments{/number}","contents_url":"https://api.github.com/repos/VOLTTRON/volttron/contents/{+path}","compare_url":"https://api.github.com/repos/VOLTTRON/volttron/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VOLTTRON/volttron/merges","archive_url":"https://api.github.com/repos/VOLTTRON/volttron/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VOLTTRON/volttron/downloads","issues_url":"https://api.github.com/repos/VOLTTRON/volttron/issues{/number}","pulls_url":"https://api.github.com/repos/VOLTTRON/volttron/pulls{/number}","milestones_url":"https://api.github.com/repos/VOLTTRON/volttron/milestones{/number}","notifications_url":"https://api.github.com/repos/VOLTTRON/volttron/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VOLTTRON/volttron/labels{/name}","releases_url":"https://api.github.com/repos/VOLTTRON/volttron/releases{/id}","deployments_url":"https://api.github.com/repos/VOLTTRON/volttron/deployments","created_at":"2013-11-07T02:07:46Z","updated_at":"2016-11-21T04:04:18Z","pushed_at":"2016-11-23T21:33:40Z","git_url":"git://github.com/VOLTTRON/volttron.git","ssh_url":"git@github.com:VOLTTRON/volttron.git","clone_url":"https://github.com/VOLTTRON/volttron.git","svn_url":"https://github.com/VOLTTRON/volttron","homepage":null,"size":92232,"stargazers_count":103,"watchers_count":103,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":53,"mirror_url":null,"open_issues_count":254,"forks":53,"open_issues":254,"watchers":103,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/VOLTTRON/volttron/pulls/1037"},"html":{"href":"https://github.com/VOLTTRON/volttron/pull/1037"},"issue":{"href":"https://api.github.com/repos/VOLTTRON/volttron/issues/1037"},"comments":{"href":"https://api.github.com/repos/VOLTTRON/volttron/issues/1037/comments"},"review_comments":{"href":"https://api.github.com/repos/VOLTTRON/volttron/pulls/1037/comments"},"review_comment":{"href":"https://api.github.com/repos/VOLTTRON/volttron/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/VOLTTRON/volttron/pulls/1037/commits"},"statuses":{"href":"https://api.github.com/repos/VOLTTRON/volttron/statuses/96b830164ad211fdef602972175bb20fb7b8693e"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"craig8","id":3979063,"avatar_url":"https://avatars.githubusercontent.com/u/3979063?v=3","gravatar_id":"","url":"https://api.github.com/users/craig8","html_url":"https://github.com/craig8","followers_url":"https://api.github.com/users/craig8/followers","following_url":"https://api.github.com/users/craig8/following{/other_user}","gists_url":"https://api.github.com/users/craig8/gists{/gist_id}","starred_url":"https://api.github.com/users/craig8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craig8/subscriptions","organizations_url":"https://api.github.com/users/craig8/orgs","repos_url":"https://api.github.com/users/craig8/repos","events_url":"https://api.github.com/users/craig8/events{/privacy}","received_events_url":"https://api.github.com/users/craig8/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":12,"additions":254,"deletions":51,"changed_files":15}}
{"actor":{"display_login":"craig8"}}