1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/registry
Dan Walsh 69fe3e1a34 On Red Hat Registry Servers we return 404 on certification errors.
We do this to prevent leakage of information, we don't want people
to be able to probe for existing content.

According to RFC 2616, "This status code (404) is commonly used when the server does not
wish to reveal exactly why the request has been refused, or when no other response i
is applicable."

https://www.ietf.org/rfc/rfc2616.txt

10.4.4 403 Forbidden

   The server understood the request, but is refusing to fulfill it.
   Authorization will not help and the request SHOULD NOT be repeated.
   If the request method was not HEAD and the server wishes to make
   public why the request has not been fulfilled, it SHOULD describe the
   reason for the refusal in the entity.  If the server does not wish to
   make this information available to the client, the status code 404
   (Not Found) can be used instead.

10.4.5 404 Not Found

   The server has not found anything matching the Request-URI. No
   indication is given of whether the condition is temporary or
   permanent. The 410 (Gone) status code SHOULD be used if the server
   knows, through some internally configurable mechanism, that an old
   resource is permanently unavailable and has no forwarding address.
   This status code is commonly used when the server does not wish to
   reveal exactly why the request has been refused, or when no other
   response is applicable.

When docker is running through its certificates, it should continue
trying with a new certificate even if it gets back a 404 error code.

Docker-DCO-1.1-Signed-off-by: Dan Walsh <dwalsh@redhat.com> (github: rhatdan)
2014-10-20 13:20:48 -04:00
..
auth.go Use direct registry url 2014-10-10 16:04:28 -07:00
auth_test.go Merge auth package within registry 2014-03-10 17:16:58 -07:00
endpoint.go Add comment for permission and fix wrong format variable 2014-10-02 17:41:57 -07:00
httpfactory.go registry.Registry -> registry.Session 2014-08-13 09:27:43 -04:00
MAINTAINERS update go import path and libcontainer 2014-07-24 22:19:50 +00:00
registry.go On Red Hat Registry Servers we return 404 on certification errors. 2014-10-20 13:20:48 -04:00
registry_mock_test.go Add provenance pull flow for official images 2014-10-01 18:26:06 -07:00
registry_test.go registry: getting Endpoint ironned out 2014-10-01 13:19:40 -07:00
service.go registry: getting Endpoint ironned out 2014-10-01 13:19:40 -07:00
session.go Add provenance pull flow for official images 2014-10-01 18:26:06 -07:00
session_v2.go Support tarsum dev version to fix issue with mtime 2014-10-10 16:04:29 -07:00
types.go Update manifest format to rename blobsums and use arrays of dictionaries 2014-10-10 16:04:29 -07:00