Open joearasin opened 7 years ago
That would be great indeed, anyone up for jumping on this task?
Hi, I've started to implement a new test suite using Amazon provided test suite. First problem that I have found with the current implementation is the missing hash of the payload (hash of empty string) in building Canonical Request. In Canonical Request object:
val hashedBody = req.headers.find(_.name == "x-amz-content-sha256") .map(_.value).getOrElse("")
See: Task 1: Create a Canonical Request for Signature Version 4
I'll come with PR tomorrow.
@joearasin @ktoso implementation is completed. There is only one test that is skipped (you'll see in the code). This is because I did not found a way to build a HttpRequest with body, without having it adding the charset part to content type. If you know a way to do this, then I will update the code in a second.
I was digging through some of my notes from originally building the S3 functionality and dug this up. Amazon provides a test suite for AWS signature libraries. It might make sense to use it.
http://docs.aws.amazon.com/general/latest/gr/signature-v4-test-suite.html