Have the V2 registry endpoints raise Unauthorized with the proper header when anonymous access is disabled
Before this change, we'd raise a generic 401, which was breaking containerd and cri-o. Fixes https://jira.coreos.com/browse/QUAY-1332
This commit is contained in:
parent
c4f7b28dc6
commit
7690d5d495
4 changed files with 19 additions and 5 deletions
|
|
@ -82,6 +82,7 @@ class ProtocolOptions(object):
|
|||
self.request_addr = None
|
||||
self.skip_blob_push_checks = False
|
||||
self.ensure_ascii = True
|
||||
self.attempt_pull_without_token = False
|
||||
|
||||
|
||||
@add_metaclass(ABCMeta)
|
||||
|
|
|
|||
Reference in a new issue