-
Notifications
You must be signed in to change notification settings - Fork 850
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Content-MD5 or checksum header for using an Object Locked S3 #3725
Comments
Makes sense to me 👍 |
I was considering how to go about fixing this. The main objective is to make the request work with object locking, so I tried sending the I have two things in mind:
|
I don't feel strongly about this, provided it is configurable. There doesn't seem to be a huge amount of standardisation across the stores w.r.t how checksums are handled, and so it is probably we will end up with store specific logic for this.
I believe so, but should probably verify this Edit: on a related note I filed - #3737 |
For checksum i think something like |
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
I am trying to use object-store crate with AWS S3 where Object lock is enabled with versioning and some retention period. When i am trying to put object it is failing with following error
Describe the solution you'd like
A ClientOptions method like
with_content_md5
orwith_checksum_header
that will calculate and attach appropriate checksum header ( before sendingBytes
) so that PUT request works.Describe alternatives you've considered
None
Additional context
This is minimal example I used for testing this out
second notes section in AWS docs only talks about Content-MD5
The text was updated successfully, but these errors were encountered: