Skip to content

Return false from SNS MessageVerifier#authentic? for malformed messages - #3462

Merged
jterapin merged 2 commits into
aws:version-3from
andrewfader:sns-verifier-malformed-messages
Oct 23, 2026
Merged

jterapin merged 2 commits into
aws:version-3from
andrewfader:sns-verifier-malformed-messages

Conversation

@andrewfader

@andrewfader andrewfader commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

authentic? raised (NoMethodError, URI::InvalidURIError, Json::ParseError) instead of returning false when the body wasn't a JSON object or the signing fields weren't usable strings. Endpoints that verify untrusted POSTs returned 500s.

authenticate! now raises VerificationError for these cases, so authentic? returns false. Specs and changelog entry added.

Generated by AI tools, and reviewed by Andrew Fader.

@andrewfader
andrewfader marked this pull request as ready for review October 22, 2026 08:33
@andrewfader
andrewfader requested review from a team as code owners October 22, 2026 08:33

@jterapin jterapin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the submission! This looks great. We'll merge it once we have the required reviewer approvals.

@jterapin

Copy link
Copy Markdown
Contributor

The Catapult PR build passed for commit ea847677893d: Build SDK run. All 33 checks on this PR also passed.

@jterapin
jterapin merged commit b8b310a into aws:version-3 Oct 23, 2026
90 of 92 checks passed
@andrewfader
andrewfader deleted the sns-verifier-malformed-messages branch October 24, 2026 02:28
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

Successfully merging this pull request may close these issues.

3 participants