mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
* feat(sns): trust FLOCI_TLS_EXTRA_CA_PATH for HTTPS subscriptions SnsService built its delivery HttpClient without an SSLContext, so an HTTPS subscription whose endpoint has a certificate from a private CA never got the SubscriptionConfirmation or any notification. Floci only logged "Failed to reach SNS endpoint". The @Inject constructor now passes ContainerCaBundle.sslContext(config) down to the constructor that builds the client, as EventBridgeInvoker does. The SubscriptionConfirmation and notification delivery share that one client. It stays pinned to HTTP/1.1, and hostname verification stays on. The other constructors build the client as before. Closes #8033 * test: share the /hook HTTPS endpoint between the extra CA delivery tests LocalHttpsServer.hook starts a localhost HTTPS server that passes each request to /hook to a callback and answers 200, and hookUrl gives its URL. EventBridgeInvokerApiDestinationTest and the new SNS test use them instead of each writing the endpoint out.