AWSSigner icon indicating copy to clipboard operation
AWSSigner copied to clipboard

Add support for X-Amz-Content-Sha256

Open rbeede opened this issue 2 years ago • 4 comments

Some services require this header to be updated as part of the new signature.

X-Amz-Content-Sha256

rbeede avatar Oct 13 '22 18:10 rbeede

https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-header-based-auth.html

rbeede avatar Oct 13 '22 18:10 rbeede

Hi @rbeede, there are a couple of things that you could provide that would help me jump right into this. Any chance you could provide the following:

  1. The API that you're calling.
  2. An example request (just copied out of Repeater or similar) that's not being signed correctly.

I see from your link that we're talking about S3 here, but those additional details would speed up my troubleshooting. Thanks!

jakekarnes42 avatar Oct 13 '22 19:10 jakekarnes42

I'm actually testing an API that is not S3 but has X-Amz-Content-Sha256 in it.

Is there a way to force that header to be updated anytime it is seen and not just if the service is S3?

rbeede avatar Oct 13 '22 21:10 rbeede

Thanks for the context @rbeede. I'll need to dig into this a bit more on my side. If you're needing an immediate workaround, it looks like an alternative signing extension recently added support for this scenario. That being said, I'd like to find a way to incorporate this functionality.

jakekarnes42 avatar Oct 14 '22 18:10 jakekarnes42