Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Verification Failure occurring #16

Open
thenewguy opened this issue Sep 17, 2021 · 1 comment
Open

Verification Failure occurring #16

thenewguy opened this issue Sep 17, 2021 · 1 comment

Comments

@thenewguy
Copy link

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.

@thenewguy
Copy link
Author

This might be related to #17

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant