Commit 46da2cb
committed
fix(webapp): reject webhook verification configs that can never verify
Two configs were accepted but would then fail-close every delivery.
The dashboard secret-generation action minted a shared secret for any endpoint,
including asymmetric (public-key) ones, overwriting the stored public key. It now
rejects generation for asymmetric endpoints, matching the public API route.
url-secret verification with path placement can never match on the hosted ingress
URL, whose last path segment is the fixed opaque endpoint id, so deploy-sync now
rejects it with a clear error instead of letting every inbound event 400.1 parent 7a609bf commit 46da2cb
2 files changed
Lines changed: 21 additions & 0 deletions
File tree
- apps/webapp/app
- routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.webhooks.endpoints.$endpointParam
- v3/services
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
179 | 190 | | |
180 | 191 | | |
181 | 192 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
708 | 708 | | |
709 | 709 | | |
710 | 710 | | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
711 | 721 | | |
712 | 722 | | |
713 | 723 | | |
| |||
0 commit comments