distribution/registry/storage/driver
Nuutti Kotivuori 26d8344872 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
..
azure Remove half-baked Storage Driver IPC support 2015-06-29 16:52:12 -07:00
base Pass correct context into tracer 2015-06-30 10:28:14 -07:00
factory Remove half-baked Storage Driver IPC support 2015-06-29 16:52:12 -07:00
filesystem Remove half-baked Storage Driver IPC support 2015-06-29 16:52:12 -07:00
inmemory Remove half-baked Storage Driver IPC support 2015-06-29 16:52:12 -07:00
middleware Make Storage Driver API calls context aware. 2015-04-27 15:58:58 -07:00
oss remove unused code and fix todo format 2015-07-31 13:22:56 +08:00
rados fix(rados): Create OMAP for root directory 2015-08-10 23:46:33 +02:00
s3 Remove initial access check from S3 driver 2015-09-19 12:47:12 +03:00
swift Add TrustId parameter to swift driver 2015-09-02 15:05:29 +08:00
testsuites fix(rados): Create OMAP for root directory 2015-08-10 23:46:33 +02:00
fileinfo.go Move storagedriver package to registry/storage/driver 2015-02-11 12:43:04 -08:00
storagedriver.go Make Storage Driver API calls context aware. 2015-04-27 15:58:58 -07:00