Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

AWS SigV4 invalid signature, lacking date header #769

Closed
LaurenceGA opened this issue Aug 15, 2024 · 1 comment
Closed

AWS SigV4 invalid signature, lacking date header #769

LaurenceGA opened this issue Aug 15, 2024 · 1 comment

Comments

@LaurenceGA
Copy link

Everything has been working fine signing AWS SigV4 requests.

I came back to the same requests after a bit and am getting a 403 with message

{
  "message": "Authorization header requires existence of either a 'X-Amz-Date' or a 'Date' header. ..."
}

It also has SignedHeaders=accept;caller-account-id;host;x-amz-date;x-amz-security-token

Seems something odd is going on with the signing.

I tried manually adding a X-Amz-Date header as a workaround, but then it just says The security token included in the request is invalid.

Not sure what changed, but I haven't updated my requests, so it's maybe either httpyac (I'm testing with CLI) or AWS.

Any help would be appreciated. This has completely broken all of my Sigv4 signed requests.

@AnWeber
Copy link
Owner

AnWeber commented Aug 17, 2024

sorry. There was a Breaking Change in in the behaviour of the lib I use to get aws header. Unfortunately, it was only marked as a feature release and I had overlooked it. Now the headers are no longer changed but copied beforehand. Now I have to make the header changes myself. It will be fixed with next release

https://github.com/mhart/aws4/releases/tag/v1.13.0

@AnWeber AnWeber closed this as completed Aug 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants