distribution/registry/storage
Andrew Bulford 9690d843fa Support ECS TaskRole in S3 storage driver
Instead of constructing the list of credential providers manually, if we
use the default list we can take advantage of the AWS SDK checking the
environment and returning either the EC2RoleProvider or the generic HTTP
credentials provider, configured to use the ECS credentials endpoint.

Also, use the `defaults.Config()` function instead of `aws.NewConfig()`,
as this results in an initialised HTTP client which prevents a fatal
error when retrieving credentials from the ECS credentials endpoint.

Fixes #2960

Signed-off-by: Andrew Bulford <andrew.bulford@redmatter.com>
2020-07-01 08:42:56 +01:00
..
cache Remove deprecated cache metrics code 2020-03-09 13:11:54 -07:00
driver Support ECS TaskRole in S3 storage driver 2020-07-01 08:42:56 +01:00
blob_test.go Migrate to golangci-lint 2020-02-14 08:11:16 +11:00
blobserver.go context: remove definition of Context 2017-08-11 15:53:31 -07:00
blobstore.go Fix gometalint errors 2019-02-04 16:01:04 -08:00
blobwriter.go track digest offset in blobwriter 2018-09-12 14:53:27 -07:00
blobwriter_nonresumable.go If resumable digest support is disabled, detct this when closing the blobwriter 2016-06-13 17:35:06 -07:00
blobwriter_resumable.go track digest offset in blobwriter 2018-09-12 14:53:27 -07:00
catalog.go lint fix 2018-08-06 09:46:42 -07:00
catalog_test.go Merge pull request #2474 from vikstrous/disable-v1-master 2018-08-24 10:58:39 -07:00
doc.go Move storage package under registry package 2015-02-11 12:43:04 -08:00
error.go Remove old walk function 2018-01-18 13:06:07 -08:00
filereader.go Enable static checks 2018-08-06 14:49:11 -07:00
filereader_test.go Enable static checks 2018-08-06 14:49:11 -07:00
garbagecollect.go Remove err nil check 2019-02-04 16:42:44 -08:00
garbagecollect_test.go Merge pull request #2474 from vikstrous/disable-v1-master 2018-08-24 10:58:39 -07:00
io.go context: remove definition of Context 2017-08-11 15:53:31 -07:00
linkedblobstore.go fix gofmt and goimports 2018-09-11 16:14:10 -07:00
linkedblobstore_test.go Add unit tests for BlobEnumerator 2019-12-06 09:38:13 +01:00
manifestlisthandler.go Fix registry stripping newlines from manifests 2018-09-05 13:40:42 -07:00
manifeststore.go Migrate to golangci-lint 2020-02-14 08:11:16 +11:00
manifeststore_test.go Migrate to golangci-lint 2020-02-14 08:11:16 +11:00
ocimanifesthandler.go Migrate to golangci-lint 2020-02-14 08:11:16 +11:00
ocimanifesthandler_test.go Migrate to golangci-lint 2020-02-14 08:11:16 +11:00
paths.go fixes to make layersPathSpec work 2019-12-05 20:48:33 +01:00
paths_test.go Add unit tests for BlobEnumerator 2019-12-06 09:38:13 +01:00
purgeuploads.go Fix gometalint errors 2019-02-04 16:01:04 -08:00
purgeuploads_test.go Fix gometalint errors 2019-02-04 16:01:04 -08:00
registry.go fixes to make layersPathSpec work 2019-12-05 20:48:33 +01:00
schema2manifesthandler.go Migrate to golangci-lint 2020-02-14 08:11:16 +11:00
schema2manifesthandler_test.go Update schema2 builder to take media type 2016-12-14 16:17:20 -08:00
signedmanifesthandler.go context: remove definition of Context 2017-08-11 15:53:31 -07:00
tagstore.go Merge pull request #2748 from manishtomar/tag-digests 2019-10-08 12:14:56 -07:00
tagstore_test.go better name and updated tests 2018-11-01 10:31:08 -07:00
v1unsupportedhandler.go disable schema1 by default, add a config flag to enable it 2017-12-19 10:23:25 -08:00
vacuum.go add possibility to clean untagged manifests 2018-01-05 12:20:01 +02:00