{"action":"closed","number":622,"pull_request":{"url":"https://api.github.com/repos/theupdateframework/tuf/pulls/622","id":167271640,"html_url":"https://github.com/theupdateframework/tuf/pull/622","diff_url":"https://github.com/theupdateframework/tuf/pull/622.diff","patch_url":"https://github.com/theupdateframework/tuf/pull/622.patch","issue_url":"https://api.github.com/repos/theupdateframework/tuf/issues/622","number":622,"state":"closed","locked":false,"title":"Add --sign option to repo.py","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\nThe issue tracker does not have an issue for this task.\r\n\r\n**Description of the changes being introduced by the pull request**:\r\n\r\nThis pull request adds the `--sign` command-line option to `repo.py`.  Users can use this option to sign for specific metadata in the repo.  For convenience, the `Snapshot` and `Timestamp` are automatically signed, if possible.\r\n\r\n```Bash\r\n(env) $ cat tufrepo/metadata/timestamp.json\r\n{\r\n \"signatures\": [\r\n  {\r\n   \"keyid\": \"794104c6cd8e018bcf65e1accf208470ec7ea1cc07b8fa7a3384d05e71cf8544\",\r\n   \"sig\": \"3046022100cdda4308fbc2c6a41ab1b4a5c0ec375c0c93d4f0c869a86544e5852b837bfd87022100e9602bc15289bf29f1ae1d8ec4ccf968f8437ce3b8f4e7f8fecf8e3b8a331a62\"\r\n  }\r\n ],\r\n \"signed\": {\r\n  \"_type\": \"timestamp\",\r\n  \"expires\": \"2018-02-06T22:24:16Z\",\r\n  \"meta\": {\r\n   \"snapshot.json\": {\r\n    \"hashes\": {\r\n     \"sha256\": \"f5b17893d8190eb40a4d7c494964d1fc04d5b3f805d7a19cb5ba57d7696fa240\"\r\n    },\r\n    \"length\": 484,\r\n    \"version\": 1\r\n   }\r\n  },\r\n  \"spec_version\": \"1.0\",\r\n  \"version\": 1\r\n }\r\n}(env) $ repo.py --sign tufkeystore/timestamp_key --role timestamp\r\nEnter a password for the encrypted ECDSA key (tufkeystore/timestamp_key):\r\n(env) $ cat tufrepo/metadata/timestamp.json\r\n{\r\n \"signatures\": [\r\n  {\r\n   \"keyid\": \"794104c6cd8e018bcf65e1accf208470ec7ea1cc07b8fa7a3384d05e71cf8544\",\r\n   \"sig\": \"3045022100983d22e6dbc7c632bedcb7d321932788a102dda7e2312a73de0e2a95aed18df9022058c9c683b008f4689ff96a1841ce125fc0f83a63f653a0a4c8514c73a80b8f1f\"\r\n  }\r\n ],\r\n \"signed\": {\r\n  \"_type\": \"timestamp\",\r\n  \"expires\": \"2018-02-06T22:24:16Z\",\r\n  \"meta\": {\r\n   \"snapshot.json\": {\r\n    \"hashes\": {\r\n     \"sha256\": \"d23a15d9f8f4654d9a941c4cf6b4c7fde655f60aa7ce5f38de77784d6c45042a\"\r\n    },\r\n    \"length\": 482,\r\n    \"version\": 2\r\n   }\r\n  },\r\n  \"spec_version\": \"1.0\",\r\n  \"version\": 2\r\n }\r\n}\r\n```\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\nSigned-off-by: Vladimir Diaz \\<vladimir.v.diaz@gmail.com>","created_at":"2018-02-05T22:27:16Z","updated_at":"2018-02-06T15:54:24Z","closed_at":"2018-02-06T15:54:24Z","merged_at":"2018-02-06T15:54:24Z","merge_commit_sha":"ef8bbfe61fa60bf06410b6f27b6d79453bb91ca4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/theupdateframework/tuf/pulls/622/commits","review_comments_url":"https://api.github.com/repos/theupdateframework/tuf/pulls/622/comments","review_comment_url":"https://api.github.com/repos/theupdateframework/tuf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/theupdateframework/tuf/issues/622/comments","statuses_url":"https://api.github.com/repos/theupdateframework/tuf/statuses/c3b05a8e0542db518e7e3a75a8a2e93f006c3728","head":{"label":"vladimir-v-diaz:add_sign_option","ref":"add_sign_option","sha":"c3b05a8e0542db518e7e3a75a8a2e93f006c3728","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":"2018-02-05T22:20:46Z","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":12855,"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,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"theupdateframework:develop","ref":"develop","sha":"3215096afc8b067657085be0f528a7f41657a5d6","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":"A framework for securing software update systems","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":"2018-02-05T21:41:26Z","pushed_at":"2018-02-06T15:54:24Z","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":12840,"stargazers_count":697,"watchers_count":697,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":94,"mirror_url":null,"archived":false,"open_issues_count":105,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":94,"open_issues":105,"watchers":697,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/theupdateframework/tuf/pulls/622"},"html":{"href":"https://github.com/theupdateframework/tuf/pull/622"},"issue":{"href":"https://api.github.com/repos/theupdateframework/tuf/issues/622"},"comments":{"href":"https://api.github.com/repos/theupdateframework/tuf/issues/622/comments"},"review_comments":{"href":"https://api.github.com/repos/theupdateframework/tuf/pulls/622/comments"},"review_comment":{"href":"https://api.github.com/repos/theupdateframework/tuf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/theupdateframework/tuf/pulls/622/commits"},"statuses":{"href":"https://api.github.com/repos/theupdateframework/tuf/statuses/c3b05a8e0542db518e7e3a75a8a2e93f006c3728"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"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},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":79,"deletions":2,"changed_files":2}}
{"actor":{"display_login":"vladimir-v-diaz"}}