{"action":"created","issue":{"url":"https://api.github.com/repos/docker/distribution/issues/1684","repository_url":"https://api.github.com/repos/docker/distribution","labels_url":"https://api.github.com/repos/docker/distribution/issues/1684/labels{/name}","comments_url":"https://api.github.com/repos/docker/distribution/issues/1684/comments","events_url":"https://api.github.com/repos/docker/distribution/issues/1684/events","html_url":"https://github.com/docker/distribution/issues/1684","id":151757240,"number":1684,"title":"PATCH calls fails for registry 2.4.0 when using IAM Instance profile","user":{"login":"mv012004","id":11444049,"avatar_url":"https://avatars.githubusercontent.com/u/11444049?v=3","gravatar_id":"","url":"https://api.github.com/users/mv012004","html_url":"https://github.com/mv012004","followers_url":"https://api.github.com/users/mv012004/followers","following_url":"https://api.github.com/users/mv012004/following{/other_user}","gists_url":"https://api.github.com/users/mv012004/gists{/gist_id}","starred_url":"https://api.github.com/users/mv012004/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mv012004/subscriptions","organizations_url":"https://api.github.com/users/mv012004/orgs","repos_url":"https://api.github.com/users/mv012004/repos","events_url":"https://api.github.com/users/mv012004/events{/privacy}","received_events_url":"https://api.github.com/users/mv012004/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/docker/distribution/milestones/16","html_url":"https://github.com/docker/distribution/milestones/Registry/2.5","labels_url":"https://api.github.com/repos/docker/distribution/milestones/16/labels","id":1669665,"number":16,"title":"Registry/2.5","description":"","creator":{"login":"RichardScothern","id":922018,"avatar_url":"https://avatars.githubusercontent.com/u/922018?v=3","gravatar_id":"","url":"https://api.github.com/users/RichardScothern","html_url":"https://github.com/RichardScothern","followers_url":"https://api.github.com/users/RichardScothern/followers","following_url":"https://api.github.com/users/RichardScothern/following{/other_user}","gists_url":"https://api.github.com/users/RichardScothern/gists{/gist_id}","starred_url":"https://api.github.com/users/RichardScothern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RichardScothern/subscriptions","organizations_url":"https://api.github.com/users/RichardScothern/orgs","repos_url":"https://api.github.com/users/RichardScothern/repos","events_url":"https://api.github.com/users/RichardScothern/events{/privacy}","received_events_url":"https://api.github.com/users/RichardScothern/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":31,"state":"open","created_at":"2016-03-28T17:47:26Z","updated_at":"2016-07-22T03:43:29Z","due_on":"2016-06-14T07:00:00Z","closed_at":null},"comments":16,"created_at":"2016-04-28T22:25:13Z","updated_at":"2016-08-12T16:04:53Z","closed_at":null,"body":"I tried searching for this issue and didnt see anyone report it.\r\n\r\nWe were using the docker registry 2.3.0 and upgraded to 2.4.0 (we use S3 for storage using IAM Instance Profile).\r\nThere were no issues with push/pull/delete calls when using 2.3.0.\r\nWhen we started testing the registry upgrade to 2.4.0 we see that,\r\nThe PULL works fine.\r\nWhen doing push the PATCH calls to the registry fails, with unauthorized errors, \r\nWe haven't tried the delete image operation yet, and would be trying that tomorrow. \r\nOne behavior that was strange was the PUSH for images having just POST calls work as expected, however when images pushed make PATCH calls, the calls fail. \r\n\r\nThe configuration we are using is as follows,\r\n\r\n```\r\nstorage:\r\n    cache:\r\n        blobdescriptor: inmemory\r\n    s3:\r\n        region: us-east-1\r\n        bucket: myregistrybucket\r\n        encrypt: true\r\n        secure: true\r\n        v4auth: true\r\n        chunksize: 5242880\r\n    redirect:\r\n        disable: true\r\n    delete:\r\n        enabled: true\r\n```\r\n\r\nAm I missing something ? Is there a mandate to pass the accesskey and secretkey parameters, \r\n\r\nThe documentation did say to leave it blank for using instance profile, so do i have to even mention the parameters with \"\" strings or it should handle with my existing configuration.\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/docker/distribution/issues/comments/239487510","html_url":"https://github.com/docker/distribution/issues/1684#issuecomment-239487510","issue_url":"https://api.github.com/repos/docker/distribution/issues/1684","id":239487510,"user":{"login":"RichardScothern","id":922018,"avatar_url":"https://avatars.githubusercontent.com/u/922018?v=3","gravatar_id":"","url":"https://api.github.com/users/RichardScothern","html_url":"https://github.com/RichardScothern","followers_url":"https://api.github.com/users/RichardScothern/followers","following_url":"https://api.github.com/users/RichardScothern/following{/other_user}","gists_url":"https://api.github.com/users/RichardScothern/gists{/gist_id}","starred_url":"https://api.github.com/users/RichardScothern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RichardScothern/subscriptions","organizations_url":"https://api.github.com/users/RichardScothern/orgs","repos_url":"https://api.github.com/users/RichardScothern/repos","events_url":"https://api.github.com/users/RichardScothern/events{/privacy}","received_events_url":"https://api.github.com/users/RichardScothern/received_events","type":"User","site_admin":false},"created_at":"2016-08-12T16:04:53Z","updated_at":"2016-08-12T16:04:53Z","body":"hi @mkm85 that's interesting!\r\n\r\nWhat exactly is the error returned when you curl the redirect URL issued for `cn-north-1` "}}
{"actor":{"display_login":"RichardScothern"}}