Files
floci/src/test/java/io/github
Rafael Almonte 86dc64fc7e feat(sns): implement HTTP/HTTPS endpoint delivery (#841) (#865)
* feat(sns): implement HTTP/HTTPS endpoint delivery (#841)

Add HTTP/HTTPS webhook delivery to SNS topics. When a message is
  published to a topic with HTTP(S) subscribers, a POST is now made to
  the endpoint with the SNS notification envelope and standard headers.

* fix(sns): address review feedback for HTTP/HTTPS delivery

- Use proper SubscriptionConfirmation flow instead of auto-confirm
- Make HTTP delivery async with sendAsync to avoid blocking Publish
- Log non-2xx responses as warnings instead of successful deliveries
- Fix field name SigningCertUrl -> SigningCertURL for HTTP notifications
- Add x-amz-sns-rawdelivery header for raw message delivery
- Validate endpoint scheme matches protocol on subscribe
- Use BodyHandlers.discarding() since response body is unused
- Pass null HttpClient in test constructor to avoid real connections
- Add message attributes coverage to integration test

* fix(sns): correct subscription-arn header and binary attribute serialization

  - Send PendingConfirmation as x-amz-sns-subscription-arn header in
    SubscriptionConfirmation requests, matching AWS wire protocol
  - Base64-encode binary MessageAttributes in HTTP notification envelope
    instead of producing null
  - Add header assertion to subscription confirmation integration test
2026-05-18 18:58:09 -05:00
..