Skip to content

Use sha256 instead of md5 to check file integrity, while putting object to S3 with presigned url #2999

Answered by mullermp
yemchenko-dan asked this question in Q&A
Discussion options

You must be logged in to vote

Pre-signed requests and urls for put_object should support all of the available options: https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Client.html#put_object-instance_method

There are options for checksum_algorithm for selecting CRC32/C and SHA1/256 options, and options for taking the digest. The SDK will calculate this value. I believe the SDK will validate it for you when downloading the file, though that wouldn't be done in a presigned request.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yemchenko-dan
Comment options

Answer selected by yemchenko-dan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants