distribution/registry/storage/driver/s3-aws
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
..
s3.go Allow setting s3 forcepathstyle without regionendpoint 2024-04-08 12:45:26 +02:00
s3_test.go Allow setting s3 forcepathstyle without regionendpoint 2024-04-08 12:45:26 +02:00
s3_v2_signer.go feat(linter): enable errcheck linter in golangci-lint 2023-11-18 07:19:24 +00:00