registry/docs
Nuutti Kotivuori 84e7c07c42 Remove initial access check from S3 driver
In the S3 storage driver there is currently an initial access permission check by listing the bucket. If this check fails, registry will panic and exit.

However, this check is broken in two ways. First of all it strips the final slash from the root directory path, meaning that any access permissions which limit access to a single directory will fail, because S3 treats the path as strict prefix match. Secondly it fails to strip any leading slash that might be present, unlike the other access places, which means that the path used is different as a leading slash is allowed and significant in a filename in S3.

Since there is also a periodic health check which correctly checks access permissions and shows the error more cleanly, the best solution seems to be to just remove this initial access check.

Signed-off-by: Nuutti Kotivuori <nuutti.kotivuori@poplatek.fi>
2015-09-19 12:47:12 +03:00
..
api Change some incorrect error types in proxy stores from API errors to 2015-08-11 14:16:24 -07:00
auth Switch tests to import "github.com/docker/distribution/context" 2015-08-20 14:50:12 -07:00
client Merge pull request #934 from stevvooe/sanitize-url-correctly 2015-08-27 22:30:21 -07:00
handlers Add WithVersion to context and other cleanup 2015-09-14 17:14:31 -07:00
listener [Server] Listen and serve on a unix socket 2015-05-11 16:00:14 +03:00
middleware Add pull through cache functionality to the Registry which can be configured 2015-08-04 16:09:55 -07:00
proxy Move manifest package to schema1 2015-08-21 16:29:47 -07:00
storage Remove initial access check from S3 driver 2015-09-19 12:47:12 +03:00
doc.go Move initialization code from main.go to the registry package 2015-09-09 14:39:31 -07:00
registry.go Add WithVersion to context and other cleanup 2015-09-14 17:14:31 -07:00