diff options
author | Alex Auvolat <alex@adnab.me> | 2024-02-27 10:37:09 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2024-02-27 10:46:12 +0100 |
commit | 8aec3fa3b23e354936e250349dbe5bcfe158b0b3 (patch) | |
tree | 8d97e79c0a70c1a898ecb0fb11fde73647f531fe /src/api/s3/multipart.rs | |
parent | 512109fda54194bd663bcec6b35cf195feefc337 (diff) | |
download | garage-8aec3fa3b23e354936e250349dbe5bcfe158b0b3.tar.gz garage-8aec3fa3b23e354936e250349dbe5bcfe158b0b3.zip |
[sse-c] enable encryption in multipart uploads + refactoringsse-c2
Diffstat (limited to 'src/api/s3/multipart.rs')
-rw-r--r-- | src/api/s3/multipart.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/api/s3/multipart.rs b/src/api/s3/multipart.rs index 3b542f01..1d71e7a6 100644 --- a/src/api/s3/multipart.rs +++ b/src/api/s3/multipart.rs @@ -41,10 +41,6 @@ pub async fn handle_create_multipart_upload( // Determine whether object should be encrypted, and if so the key let encryption = EncryptionParams::new_from_req(&garage, &req)?; - if encryption.is_encrypted() { - // TODO - unimplemented!("multipart upload encryption"); - } let object_encryption = encryption.encrypt_headers(headers)?; // Create object in object table @@ -110,7 +106,7 @@ pub async fn handle_put_part( ObjectVersionState::Uploading { encryption, .. } => encryption, _ => unreachable!(), }; - let (encryption, _) = EncryptionParams::check_decrypt_for_get( + let (encryption, _) = EncryptionParams::check_decrypt( &garage, &Request::from_parts(req_head, empty_body::<Error>()), &object_encryption, |