aws-sdk-ruby icon indicating copy to clipboard operation
aws-sdk-ruby copied to clipboard

Multipart upload for EncryptionV2

Open Seitanas opened this issue 3 years ago • 5 comments

Hello, is there any way to initiate multipart upload using Aws::S3::EncryptionV2::Client ? Getting error:

undefined method `create_multipart_upload' for #<Aws::S3::EncryptionV2::Client

Thank you.

Confirm by changing [ ] to [x] below:

Describe the question

Seitanas avatar Jan 26 '21 15:01 Seitanas

It's not supported. There are some technical limitations and challenges involved.

mullermp avatar Jan 26 '21 16:01 mullermp

Unfortunately we don't support multipart upload with client side encryption. There are additional complexities to ensure that client side encryption applied to multipart upload is both secure and correct.

I'd recommend breaking your file apart, doing put_object on each part and then manually recombining them. Alternatively, depending on your encryption needs, you can use server side encryption which will work seamlessly with multipart uploads.

alextwoods avatar Jan 26 '21 16:01 alextwoods

Thank you for information. I just went on with reading encrypted datastream from openssl in chunks and uploading them as multipart data.

Seitanas avatar Jan 27 '21 20:01 Seitanas

I just went on with reading encrypted datastream from openssl in chunks and uploading them as multipart data.

@Seitanas Can you share a code sample of reading encrypted datastream from openssl in chunks and uploading them as multipart data?

ilyazub avatar Aug 03 '21 08:08 ilyazub

Greetings! We’re closing this issue because it has been open a long time and hasn’t been updated in a while and may not be getting the attention it deserves. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to comment or open a new issue.

github-actions[bot] avatar Aug 04 '22 00:08 github-actions[bot]