{"action":"created","comment":{"url":"https://api.github.com/repos/cloudflare/redoctober/pulls/comments/28114101","id":28114101,"diff_hunk":"@@ -45,12 +61,50 @@ func setUser(in ActiveUser, name string) {\n \tUserKeys[name] = in\n }\n \n+// matches returns true if this usage applies the user and label\n+// an empty array of Users indicates that all users are valid\n+func (usage Usage) matchesLabel(labels []string) bool {\n+\t// if asset has no labels always match\n+\tif len(labels) == 0 {\n+\t\treturn true\n+\t}\n+\t//","path":"keycache/keycache.go","position":66,"original_position":66,"commit_id":"f5d455a42a0648e2ea7cdabff0441a4a545d5f2f","original_commit_id":"b4e85e1e565b3f072afdd7e10752b45c762aa98b","user":{"login":"kisom","id":175578,"avatar_url":"https://avatars.githubusercontent.com/u/175578?v=3","gravatar_id":"","url":"https://api.github.com/users/kisom","html_url":"https://github.com/kisom","followers_url":"https://api.github.com/users/kisom/followers","following_url":"https://api.github.com/users/kisom/following{/other_user}","gists_url":"https://api.github.com/users/kisom/gists{/gist_id}","starred_url":"https://api.github.com/users/kisom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kisom/subscriptions","organizations_url":"https://api.github.com/users/kisom/orgs","repos_url":"https://api.github.com/users/kisom/repos","events_url":"https://api.github.com/users/kisom/events{/privacy}","received_events_url":"https://api.github.com/users/kisom/received_events","type":"User","site_admin":false},"body":"No comment.","created_at":"2015-04-10T00:05:45Z","updated_at":"2015-04-10T00:05:45Z","html_url":"https://github.com/cloudflare/redoctober/pull/38#discussion_r28114101","pull_request_url":"https://api.github.com/repos/cloudflare/redoctober/pulls/38","_links":{"self":{"href":"https://api.github.com/repos/cloudflare/redoctober/pulls/comments/28114101"},"html":{"href":"https://github.com/cloudflare/redoctober/pull/38#discussion_r28114101"},"pull_request":{"href":"https://api.github.com/repos/cloudflare/redoctober/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/cloudflare/redoctober/pulls/38","id":33006470,"html_url":"https://github.com/cloudflare/redoctober/pull/38","diff_url":"https://github.com/cloudflare/redoctober/pull/38.diff","patch_url":"https://github.com/cloudflare/redoctober/pull/38.patch","issue_url":"https://api.github.com/repos/cloudflare/redoctober/issues/38","number":38,"state":"open","locked":false,"title":"Changes to delegation model","user":{"login":"grittygrease","id":5125095,"avatar_url":"https://avatars.githubusercontent.com/u/5125095?v=3","gravatar_id":"","url":"https://api.github.com/users/grittygrease","html_url":"https://github.com/grittygrease","followers_url":"https://api.github.com/users/grittygrease/followers","following_url":"https://api.github.com/users/grittygrease/following{/other_user}","gists_url":"https://api.github.com/users/grittygrease/gists{/gist_id}","starred_url":"https://api.github.com/users/grittygrease/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grittygrease/subscriptions","organizations_url":"https://api.github.com/users/grittygrease/orgs","repos_url":"https://api.github.com/users/grittygrease/repos","events_url":"https://api.github.com/users/grittygrease/events{/privacy}","received_events_url":"https://api.github.com/users/grittygrease/received_events","type":"User","site_admin":false},"body":"- decryption can happen by non-admins\r\n- encrypted files can be given labels\r\n- delegation can limit decryption to specific users and labels","created_at":"2015-04-09T23:31:51Z","updated_at":"2015-04-10T00:05:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e80340d0f0ae3450e1c2851e1107c0947f07f66e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cloudflare/redoctober/pulls/38/commits","review_comments_url":"https://api.github.com/repos/cloudflare/redoctober/pulls/38/comments","review_comment_url":"https://api.github.com/repos/cloudflare/redoctober/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cloudflare/redoctober/issues/38/comments","statuses_url":"https://api.github.com/repos/cloudflare/redoctober/statuses/f5d455a42a0648e2ea7cdabff0441a4a545d5f2f","head":{"label":"cloudflare:nick/delegationmodel","ref":"nick/delegationmodel","sha":"f5d455a42a0648e2ea7cdabff0441a4a545d5f2f","user":{"login":"cloudflare","id":314135,"avatar_url":"https://avatars.githubusercontent.com/u/314135?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudflare","html_url":"https://github.com/cloudflare","followers_url":"https://api.github.com/users/cloudflare/followers","following_url":"https://api.github.com/users/cloudflare/following{/other_user}","gists_url":"https://api.github.com/users/cloudflare/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudflare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudflare/subscriptions","organizations_url":"https://api.github.com/users/cloudflare/orgs","repos_url":"https://api.github.com/users/cloudflare/repos","events_url":"https://api.github.com/users/cloudflare/events{/privacy}","received_events_url":"https://api.github.com/users/cloudflare/received_events","type":"Organization","site_admin":false},"repo":{"id":14510383,"name":"redoctober","full_name":"cloudflare/redoctober","owner":{"login":"cloudflare","id":314135,"avatar_url":"https://avatars.githubusercontent.com/u/314135?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudflare","html_url":"https://github.com/cloudflare","followers_url":"https://api.github.com/users/cloudflare/followers","following_url":"https://api.github.com/users/cloudflare/following{/other_user}","gists_url":"https://api.github.com/users/cloudflare/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudflare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudflare/subscriptions","organizations_url":"https://api.github.com/users/cloudflare/orgs","repos_url":"https://api.github.com/users/cloudflare/repos","events_url":"https://api.github.com/users/cloudflare/events{/privacy}","received_events_url":"https://api.github.com/users/cloudflare/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudflare/redoctober","description":"Go server for two-man rule style file encryption and decryption.","fork":false,"url":"https://api.github.com/repos/cloudflare/redoctober","forks_url":"https://api.github.com/repos/cloudflare/redoctober/forks","keys_url":"https://api.github.com/repos/cloudflare/redoctober/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudflare/redoctober/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudflare/redoctober/teams","hooks_url":"https://api.github.com/repos/cloudflare/redoctober/hooks","issue_events_url":"https://api.github.com/repos/cloudflare/redoctober/issues/events{/number}","events_url":"https://api.github.com/repos/cloudflare/redoctober/events","assignees_url":"https://api.github.com/repos/cloudflare/redoctober/assignees{/user}","branches_url":"https://api.github.com/repos/cloudflare/redoctober/branches{/branch}","tags_url":"https://api.github.com/repos/cloudflare/redoctober/tags","blobs_url":"https://api.github.com/repos/cloudflare/redoctober/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudflare/redoctober/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudflare/redoctober/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudflare/redoctober/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudflare/redoctober/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudflare/redoctober/languages","stargazers_url":"https://api.github.com/repos/cloudflare/redoctober/stargazers","contributors_url":"https://api.github.com/repos/cloudflare/redoctober/contributors","subscribers_url":"https://api.github.com/repos/cloudflare/redoctober/subscribers","subscription_url":"https://api.github.com/repos/cloudflare/redoctober/subscription","commits_url":"https://api.github.com/repos/cloudflare/redoctober/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudflare/redoctober/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudflare/redoctober/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudflare/redoctober/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudflare/redoctober/contents/{+path}","compare_url":"https://api.github.com/repos/cloudflare/redoctober/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudflare/redoctober/merges","archive_url":"https://api.github.com/repos/cloudflare/redoctober/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudflare/redoctober/downloads","issues_url":"https://api.github.com/repos/cloudflare/redoctober/issues{/number}","pulls_url":"https://api.github.com/repos/cloudflare/redoctober/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudflare/redoctober/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudflare/redoctober/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudflare/redoctober/labels{/name}","releases_url":"https://api.github.com/repos/cloudflare/redoctober/releases{/id}","created_at":"2013-11-19T01:15:58Z","updated_at":"2015-04-07T14:17:33Z","pushed_at":"2015-04-10T00:01:12Z","git_url":"git://github.com/cloudflare/redoctober.git","ssh_url":"git@github.com:cloudflare/redoctober.git","clone_url":"https://github.com/cloudflare/redoctober.git","svn_url":"https://github.com/cloudflare/redoctober","homepage":"http://blog.cloudflare.com/red-october-cloudflares-open-source-implementation-of-the-two-man-rule","size":492,"stargazers_count":789,"watchers_count":789,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":57,"mirror_url":null,"open_issues_count":7,"forks":57,"open_issues":7,"watchers":789,"default_branch":"master"}},"base":{"label":"cloudflare:master","ref":"master","sha":"e24e3f3244de5b891c2f359575daca6232e438e8","user":{"login":"cloudflare","id":314135,"avatar_url":"https://avatars.githubusercontent.com/u/314135?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudflare","html_url":"https://github.com/cloudflare","followers_url":"https://api.github.com/users/cloudflare/followers","following_url":"https://api.github.com/users/cloudflare/following{/other_user}","gists_url":"https://api.github.com/users/cloudflare/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudflare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudflare/subscriptions","organizations_url":"https://api.github.com/users/cloudflare/orgs","repos_url":"https://api.github.com/users/cloudflare/repos","events_url":"https://api.github.com/users/cloudflare/events{/privacy}","received_events_url":"https://api.github.com/users/cloudflare/received_events","type":"Organization","site_admin":false},"repo":{"id":14510383,"name":"redoctober","full_name":"cloudflare/redoctober","owner":{"login":"cloudflare","id":314135,"avatar_url":"https://avatars.githubusercontent.com/u/314135?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudflare","html_url":"https://github.com/cloudflare","followers_url":"https://api.github.com/users/cloudflare/followers","following_url":"https://api.github.com/users/cloudflare/following{/other_user}","gists_url":"https://api.github.com/users/cloudflare/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudflare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudflare/subscriptions","organizations_url":"https://api.github.com/users/cloudflare/orgs","repos_url":"https://api.github.com/users/cloudflare/repos","events_url":"https://api.github.com/users/cloudflare/events{/privacy}","received_events_url":"https://api.github.com/users/cloudflare/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudflare/redoctober","description":"Go server for two-man rule style file encryption and decryption.","fork":false,"url":"https://api.github.com/repos/cloudflare/redoctober","forks_url":"https://api.github.com/repos/cloudflare/redoctober/forks","keys_url":"https://api.github.com/repos/cloudflare/redoctober/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudflare/redoctober/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudflare/redoctober/teams","hooks_url":"https://api.github.com/repos/cloudflare/redoctober/hooks","issue_events_url":"https://api.github.com/repos/cloudflare/redoctober/issues/events{/number}","events_url":"https://api.github.com/repos/cloudflare/redoctober/events","assignees_url":"https://api.github.com/repos/cloudflare/redoctober/assignees{/user}","branches_url":"https://api.github.com/repos/cloudflare/redoctober/branches{/branch}","tags_url":"https://api.github.com/repos/cloudflare/redoctober/tags","blobs_url":"https://api.github.com/repos/cloudflare/redoctober/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudflare/redoctober/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudflare/redoctober/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudflare/redoctober/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudflare/redoctober/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudflare/redoctober/languages","stargazers_url":"https://api.github.com/repos/cloudflare/redoctober/stargazers","contributors_url":"https://api.github.com/repos/cloudflare/redoctober/contributors","subscribers_url":"https://api.github.com/repos/cloudflare/redoctober/subscribers","subscription_url":"https://api.github.com/repos/cloudflare/redoctober/subscription","commits_url":"https://api.github.com/repos/cloudflare/redoctober/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudflare/redoctober/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudflare/redoctober/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudflare/redoctober/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudflare/redoctober/contents/{+path}","compare_url":"https://api.github.com/repos/cloudflare/redoctober/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudflare/redoctober/merges","archive_url":"https://api.github.com/repos/cloudflare/redoctober/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudflare/redoctober/downloads","issues_url":"https://api.github.com/repos/cloudflare/redoctober/issues{/number}","pulls_url":"https://api.github.com/repos/cloudflare/redoctober/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudflare/redoctober/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudflare/redoctober/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudflare/redoctober/labels{/name}","releases_url":"https://api.github.com/repos/cloudflare/redoctober/releases{/id}","created_at":"2013-11-19T01:15:58Z","updated_at":"2015-04-07T14:17:33Z","pushed_at":"2015-04-10T00:01:12Z","git_url":"git://github.com/cloudflare/redoctober.git","ssh_url":"git@github.com:cloudflare/redoctober.git","clone_url":"https://github.com/cloudflare/redoctober.git","svn_url":"https://github.com/cloudflare/redoctober","homepage":"http://blog.cloudflare.com/red-october-cloudflares-open-source-implementation-of-the-two-man-rule","size":492,"stargazers_count":789,"watchers_count":789,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":57,"mirror_url":null,"open_issues_count":7,"forks":57,"open_issues":7,"watchers":789,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudflare/redoctober/pulls/38"},"html":{"href":"https://github.com/cloudflare/redoctober/pull/38"},"issue":{"href":"https://api.github.com/repos/cloudflare/redoctober/issues/38"},"comments":{"href":"https://api.github.com/repos/cloudflare/redoctober/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudflare/redoctober/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/cloudflare/redoctober/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cloudflare/redoctober/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/cloudflare/redoctober/statuses/f5d455a42a0648e2ea7cdabff0441a4a545d5f2f"}}}}