This is an automated email from the ASF dual-hosted git repository.
wjones127 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git
The following commit(s) were added to refs/heads/master by this push:
new 23b6ff9f43 Only add encryption headers for for SSE-C in get. (#6260)
23b6ff9f43 is described below
commit 23b6ff9f432e8e29c08d47a315ba0b7cb8758225
Author: Jiacheng Yang <[email protected]>
AuthorDate: Tue Aug 20 11:36:59 2024 -0700
Only add encryption headers for for SSE-C in get. (#6260)
---
object_store/src/aws/client.rs | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/object_store/src/aws/client.rs b/object_store/src/aws/client.rs
index 007e271086..6fe4889db1 100644
--- a/object_store/src/aws/client.rs
+++ b/object_store/src/aws/client.rs
@@ -705,7 +705,14 @@ impl GetClient for S3Client {
};
let mut builder = self.client.request(method, url);
- builder =
builder.headers(self.config.encryption_headers.clone().into());
+ if self
+ .config
+ .encryption_headers
+ .0
+ .contains_key("x-amz-server-side-encryption-customer-algorithm")
+ {
+ builder =
builder.headers(self.config.encryption_headers.clone().into());
+ }
if let Some(v) = &options.version {
builder = builder.query(&[("versionId", v)])