{"action":"closed","number":3,"pull_request":{"url":"https://api.github.com/repos/leo-project/leo_commons/pulls/3","id":38949072,"html_url":"https://github.com/leo-project/leo_commons/pull/3","diff_url":"https://github.com/leo-project/leo_commons/pull/3.diff","patch_url":"https://github.com/leo-project/leo_commons/pull/3.patch","issue_url":"https://api.github.com/repos/leo-project/leo_commons/issues/3","number":3,"state":"closed","locked":false,"title":"Support AWS Signature Version 4 (Added leo_hex:binary_to_hexbin)","user":{"login":"windkit","id":360884,"avatar_url":"https://avatars.githubusercontent.com/u/360884?v=3","gravatar_id":"","url":"https://api.github.com/users/windkit","html_url":"https://github.com/windkit","followers_url":"https://api.github.com/users/windkit/followers","following_url":"https://api.github.com/users/windkit/following{/other_user}","gists_url":"https://api.github.com/users/windkit/gists{/gist_id}","starred_url":"https://api.github.com/users/windkit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/windkit/subscriptions","organizations_url":"https://api.github.com/users/windkit/orgs","repos_url":"https://api.github.com/users/windkit/repos","events_url":"https://api.github.com/users/windkit/events{/privacy}","received_events_url":"https://api.github.com/users/windkit/received_events","type":"User","site_admin":false},"body":"### Brief Description\r\n - Related to issue leo-project/leofs#283 leo-project/leofs#373\r\n\r\nThe flow is similar to Version 2 with two major differences\r\n - Payload SHA-256 is used for Signature\r\n - Chunked Upload\r\n\r\n### Related Pull Requests\r\n - https://github.com/leo-project/leo_gateway/pull/23\r\n - https://github.com/leo-project/leo_s3_libs/pull/1\r\n - https://github.com/leo-project/leo_commons/pull/3\r\n\r\n### Using Authorization Header\r\n#### Checksum Precomputed\r\nhttp://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-header-based-auth.html\r\n - SHA-256 Checksum Provided in HTTP Header `x-amz-content-sha256`\r\n - Small Modification\r\n\r\n#### Amazon Chunked Upload\r\nhttp://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-streaming.html\r\n - \"Rolling\" Checksum of Chunks\r\n\r\n### Using Query Parameters\r\nhttp://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html\r\n\r\n### Using HTTP Post\r\nhttp://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-authentication-HTTPPOST.html","created_at":"2015-07-01T05:19:00Z","updated_at":"2015-07-01T06:28:40Z","closed_at":"2015-07-01T06:28:40Z","merged_at":"2015-07-01T06:28:40Z","merge_commit_sha":"1ce4840db7ffd1e57bd8cac20a39ddd0df251ac2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/leo-project/leo_commons/pulls/3/commits","review_comments_url":"https://api.github.com/repos/leo-project/leo_commons/pulls/3/comments","review_comment_url":"https://api.github.com/repos/leo-project/leo_commons/pulls/comments{/number}","comments_url":"https://api.github.com/repos/leo-project/leo_commons/issues/3/comments","statuses_url":"https://api.github.com/repos/leo-project/leo_commons/statuses/cfba7958e4669afd56308c8830f5e8eb52feac14","head":{"label":"windkit:sign_v4","ref":"sign_v4","sha":"cfba7958e4669afd56308c8830f5e8eb52feac14","user":{"login":"windkit","id":360884,"avatar_url":"https://avatars.githubusercontent.com/u/360884?v=3","gravatar_id":"","url":"https://api.github.com/users/windkit","html_url":"https://github.com/windkit","followers_url":"https://api.github.com/users/windkit/followers","following_url":"https://api.github.com/users/windkit/following{/other_user}","gists_url":"https://api.github.com/users/windkit/gists{/gist_id}","starred_url":"https://api.github.com/users/windkit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/windkit/subscriptions","organizations_url":"https://api.github.com/users/windkit/orgs","repos_url":"https://api.github.com/users/windkit/repos","events_url":"https://api.github.com/users/windkit/events{/privacy}","received_events_url":"https://api.github.com/users/windkit/received_events","type":"User","site_admin":false},"repo":{"id":38340772,"name":"leo_commons","full_name":"windkit/leo_commons","owner":{"login":"windkit","id":360884,"avatar_url":"https://avatars.githubusercontent.com/u/360884?v=3","gravatar_id":"","url":"https://api.github.com/users/windkit","html_url":"https://github.com/windkit","followers_url":"https://api.github.com/users/windkit/followers","following_url":"https://api.github.com/users/windkit/following{/other_user}","gists_url":"https://api.github.com/users/windkit/gists{/gist_id}","starred_url":"https://api.github.com/users/windkit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/windkit/subscriptions","organizations_url":"https://api.github.com/users/windkit/orgs","repos_url":"https://api.github.com/users/windkit/repos","events_url":"https://api.github.com/users/windkit/events{/privacy}","received_events_url":"https://api.github.com/users/windkit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/windkit/leo_commons","description":"leo_commons include common modules for LeoFS and other Erlang applications.","fork":true,"url":"https://api.github.com/repos/windkit/leo_commons","forks_url":"https://api.github.com/repos/windkit/leo_commons/forks","keys_url":"https://api.github.com/repos/windkit/leo_commons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/windkit/leo_commons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/windkit/leo_commons/teams","hooks_url":"https://api.github.com/repos/windkit/leo_commons/hooks","issue_events_url":"https://api.github.com/repos/windkit/leo_commons/issues/events{/number}","events_url":"https://api.github.com/repos/windkit/leo_commons/events","assignees_url":"https://api.github.com/repos/windkit/leo_commons/assignees{/user}","branches_url":"https://api.github.com/repos/windkit/leo_commons/branches{/branch}","tags_url":"https://api.github.com/repos/windkit/leo_commons/tags","blobs_url":"https://api.github.com/repos/windkit/leo_commons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/windkit/leo_commons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/windkit/leo_commons/git/refs{/sha}","trees_url":"https://api.github.com/repos/windkit/leo_commons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/windkit/leo_commons/statuses/{sha}","languages_url":"https://api.github.com/repos/windkit/leo_commons/languages","stargazers_url":"https://api.github.com/repos/windkit/leo_commons/stargazers","contributors_url":"https://api.github.com/repos/windkit/leo_commons/contributors","subscribers_url":"https://api.github.com/repos/windkit/leo_commons/subscribers","subscription_url":"https://api.github.com/repos/windkit/leo_commons/subscription","commits_url":"https://api.github.com/repos/windkit/leo_commons/commits{/sha}","git_commits_url":"https://api.github.com/repos/windkit/leo_commons/git/commits{/sha}","comments_url":"https://api.github.com/repos/windkit/leo_commons/comments{/number}","issue_comment_url":"https://api.github.com/repos/windkit/leo_commons/issues/comments{/number}","contents_url":"https://api.github.com/repos/windkit/leo_commons/contents/{+path}","compare_url":"https://api.github.com/repos/windkit/leo_commons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/windkit/leo_commons/merges","archive_url":"https://api.github.com/repos/windkit/leo_commons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/windkit/leo_commons/downloads","issues_url":"https://api.github.com/repos/windkit/leo_commons/issues{/number}","pulls_url":"https://api.github.com/repos/windkit/leo_commons/pulls{/number}","milestones_url":"https://api.github.com/repos/windkit/leo_commons/milestones{/number}","notifications_url":"https://api.github.com/repos/windkit/leo_commons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/windkit/leo_commons/labels{/name}","releases_url":"https://api.github.com/repos/windkit/leo_commons/releases{/id}","created_at":"2015-07-01T00:50:06Z","updated_at":"2015-07-01T00:50:08Z","pushed_at":"2015-07-01T00:55:43Z","git_url":"git://github.com/windkit/leo_commons.git","ssh_url":"git@github.com:windkit/leo_commons.git","clone_url":"https://github.com/windkit/leo_commons.git","svn_url":"https://github.com/windkit/leo_commons","homepage":"http://leo-project.net/leofs","size":1587,"stargazers_count":0,"watchers_count":0,"language":"Erlang","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":0,"default_branch":"develop"}},"base":{"label":"leo-project:develop","ref":"develop","sha":"1f26fc13b0fea9eddce702f8174fc178244cb886","user":{"login":"leo-project","id":1684134,"avatar_url":"https://avatars.githubusercontent.com/u/1684134?v=3","gravatar_id":"","url":"https://api.github.com/users/leo-project","html_url":"https://github.com/leo-project","followers_url":"https://api.github.com/users/leo-project/followers","following_url":"https://api.github.com/users/leo-project/following{/other_user}","gists_url":"https://api.github.com/users/leo-project/gists{/gist_id}","starred_url":"https://api.github.com/users/leo-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leo-project/subscriptions","organizations_url":"https://api.github.com/users/leo-project/orgs","repos_url":"https://api.github.com/users/leo-project/repos","events_url":"https://api.github.com/users/leo-project/events{/privacy}","received_events_url":"https://api.github.com/users/leo-project/received_events","type":"Organization","site_admin":false},"repo":{"id":4574240,"name":"leo_commons","full_name":"leo-project/leo_commons","owner":{"login":"leo-project","id":1684134,"avatar_url":"https://avatars.githubusercontent.com/u/1684134?v=3","gravatar_id":"","url":"https://api.github.com/users/leo-project","html_url":"https://github.com/leo-project","followers_url":"https://api.github.com/users/leo-project/followers","following_url":"https://api.github.com/users/leo-project/following{/other_user}","gists_url":"https://api.github.com/users/leo-project/gists{/gist_id}","starred_url":"https://api.github.com/users/leo-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leo-project/subscriptions","organizations_url":"https://api.github.com/users/leo-project/orgs","repos_url":"https://api.github.com/users/leo-project/repos","events_url":"https://api.github.com/users/leo-project/events{/privacy}","received_events_url":"https://api.github.com/users/leo-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/leo-project/leo_commons","description":"leo_commons include common modules for LeoFS and other Erlang applications.","fork":false,"url":"https://api.github.com/repos/leo-project/leo_commons","forks_url":"https://api.github.com/repos/leo-project/leo_commons/forks","keys_url":"https://api.github.com/repos/leo-project/leo_commons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leo-project/leo_commons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leo-project/leo_commons/teams","hooks_url":"https://api.github.com/repos/leo-project/leo_commons/hooks","issue_events_url":"https://api.github.com/repos/leo-project/leo_commons/issues/events{/number}","events_url":"https://api.github.com/repos/leo-project/leo_commons/events","assignees_url":"https://api.github.com/repos/leo-project/leo_commons/assignees{/user}","branches_url":"https://api.github.com/repos/leo-project/leo_commons/branches{/branch}","tags_url":"https://api.github.com/repos/leo-project/leo_commons/tags","blobs_url":"https://api.github.com/repos/leo-project/leo_commons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leo-project/leo_commons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leo-project/leo_commons/git/refs{/sha}","trees_url":"https://api.github.com/repos/leo-project/leo_commons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leo-project/leo_commons/statuses/{sha}","languages_url":"https://api.github.com/repos/leo-project/leo_commons/languages","stargazers_url":"https://api.github.com/repos/leo-project/leo_commons/stargazers","contributors_url":"https://api.github.com/repos/leo-project/leo_commons/contributors","subscribers_url":"https://api.github.com/repos/leo-project/leo_commons/subscribers","subscription_url":"https://api.github.com/repos/leo-project/leo_commons/subscription","commits_url":"https://api.github.com/repos/leo-project/leo_commons/commits{/sha}","git_commits_url":"https://api.github.com/repos/leo-project/leo_commons/git/commits{/sha}","comments_url":"https://api.github.com/repos/leo-project/leo_commons/comments{/number}","issue_comment_url":"https://api.github.com/repos/leo-project/leo_commons/issues/comments{/number}","contents_url":"https://api.github.com/repos/leo-project/leo_commons/contents/{+path}","compare_url":"https://api.github.com/repos/leo-project/leo_commons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leo-project/leo_commons/merges","archive_url":"https://api.github.com/repos/leo-project/leo_commons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leo-project/leo_commons/downloads","issues_url":"https://api.github.com/repos/leo-project/leo_commons/issues{/number}","pulls_url":"https://api.github.com/repos/leo-project/leo_commons/pulls{/number}","milestones_url":"https://api.github.com/repos/leo-project/leo_commons/milestones{/number}","notifications_url":"https://api.github.com/repos/leo-project/leo_commons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leo-project/leo_commons/labels{/name}","releases_url":"https://api.github.com/repos/leo-project/leo_commons/releases{/id}","created_at":"2012-06-06T15:24:22Z","updated_at":"2015-03-02T05:48:57Z","pushed_at":"2015-07-01T06:28:40Z","git_url":"git://github.com/leo-project/leo_commons.git","ssh_url":"git@github.com:leo-project/leo_commons.git","clone_url":"https://github.com/leo-project/leo_commons.git","svn_url":"https://github.com/leo-project/leo_commons","homepage":"http://leo-project.net/leofs","size":1587,"stargazers_count":6,"watchers_count":6,"language":"Erlang","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":0,"forks":3,"open_issues":0,"watchers":6,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/leo-project/leo_commons/pulls/3"},"html":{"href":"https://github.com/leo-project/leo_commons/pull/3"},"issue":{"href":"https://api.github.com/repos/leo-project/leo_commons/issues/3"},"comments":{"href":"https://api.github.com/repos/leo-project/leo_commons/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/leo-project/leo_commons/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/leo-project/leo_commons/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/leo-project/leo_commons/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/leo-project/leo_commons/statuses/cfba7958e4669afd56308c8830f5e8eb52feac14"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"yosukehara","id":148770,"avatar_url":"https://avatars.githubusercontent.com/u/148770?v=3","gravatar_id":"","url":"https://api.github.com/users/yosukehara","html_url":"https://github.com/yosukehara","followers_url":"https://api.github.com/users/yosukehara/followers","following_url":"https://api.github.com/users/yosukehara/following{/other_user}","gists_url":"https://api.github.com/users/yosukehara/gists{/gist_id}","starred_url":"https://api.github.com/users/yosukehara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosukehara/subscriptions","organizations_url":"https://api.github.com/users/yosukehara/orgs","repos_url":"https://api.github.com/users/yosukehara/repos","events_url":"https://api.github.com/users/yosukehara/events{/privacy}","received_events_url":"https://api.github.com/users/yosukehara/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":49,"deletions":33,"changed_files":1}}