distribution/registry
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
..
api cleanup: move init funcs to the top of the source 2023-11-28 06:50:48 +00:00
auth cleanup: move init funcs to the top of the source 2023-11-28 06:50:48 +00:00
handlers Do not write manifests on HEAD requests 2024-02-29 11:16:11 +11:00
listener feat(linter): enable errcheck linter in golangci-lint 2023-11-18 07:19:24 +00:00
middleware Merge pull request #2752 from davidswu/registry-driver-middleware 2023-06-21 10:06:13 -07:00
proxy cleanup: move init funcs to the top of the source 2023-11-28 06:50:48 +00:00
storage Allow setting s3 forcepathstyle without regionendpoint 2024-04-08 12:45:26 +02:00
doc.go Move initialization code from main.go to the registry package 2015-09-09 14:39:31 -07:00
registry.go feat: Add HTTP2 for unencrypted HTTP 2024-01-17 20:59:02 +00:00
registry_test.go feat(linter): enable errcheck linter in golangci-lint 2023-11-18 07:19:24 +00:00
root.go feat(linter): enable errcheck linter in golangci-lint 2023-11-18 07:19:24 +00:00