Giter VIP home page Giter VIP logo

django-bouncy's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

django-bouncy's Issues

Verification Failure occurring

I've started receiving verification failures.

After comparing the NOTIFICATION_HASH_FORMAT at

NOTIFICATION_HASH_FORMAT = u'''Message
against the amazon docs at https://docs.aws.amazon.com/sns/latest/dg/sns-verify-signature-of-message.html I noticed the failure errors I am observing include a subject.

Here are the fields per the docs:

Message
MessageId
Subject (if included in the message)
Timestamp
TopicArn
Type

and an example per the docs:

Message
My Test Message
MessageId
4d4dc071-ddbf-465d-bba8-08f81c89da64
Subject
My subject
Timestamp
2019-01-31T04:37:04.321Z
TopicArn
arn:aws:sns:us-east-2:123456789012:s4-MySNSTopic-1G1WEFCOXTC0P
Type
Notification

This is the current template used by bouncy:

NOTIFICATION_HASH_FORMAT = u'''Message
{Message}
MessageId
{MessageId}
Timestamp
{Timestamp}
TopicArn
{TopicArn}
Type
{Type}
'''

Notice it does not include the subject.

New PyPI package release

With the recent changes that have been merged to this project, could we have a new version released to PyPI?

Signature verification failing in French - "('rsa routines', 'int_rsa_verify', 'bad signature')"

I am currently running django-bouncy 0.2.8, and am having problems specifically when an email bounces in French.

Verification succeeds in English without issues, and the rest of my codebase further processes the new Bounce record properly. However when the initial email is sent in French, the bounce fails. Currently the message from django-bouncy is just "Verification failed %s".

I've contacted AWS support, and they confirmed that their SNS subscription does not have its message content altered in any way based on language settings. They suggested I come here to raise an issue. I've also pulled in 0.2.8 source as an installed app in my Django backend in order to add extra logging to debug via Sentry, and I get the following error: [('rsa routines', 'int_rsa_verify', 'bad signature')]. This happens in the except clause when trying crypto.verify() within the utils.verify_notification function.

From what I can see in Sentry, the certificate retrieved is identical in both languages, so I suspect somehow data isn't being escaped properly in French and the hashes aren't matching up.

Do you have any insight as to what might be causing this?

Cannot confirm subscription from Amazon SNS

Recently, I have installed django-bouncy pip and tried to handle bouncy.
But I cannot confirm subscription from Amazon SNS.
I subscribed https api endpoint to Amazon SNS topic and shows pending confirmation forever.
How can I check if bouncy api works properly in my app?

Version 0.2.6 not longer available on pypi

Hi,
Is there a reason for deleting the old 0.2.6 from pypi repo?

It is pretty much standard that packages keep old versions available on pypi so current projects can still be installed without needing to upgrade to the latest version of every package.

JSON Message Missing Vital Fields

I have recently observed notifications are sent with the key eventType instead of notificationType. The SES docs still state to expect notificationType per https://docs.aws.amazon.com/ses/latest/DeveloperGuide/notification-contents.html

However, I've found other issues related to the problem:

An interesting comment at mautic/mautic#8903 (comment):

If you are using a SES Configuration Set (by setting the custom mail header X-SES-CONFIGURATION-SET), the bounce event generated by SES is slightly different than if you configure bounce management globally. In fact, the difference is just a JSON key. It is eventType instead of notificationType.

We are using the X-SES-CONFIGURATION-SET header. As such, it seems like we need to support both.

The simplest solution seems to be copying eventType to notificationType if notificationType is not set.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.