Closed nhandler closed 1 year ago
@bradrydzewski Any chance you might be able to help get some eyes on this change?
@nhandler approved. Can you please rebase your code changes?
@nhandler approved. Can you please rebase your code changes?
@devkimittal The branch has been rebased.
ACLs in S3 predate IAM. They are also no longer recommended. Instead, users are encouraged to rely on IAM and Bucket Policies to manage access. Amazon is even going to start disabling ACLs on new buckets (see https://docs.aws.amazon.com/AmazonS3/latest/userguide/ensure-object-ownership.html).Users are also generally encouraged to set
BucketOwnerEnforced
on existing buckets to disable ACLs.When ACLs are disabled on a bucket, attempts to call
s3:PutObject
while specifying anacl
parameter will cause anAccessControlListNotSupported
error from AWS specifying thatThe bucket does not allow ACLs
.This change updates the plugin so that there is no longer a default value for the ACL. The plugin will now only pass an ACL to
s3:PutObject
if one is explicitly specified by the user.