From ebd5aa5fe97ed511304f2302377caa95618595e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Roth?= Date: Tue, 2 Jan 2024 20:10:01 +0100 Subject: [PATCH] s3: respect default ACLs --- s3/public.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/s3/public.go b/s3/public.go index c08f382b..78a4a917 100644 --- a/s3/public.go +++ b/s3/public.go @@ -66,10 +66,11 @@ func NewPublishedStorageRaw( plusWorkaround, disabledMultiDel, forceVirtualHostedStyle bool, config *aws.Config, ) (*PublishedStorage, error) { - var acl types.ObjectCannedACL - if defaultACL == "" { + if defaultACL == "" || defaultACL == "private" { acl = types.ObjectCannedACLPrivate + } else if defaultACL == "public-read" { + acl = types.ObjectCannedACLPublicRead } else if defaultACL == "none" { acl = "" }