yutianjiang39 opened a new pull request, #926: URL: https://github.com/apache/arrow-rs-object-store/pull/926
# Which issue does this PR close? Part of #876. # Rationale for this change On an S3 bucket that allows ACLs, a caller may want to make one object publicly readable without changing permissions for other uploads. Until now there was no upload attribute for that. # What changes are included in this PR? S3 sends the value of `Attribute::Acl` in the `x-amz-acl` header on `PutObject` and `CreateMultipartUpload`. If the caller omits the attribute, neither request adds the header. Azure, GCP and HTTP warn and ignore the attribute. The `upload_canned_acl` test checks the requests received by a mock endpoint: `public-read` on a PUT, `private` on multipart initiation, and no ACL header on a subsequent PUT. With just the test on the baseline, it fails to compile because `Attribute::Acl` is missing. With the patch, it passes. The offline library suite passed with all four backends enabled, including the existing attribute round-trip test (272 passed, 6 ignored, 1 public S3 lookup excluded). # Are there any user-facing changes? Yes. Pass `Attribute::Acl` in the attributes for `put_opts` or `put_multipart_opts` to set a canned ACL for that upload. S3 validates the value; reading the object does not return its ACL. This adds neither a store-wide default nor a generic extra-parameters API. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
