Skip to content

Conversation

bentsku
Copy link
Contributor

@bentsku bentsku commented Dec 5, 2024

Motivation

As reported by #11850, some SDK will verify the SigningCertURL field host part even if not validating the messages.

This PR introduces a config flag to allow the user to set the host of the SigningCertURL to pass those regex pattern, even if the host is then non-resolvable, it should at least unblock the user, as they confirmed this would be sufficient for their use case.

Changes

  • add a config flag SNS_CERT_URL_HOST to allow the user the set the host to an arbitrary value
  • create a test to validate SNS is properly using that value

fixes #11850

TODO

What's left to do:

  • create the docs PR to document this new config flag

@bentsku bentsku added aws:sns Amazon Simple Notification Service semver: patch Non-breaking changes which can be included in patch releases labels Dec 5, 2024
@bentsku bentsku self-assigned this Dec 5, 2024
@bentsku bentsku added this to the 4.1 milestone Dec 5, 2024
Copy link

github-actions bot commented Dec 5, 2024

S3 Image Test Results (AMD64 / ARM64)

  2 files    2 suites   5m 19s ⏱️
441 tests 389 ✅  52 💤 0 ❌
882 runs  778 ✅ 104 💤 0 ❌

Results for commit b2f78be.

Copy link

github-actions bot commented Dec 5, 2024

LocalStack Community integration with Pro

    2 files  ±0      2 suites  ±0   1h 48m 13s ⏱️ - 1m 26s
3 832 tests +2  3 514 ✅ +2  318 💤 ±0  0 ❌ ±0 
3 834 runs  +2  3 514 ✅ +2  320 💤 ±0  0 ❌ ±0 

Results for commit b2f78be. ± Comparison against base commit 6df4dbc.

@bentsku bentsku marked this pull request as ready for review December 5, 2024 18:05
@bentsku bentsku requested review from baermat and thrau as code owners December 5, 2024 18:05
Copy link
Contributor

@cloutierMat cloutierMat left a comment

Choose a reason for hiding this comment

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

LGTM! Great solution for what looked like a pretty complex issue! 🚀

@bentsku bentsku merged commit b882369 into master Dec 7, 2024
49 checks passed
@bentsku bentsku deleted the sns-cert-url-config branch December 7, 2024 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws:sns Amazon Simple Notification Service semver: patch Non-breaking changes which can be included in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: Issue with SNS message parsing with C#
2 participants