Skip to content

S3 presigned_url returns "There were headers present in the request which were not signed" for SSE-C objects #2810

Answered by mullermp
vdaubry asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for opening up a discussion. I think for your request, you do not need to send the x-amz-server-side-encryption-customer-* headers because they are already hoisted onto the URL (they are query parameters). They are not in the X-Amz-SignedHeaders query param. Can you try your request without those headers? You can also try the presigned_request method instead - it returns a tuple of the URL and the headers to send with it. The URL from this method would have those headers signed but not hoisted.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by vdaubry
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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