Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

presigned URL has invalid signature when S3 PutObject contains tagging #1024

Open
AleXoundOS opened this issue Jan 16, 2025 · 0 comments
Open

Comments

@AleXoundOS
Copy link

AleXoundOS commented Jan 16, 2025

This produces a URL with valid signature:

A.presignURL
  env
  signingTime
  expirationSec
  (newPutObject bucketName objectKey (A.toBody B.empty))

However, this produces a URL with invalid signature:

A.presignURL
  env
  signingTime
  expirationSec
  ( (newPutObject bucketName objectKey (A.toBody B.empty))
      { tagging = Just tagSetTxt
      }
  )

AWS responds with:

The request signature we calculated does not match the signature you provided. Check your key and signing method.

SignedHeaders changes:

- X-Amz-SignedHeaders=host
+ X-Amz-SignedHeaders=host%3Bx-amz-tagging

It seems here are some insights: https://stackoverflow.com/a/77418874/1663197.


I use Amazonka 2.0.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant