Livio Spring 96380b977a
fix: cancel notifications on missing channels and configurable (twilio) error codes (#9185)
# Which Problems Are Solved

If a notification channel was not present, notification workers would
retry to the max attempts. This leads to unnecessary load.
Additionally, a client noticed  bad actors trying to abuse SMS MFA.

# How the Problems Are Solved

- Directly cancel the notification on:
  - a missing channel and stop retries.
  - any `4xx` errors from Twilio Verify

# Additional Changes

None

# Additional Context

reported by customer

(cherry picked from commit 60857c8d3e0108437a8a8eb5cc4efae5e440af85)
2025-01-17 09:31:10 +01:00
..
2024-07-26 22:39:55 +02:00
2022-04-26 23:01:45 +00:00