Skip to content

reject conflicting SNS URL key aliases - #82

Merged
stobrien89 merged 1 commit into
aws:masterfrom
stobrien89:bugfix-key-casing
Sep 2, 2026
Merged

reject conflicting SNS URL key aliases#82
stobrien89 merged 1 commit into
aws:masterfrom
stobrien89:bugfix-key-casing

Conversation

@stobrien89

Copy link
Copy Markdown
Member

Summary

Fixes ambiguous handling of canonical SNS URL keys and Lambda-style aliases that could allow an unverified URL to remain accessible after signature validation.

Changes

  • Reject messages containing both spellings of:
    • SigningCertURL / SigningCertUrl
    • SubscribeURL / SubscribeUrl
    • UnsubscribeURL / UnsubscribeUrl
  • Detect Lambda-style messages when any aliased URL key is present.
  • Canonicalize Lambda-style keys on the caller’s Message after successful validate().
  • Keep isValid() non-mutating.
  • Add regression tests for duplicate aliases, mixed casing, and mutation behavior.
  • Document canonicalization and URL-host verification guidance.

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

@stobrien89 stobrien89 closed this Sep 2, 2026
@stobrien89 stobrien89 reopened this Sep 2, 2026
@stobrien89
stobrien89 merged commit c3be6a3 into aws:master Sep 2, 2026
0 of 4 checks passed
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.

1 participant