question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AWS SES Signature V4 : Can't find the request header in the log

See original GitHub issue

I was using django-ses 0.8.5 as my email backend and I could see the request header in my application log, which belonged to signature V3.

Final headers: {'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8', 'User-Agent': 'Boto/2.49.0 Python/3.7.0 Linux/4.14.209-160.335.amzn2.x86_64', 'Date': 'Sun, 14 Feb 2021 20:32:57 GMT', 'X-Amzn-Authorization': 'AWS3-HTTPS AWSAccessKeyId=AKIEXAMPLEDTA,Algorithm=HmacSHA256,Signature=adWwLkredkdhfhfhhhdhxxxpxKa6o=', 'Content-Length': '44640', 'Host': 'email.us-east-1.amazonaws.com'}

according to the AWS announcement, they are moving to signature version 4. So I have updated Django-ses 0.8.5 to 1.0.3 latest.

these are my current versions django-ses == 1.0.3 boto3 == 1.17.7 botocore=1.20.7

But, After I update these, I can’t see the request header in my application logs to identify the signature version. could you please advise on this?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:9
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
zefoocommented, May 10, 2021

Glad I found this. Just upgraded django-ses to the latest to hopefully stop these nag emails from Amazon! [Action Required] Migrate to Signature Version 4 to continue using Amazon SES

1reaction
pcraciunoiucommented, Mar 31, 2021

Released v2.0.0: https://pypi.org/project/django-ses/2.0.0/

Give it a try. Thanks so much for testing!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Authenticating Requests (AWS Signature Version 4)
You can express authentication information by using one of the following methods: HTTP Authorization header – Using the HTTP Authorization header is the...
Read more >
Using the Authorization Header (AWS Signature Version 4)
Upon receiving the request, Amazon S3 re-creates the string to sign using information in the Authorization header and the date header. It then...
Read more >
Create a signed AWS API request - AWS General Reference
The following is an overview of the process to create a signed request. For more information, see the code examples in the AWS...
Read more >
Elements of an AWS API request signature
Each HTTP/HTTPS request that uses Signature Version 4 signing must contain these ... If we can't find an x-amz-date header, then we look...
Read more >
Signing AWS API requests - AWS General Reference
Learn how to sign AWS API requests. ... If the signatures match, the service processes the request. ... Signature Version 4 is the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found