Commit 7b8ad85
committed
fix(webapp): fail open when the webhook ingress rate limiter backend is down
The per-IP ingress limiter is an async Express middleware, and Express 4 does
not catch a rejected promise from a handler. If the rate-limiter backend is
unreachable, ipLimiter.limit() rejects, next() is never called, and the request
hangs until the client times out. Wrap the check in try/catch and let the
request through on a limiter error (the per-endpoint limiter is the real
protection), matching the OTLP ingress limiter.1 parent 99edcb2 commit 7b8ad85
1 file changed
Lines changed: 9 additions & 4 deletions
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
24 | 29 | | |
25 | 30 | | |
26 | 31 | | |
0 commit comments