{"action":"created","issue":{"url":"https://api.github.com/repos/vmware/harbor/issues/1006","repository_url":"https://api.github.com/repos/vmware/harbor","labels_url":"https://api.github.com/repos/vmware/harbor/issues/1006/labels{/name}","comments_url":"https://api.github.com/repos/vmware/harbor/issues/1006/comments","events_url":"https://api.github.com/repos/vmware/harbor/issues/1006/events","html_url":"https://github.com/vmware/harbor/issues/1006","id":186971686,"number":1006,"title":"[BUG] Job replication failed with S3 backend","user":{"login":"yancl","id":822378,"avatar_url":"https://avatars.githubusercontent.com/u/822378?v=3","gravatar_id":"","url":"https://api.github.com/users/yancl","html_url":"https://github.com/yancl","followers_url":"https://api.github.com/users/yancl/followers","following_url":"https://api.github.com/users/yancl/following{/other_user}","gists_url":"https://api.github.com/users/yancl/gists{/gist_id}","starred_url":"https://api.github.com/users/yancl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yancl/subscriptions","organizations_url":"https://api.github.com/users/yancl/orgs","repos_url":"https://api.github.com/users/yancl/repos","events_url":"https://api.github.com/users/yancl/events{/privacy}","received_events_url":"https://api.github.com/users/yancl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"ywk253100","id":5835782,"avatar_url":"https://avatars.githubusercontent.com/u/5835782?v=3","gravatar_id":"","url":"https://api.github.com/users/ywk253100","html_url":"https://github.com/ywk253100","followers_url":"https://api.github.com/users/ywk253100/followers","following_url":"https://api.github.com/users/ywk253100/following{/other_user}","gists_url":"https://api.github.com/users/ywk253100/gists{/gist_id}","starred_url":"https://api.github.com/users/ywk253100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ywk253100/subscriptions","organizations_url":"https://api.github.com/users/ywk253100/orgs","repos_url":"https://api.github.com/users/ywk253100/repos","events_url":"https://api.github.com/users/ywk253100/events{/privacy}","received_events_url":"https://api.github.com/users/ywk253100/received_events","type":"User","site_admin":false},"assignees":[{"login":"ywk253100","id":5835782,"avatar_url":"https://avatars.githubusercontent.com/u/5835782?v=3","gravatar_id":"","url":"https://api.github.com/users/ywk253100","html_url":"https://github.com/ywk253100","followers_url":"https://api.github.com/users/ywk253100/followers","following_url":"https://api.github.com/users/ywk253100/following{/other_user}","gists_url":"https://api.github.com/users/ywk253100/gists{/gist_id}","starred_url":"https://api.github.com/users/ywk253100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ywk253100/subscriptions","organizations_url":"https://api.github.com/users/ywk253100/orgs","repos_url":"https://api.github.com/users/ywk253100/repos","events_url":"https://api.github.com/users/ywk253100/events{/privacy}","received_events_url":"https://api.github.com/users/ywk253100/received_events","type":"User","site_admin":false}],"milestone":null,"comments":10,"created_at":"2016-11-03T03:23:34Z","updated_at":"2016-12-23T17:19:46Z","closed_at":"2016-12-09T03:18:58Z","body":"Hi, \r\n\r\n  Recently we found that job replication with s3 pre-sign url does not work, after some dig, we found that the\r\n**Headers** of request to S3 has the **OAuth** token with the key of *Authorization*, that is not allowed by S3 service. so will you please remove the **OAuth**  key from request headers? thanks.\r\n\r\nBelow are the request process:\r\n```\r\n1.307 | GET http://registry:5000/xxx/blobs/sha256:xxxxxxxx\r\n2.400 | GET http://xxxx.amazonaws.com.cn/xxxx/sha256/xxxx/data?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=xxxxx\r\nHost: xxxx.amazonaws.com.cn\r\nUser-Agent: harbor-registry-client\r\nAuthorization: Bearer xxxxxxxxxxxxxxxxxxxxx\r\n```\r\n\r\nas you can see above, it has extra `Authorization: Bearer xx` in the headers which should not belong the request to S3, and that cause S3 service refuse the normal request."},"comment":{"url":"https://api.github.com/repos/vmware/harbor/issues/comments/269020501","html_url":"https://github.com/vmware/harbor/issues/1006#issuecomment-269020501","issue_url":"https://api.github.com/repos/vmware/harbor/issues/1006","id":269020501,"user":{"login":"yancl","id":822378,"avatar_url":"https://avatars.githubusercontent.com/u/822378?v=3","gravatar_id":"","url":"https://api.github.com/users/yancl","html_url":"https://github.com/yancl","followers_url":"https://api.github.com/users/yancl/followers","following_url":"https://api.github.com/users/yancl/following{/other_user}","gists_url":"https://api.github.com/users/yancl/gists{/gist_id}","starred_url":"https://api.github.com/users/yancl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yancl/subscriptions","organizations_url":"https://api.github.com/users/yancl/orgs","repos_url":"https://api.github.com/users/yancl/repos","events_url":"https://api.github.com/users/yancl/events{/privacy}","received_events_url":"https://api.github.com/users/yancl/received_events","type":"User","site_admin":false},"created_at":"2016-12-23T17:19:46Z","updated_at":"2016-12-23T17:19:46Z","body":"the reason is that i use docker-compose up/down manually and forgot to load the packed image.\r\nI should have used install.sh:)"}}
{"actor":{"display_login":"yancl"}}