{"action":"opened","number":504,"pull_request":{"url":"https://api.github.com/repos/theupdateframework/tuf/pulls/504","id":146537052,"html_url":"https://github.com/theupdateframework/tuf/pull/504","diff_url":"https://github.com/theupdateframework/tuf/pull/504.diff","patch_url":"https://github.com/theupdateframework/tuf/pull/504.patch","issue_url":"https://api.github.com/repos/theupdateframework/tuf/issues/504","number":504,"state":"open","locked":false,"title":"Implement TAP 4 (multiple repository consensus on entrusted targets) - WIP","user":{"login":"vladimir-v-diaz","id":3520883,"avatar_url":"https://avatars2.githubusercontent.com/u/3520883?v=4","gravatar_id":"","url":"https://api.github.com/users/vladimir-v-diaz","html_url":"https://github.com/vladimir-v-diaz","followers_url":"https://api.github.com/users/vladimir-v-diaz/followers","following_url":"https://api.github.com/users/vladimir-v-diaz/following{/other_user}","gists_url":"https://api.github.com/users/vladimir-v-diaz/gists{/gist_id}","starred_url":"https://api.github.com/users/vladimir-v-diaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladimir-v-diaz/subscriptions","organizations_url":"https://api.github.com/users/vladimir-v-diaz/orgs","repos_url":"https://api.github.com/users/vladimir-v-diaz/repos","events_url":"https://api.github.com/users/vladimir-v-diaz/events{/privacy}","received_events_url":"https://api.github.com/users/vladimir-v-diaz/received_events","type":"User","site_admin":false},"body":"**Fixes issue #**:\r\n\r\n**Description of the changes being introduced by the pull request**:\r\nThis is an implementation of [TAP 4](https://github.com/theupdateframework/taps/blob/master/tap4.md) (the map file).  A MultiRepoUpdater class is added that reads `map.json`, determines which repository URL to use for a requested target file, and returns the updater object and targetinfo for the requested target file.  The client is free to use the updater object to download the target file corresponding to the targetinfo.  An example is provided below:\r\n\r\n```Python\r\nmulti_repo_updater = tuf.client.updater.MultiRepoUpdater(\"path/to/map.json\")\r\ntargetinfo, my_updater = multi_repo_updater.get_one_valid_targetinfo(\"foo.tgz\")\r\n\r\n# save the `foo.tgz` target file to \"path/to/destination\".\r\nmy_updater.download_target(targetinfo, \"path/to/destination\")\r\n```\r\n\r\nThe client can also access the updater objects for each repository...\r\n```Python\r\npypi_updater = multi_repo_updater.repository_names_to_updaters['pypi']\r\npypi_updater.download_target(...)\r\n```\r\n\r\n@awwad PIease have a look at this PR and let me know if it supports everything needed to create Uptane repositories.  The repository tools behave as they currently do, but they now support the creation of multiple repositories within the same Python process.\r\n\r\n**Please verify and check that the pull request fulfills the following\r\nrequirements**:\r\n\r\n- [ ] The code follows the [Code Style Guidelines](https://github.com/secure-systems-lab/code-style-guidelines#code-style-guidelines)\r\n- [ ] Tests have been added for the bug fix or new feature\r\n- [ ] Docs have been added for the bug fix or new feature\r\n\r\n\r\n","created_at":"2017-10-13T19:30:24Z","updated_at":"2017-10-13T19:30:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/theupdateframework/tuf/pulls/504/commits","review_comments_url":"https://api.github.com/repos/theupdateframework/tuf/pulls/504/comments","review_comment_url":"https://api.github.com/repos/theupdateframework/tuf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/theupdateframework/tuf/issues/504/comments","statuses_url":"https://api.github.com/repos/theupdateframework/tuf/statuses/4126fc894510c11880bb8e5de82a3022800f8782","head":{"label":"vladimir-v-diaz:tap4","ref":"tap4","sha":"4126fc894510c11880bb8e5de82a3022800f8782","user":{"login":"vladimir-v-diaz","id":3520883,"avatar_url":"https://avatars2.githubusercontent.com/u/3520883?v=4","gravatar_id":"","url":"https://api.github.com/users/vladimir-v-diaz","html_url":"https://github.com/vladimir-v-diaz","followers_url":"https://api.github.com/users/vladimir-v-diaz/followers","following_url":"https://api.github.com/users/vladimir-v-diaz/following{/other_user}","gists_url":"https://api.github.com/users/vladimir-v-diaz/gists{/gist_id}","starred_url":"https://api.github.com/users/vladimir-v-diaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladimir-v-diaz/subscriptions","organizations_url":"https://api.github.com/users/vladimir-v-diaz/orgs","repos_url":"https://api.github.com/users/vladimir-v-diaz/repos","events_url":"https://api.github.com/users/vladimir-v-diaz/events{/privacy}","received_events_url":"https://api.github.com/users/vladimir-v-diaz/received_events","type":"User","site_admin":false},"repo":{"id":17477810,"name":"tuf","full_name":"vladimir-v-diaz/tuf","owner":{"login":"vladimir-v-diaz","id":3520883,"avatar_url":"https://avatars2.githubusercontent.com/u/3520883?v=4","gravatar_id":"","url":"https://api.github.com/users/vladimir-v-diaz","html_url":"https://github.com/vladimir-v-diaz","followers_url":"https://api.github.com/users/vladimir-v-diaz/followers","following_url":"https://api.github.com/users/vladimir-v-diaz/following{/other_user}","gists_url":"https://api.github.com/users/vladimir-v-diaz/gists{/gist_id}","starred_url":"https://api.github.com/users/vladimir-v-diaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladimir-v-diaz/subscriptions","organizations_url":"https://api.github.com/users/vladimir-v-diaz/orgs","repos_url":"https://api.github.com/users/vladimir-v-diaz/repos","events_url":"https://api.github.com/users/vladimir-v-diaz/events{/privacy}","received_events_url":"https://api.github.com/users/vladimir-v-diaz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vladimir-v-diaz/tuf","description":"Like the S in HTTPS, a plug-and-play secure updater for your software","fork":true,"url":"https://api.github.com/repos/vladimir-v-diaz/tuf","forks_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/forks","keys_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/teams","hooks_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/hooks","issue_events_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/issues/events{/number}","events_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/events","assignees_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/assignees{/user}","branches_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/branches{/branch}","tags_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/tags","blobs_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/git/refs{/sha}","trees_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/statuses/{sha}","languages_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/languages","stargazers_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/stargazers","contributors_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/contributors","subscribers_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/subscribers","subscription_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/subscription","commits_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/commits{/sha}","git_commits_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/git/commits{/sha}","comments_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/comments{/number}","issue_comment_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/issues/comments{/number}","contents_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/contents/{+path}","compare_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/merges","archive_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/downloads","issues_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/issues{/number}","pulls_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/pulls{/number}","milestones_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/milestones{/number}","notifications_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/labels{/name}","releases_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/releases{/id}","deployments_url":"https://api.github.com/repos/vladimir-v-diaz/tuf/deployments","created_at":"2014-03-06T13:03:12Z","updated_at":"2016-01-20T15:30:22Z","pushed_at":"2017-10-13T16:29:35Z","git_url":"git://github.com/vladimir-v-diaz/tuf.git","ssh_url":"git@github.com:vladimir-v-diaz/tuf.git","clone_url":"https://github.com/vladimir-v-diaz/tuf.git","svn_url":"https://github.com/vladimir-v-diaz/tuf","homepage":"http://theupdateframework.com/","size":12063,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"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":"develop"}},"base":{"label":"theupdateframework:develop","ref":"develop","sha":"cba1caed1a325348bcee5632c95487911691dc85","user":{"login":"theupdateframework","id":4633028,"avatar_url":"https://avatars2.githubusercontent.com/u/4633028?v=4","gravatar_id":"","url":"https://api.github.com/users/theupdateframework","html_url":"https://github.com/theupdateframework","followers_url":"https://api.github.com/users/theupdateframework/followers","following_url":"https://api.github.com/users/theupdateframework/following{/other_user}","gists_url":"https://api.github.com/users/theupdateframework/gists{/gist_id}","starred_url":"https://api.github.com/users/theupdateframework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theupdateframework/subscriptions","organizations_url":"https://api.github.com/users/theupdateframework/orgs","repos_url":"https://api.github.com/users/theupdateframework/repos","events_url":"https://api.github.com/users/theupdateframework/events{/privacy}","received_events_url":"https://api.github.com/users/theupdateframework/received_events","type":"Organization","site_admin":false},"repo":{"id":7942805,"name":"tuf","full_name":"theupdateframework/tuf","owner":{"login":"theupdateframework","id":4633028,"avatar_url":"https://avatars2.githubusercontent.com/u/4633028?v=4","gravatar_id":"","url":"https://api.github.com/users/theupdateframework","html_url":"https://github.com/theupdateframework","followers_url":"https://api.github.com/users/theupdateframework/followers","following_url":"https://api.github.com/users/theupdateframework/following{/other_user}","gists_url":"https://api.github.com/users/theupdateframework/gists{/gist_id}","starred_url":"https://api.github.com/users/theupdateframework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theupdateframework/subscriptions","organizations_url":"https://api.github.com/users/theupdateframework/orgs","repos_url":"https://api.github.com/users/theupdateframework/repos","events_url":"https://api.github.com/users/theupdateframework/events{/privacy}","received_events_url":"https://api.github.com/users/theupdateframework/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/theupdateframework/tuf","description":"Like the S in HTTPS, a plug-and-play library for securing a software updater","fork":false,"url":"https://api.github.com/repos/theupdateframework/tuf","forks_url":"https://api.github.com/repos/theupdateframework/tuf/forks","keys_url":"https://api.github.com/repos/theupdateframework/tuf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theupdateframework/tuf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theupdateframework/tuf/teams","hooks_url":"https://api.github.com/repos/theupdateframework/tuf/hooks","issue_events_url":"https://api.github.com/repos/theupdateframework/tuf/issues/events{/number}","events_url":"https://api.github.com/repos/theupdateframework/tuf/events","assignees_url":"https://api.github.com/repos/theupdateframework/tuf/assignees{/user}","branches_url":"https://api.github.com/repos/theupdateframework/tuf/branches{/branch}","tags_url":"https://api.github.com/repos/theupdateframework/tuf/tags","blobs_url":"https://api.github.com/repos/theupdateframework/tuf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theupdateframework/tuf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theupdateframework/tuf/git/refs{/sha}","trees_url":"https://api.github.com/repos/theupdateframework/tuf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theupdateframework/tuf/statuses/{sha}","languages_url":"https://api.github.com/repos/theupdateframework/tuf/languages","stargazers_url":"https://api.github.com/repos/theupdateframework/tuf/stargazers","contributors_url":"https://api.github.com/repos/theupdateframework/tuf/contributors","subscribers_url":"https://api.github.com/repos/theupdateframework/tuf/subscribers","subscription_url":"https://api.github.com/repos/theupdateframework/tuf/subscription","commits_url":"https://api.github.com/repos/theupdateframework/tuf/commits{/sha}","git_commits_url":"https://api.github.com/repos/theupdateframework/tuf/git/commits{/sha}","comments_url":"https://api.github.com/repos/theupdateframework/tuf/comments{/number}","issue_comment_url":"https://api.github.com/repos/theupdateframework/tuf/issues/comments{/number}","contents_url":"https://api.github.com/repos/theupdateframework/tuf/contents/{+path}","compare_url":"https://api.github.com/repos/theupdateframework/tuf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theupdateframework/tuf/merges","archive_url":"https://api.github.com/repos/theupdateframework/tuf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theupdateframework/tuf/downloads","issues_url":"https://api.github.com/repos/theupdateframework/tuf/issues{/number}","pulls_url":"https://api.github.com/repos/theupdateframework/tuf/pulls{/number}","milestones_url":"https://api.github.com/repos/theupdateframework/tuf/milestones{/number}","notifications_url":"https://api.github.com/repos/theupdateframework/tuf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theupdateframework/tuf/labels{/name}","releases_url":"https://api.github.com/repos/theupdateframework/tuf/releases{/id}","deployments_url":"https://api.github.com/repos/theupdateframework/tuf/deployments","created_at":"2013-01-31T18:36:34Z","updated_at":"2017-10-08T01:44:54Z","pushed_at":"2017-10-13T16:34:31Z","git_url":"git://github.com/theupdateframework/tuf.git","ssh_url":"git@github.com:theupdateframework/tuf.git","clone_url":"https://github.com/theupdateframework/tuf.git","svn_url":"https://github.com/theupdateframework/tuf","homepage":"https://theupdateframework.com/","size":12053,"stargazers_count":615,"watchers_count":615,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":80,"mirror_url":null,"open_issues_count":100,"forks":80,"open_issues":100,"watchers":615,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/theupdateframework/tuf/pulls/504"},"html":{"href":"https://github.com/theupdateframework/tuf/pull/504"},"issue":{"href":"https://api.github.com/repos/theupdateframework/tuf/issues/504"},"comments":{"href":"https://api.github.com/repos/theupdateframework/tuf/issues/504/comments"},"review_comments":{"href":"https://api.github.com/repos/theupdateframework/tuf/pulls/504/comments"},"review_comment":{"href":"https://api.github.com/repos/theupdateframework/tuf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/theupdateframework/tuf/pulls/504/commits"},"statuses":{"href":"https://api.github.com/repos/theupdateframework/tuf/statuses/4126fc894510c11880bb8e5de82a3022800f8782"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":12,"additions":600,"deletions":80,"changed_files":7}}
{"actor":{"display_login":"vladimir-v-diaz"}}