discourse/app
Ted Johansson f1a43f2319
DEV: Handle SSL errors in push notification pusher (#22771)
We're seeing unhandled errors in production when web push notifications are failing with an SSL error. This is happening for a few users, but generating a large amount of log noise due to the sheer number of notifications.

This adds handling of SSL errors in two places:

1. In FinalDestination::HTTP, this is handled the same as a timeout error, and gives a chance to recover.
2. In PushNotificationPusher. This will cause the notification to retry a number of times, and if it keeps failing, disable push notifications for the user. (Existing behaviour.)

I wanted to wrap the SSL error in e.g. WebPush::RequestError, but the gem doesn't have request error handling, so didn't want to have the freedom patch diverge from the gem as well. Instead just propagating the raw SSL error.
2023-07-25 15:01:02 +08:00
..
assets FIX: Managing sidebar custom sections not working on subfolder (#22773) 2023-07-25 13:57:49 +08:00
controllers FEATURE: Regenerate outdated summaries. (#22718) 2023-07-20 15:25:46 -03:00
helpers SECURITY: Don't reuse CSP nonce between requests (#22544) 2023-07-11 15:24:36 -06:00
jobs DEV: Replace raw comments with deprecation warnings (#22617) 2023-07-18 10:13:40 +08:00
mailers FIX: Order tags shown in email subject by topics count and name (#22586) 2023-07-13 15:39:58 +08:00
models DEV: Remove deprecated whitelist methods (#22731) 2023-07-21 11:32:21 +08:00
serializers UX: Display tag's description as title in navigation menu (#22710) 2023-07-24 08:07:37 +08:00
services DEV: Handle SSL errors in push notification pusher (#22771) 2023-07-25 15:01:02 +08:00
views SECURITY: Don't reuse CSP nonce between requests (#22544) 2023-07-11 15:24:36 -06:00