registry/docs/storage
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
..
cache Manifest and layer soft deletion. 2015-07-24 09:57:20 -07:00
driver Remove initial access check from S3 driver 2015-09-19 12:47:12 +03:00
blob_test.go Functional options for NewRegistryWithDriver 2015-08-19 11:06:30 -07:00
blobcachemetrics.go Open cache interface 2015-05-15 17:56:28 -07:00
blobserver.go Allow disabling of starage driver redirects 2015-07-24 16:59:35 -07:00
blobstore.go Remove pathMapper object 2015-08-17 18:51:05 -07:00
blobwriter.go Allow interface{} keys when using logger 2015-09-11 11:33:55 -07:00
blobwriter_nonresumable.go Remove digest package's dependency on external sha implementation 2015-05-20 23:44:08 -07:00
blobwriter_resumable.go Remove pathMapper object 2015-08-17 18:51:05 -07:00
catalog.go Remove pathMapper object 2015-08-17 18:51:05 -07:00
catalog_test.go Functional options for NewRegistryWithDriver 2015-08-19 11:06:30 -07:00
doc.go Move storage package under registry package 2015-02-11 12:43:04 -08:00
filereader.go Refactor Blob Service API 2015-05-15 17:05:18 -07:00
filereader_test.go Refactor Blob Service API 2015-05-15 17:05:18 -07:00
filewriter.go Refactor Blob Service API 2015-05-15 17:05:18 -07:00
filewriter_test.go Refactor Blob Service API 2015-05-15 17:05:18 -07:00
linkedblobstore.go Remove pathMapper object 2015-08-17 18:51:05 -07:00
manifeststore.go Move manifest package to schema1 2015-08-21 16:29:47 -07:00
manifeststore_test.go Move manifest package to schema1 2015-08-21 16:29:47 -07:00
paths.go Remove pathMapper object 2015-08-17 18:51:05 -07:00
paths_test.go Remove pathMapper object 2015-08-17 18:51:05 -07:00
purgeuploads.go Remove pathMapper object 2015-08-17 18:51:05 -07:00
purgeuploads_test.go Remove pathMapper object 2015-08-17 18:51:05 -07:00
registry.go Functional options for NewRegistryWithDriver 2015-08-19 11:06:30 -07:00
revisionstore.go Move manifest package to schema1 2015-08-21 16:29:47 -07:00
signaturestore.go Remove pathMapper object 2015-08-17 18:51:05 -07:00
tagstore.go Remove pathMapper object 2015-08-17 18:51:05 -07:00
util.go Refactor Blob Service API 2015-05-15 17:05:18 -07:00
vacuum.go Remove pathMapper object 2015-08-17 18:51:05 -07:00
walk.go Make Storage Driver API calls context aware. 2015-04-27 15:58:58 -07:00
walk_test.go Make Storage Driver API calls context aware. 2015-04-27 15:58:58 -07:00