distribution/registry/storage
Benjamin Schanzel 8654a0ee45
Allow setting s3 forcepathstyle without regionendpoint
Currently, the `forcepathstyle` parameter for the s3 storage driver is
considered only if the `regionendpoint` parameter is set. Since setting
a region endpoint explicitly is discouraged with AWS s3, it is not clear
how to enforce path style URLs with AWS s3.
This also means, that the default value (true) only applies if a region
endpoint is configured.

This change makes sure we always forward the `forcepathstyle` parameter
to the aws-sdk if present in the config. This is a breaking change where
a `regionendpoint` is configured but no explicit `forcepathstyle` value
is set.

Signed-off-by: Benjamin Schanzel <benjamin.schanzel@bmw.de>
2024-04-08 12:45:26 +02:00
..
cache fix: if reference exceeds the threshold return 400 and detail 2023-11-22 16:06:33 +00:00
driver Allow setting s3 forcepathstyle without regionendpoint 2024-04-08 12:45:26 +02:00
blob_test.go feat(linter): enable errcheck linter in golangci-lint 2023-11-18 07:19:24 +00:00
blobserver.go storage/driver: replace URLFor method 2023-10-27 10:58:37 -04:00
blobstore.go Move context package internal 2023-10-27 10:58:37 -04:00
blobwriter.go Move context package internal 2023-10-27 10:58:37 -04:00
blobwriter_nonresumable.go Move context package internal 2023-10-27 10:58:37 -04:00
blobwriter_resumable.go format code with gofumpt 2022-11-03 22:48:20 +01:00
catalog.go Merge pull request #4031 from thaJeztah/migrate_reference 2023-08-31 15:20:28 +01:00
catalog_test.go Merge pull request #4031 from thaJeztah/migrate_reference 2023-08-31 15:20:28 +01: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 cleanup: make blob sizes easier to understand 2023-10-31 14:53:02 -07:00
filereader_test.go feat(linter): enable errcheck linter in golangci-lint 2023-11-18 07:19:24 +00:00
garbagecollect.go deprecate reference package, migrate to github.com/distribution/reference 2023-08-31 15:47:06 +02:00
garbagecollect_test.go feat(linter): enable errcheck linter in golangci-lint 2023-11-18 07:19:24 +00:00
io.go cleanup: make blob sizes easier to understand 2023-10-31 14:53:02 -07:00
linkedblobstore.go Move context package internal 2023-10-27 10:58:37 -04:00
linkedblobstore_test.go deprecate reference package, migrate to github.com/distribution/reference 2023-08-31 15:47:06 +02:00
manifestlisthandler.go Move context package internal 2023-10-27 10:58:37 -04:00
manifeststore.go Move context package internal 2023-10-27 10:58:37 -04:00
manifeststore_test.go feat(linter): enable errcheck linter in golangci-lint 2023-11-18 07:19:24 +00:00
ociindexhandler.go Move context package internal 2023-10-27 10:58:37 -04:00
ocimanifesthandler.go Move context package internal 2023-10-27 10:58:37 -04:00
ocimanifesthandler_test.go registry: verify digest and check blob presence when put manifest 2021-04-16 16:11:52 +08:00
paths.go add repositoriesRootPathSpec in pathFor documentation 2023-09-26 15:07:49 +08:00
paths_test.go format code with gofumpt 2022-11-03 22:48:20 +01:00
purgeuploads.go Switch to github.com/google/uuid 2023-10-25 12:15:21 +01:00
purgeuploads_test.go feat(linter): enable errcheck linter in golangci-lint 2023-11-18 07:19:24 +00:00
registry.go storage/driver: replace URLFor method 2023-10-27 10:58:37 -04:00
schema2manifesthandler.go Move context package internal 2023-10-27 10:58:37 -04:00
schema2manifesthandler_test.go Move context package internal 2023-10-27 10:58:37 -04:00
tagstore.go use manifestTagsPathSpec for listing all tags 2023-09-28 10:44:46 +08:00
tagstore_test.go deprecate reference package, migrate to github.com/distribution/reference 2023-08-31 15:47:06 +02:00
vacuum.go Move context package internal 2023-10-27 10:58:37 -04:00