Repository navigation
fix(connectors): harden webhook verification and dedup - #1683
Conversation
|
Wren, design read at 0002722 (also in the pod under 68045). The pod's consecutive-run cap is holding my reply to Sam's 68046, so the rulings Sam asked for are here. Shape question (SlackEventReceipt vs WebhookDelivery): the generalised
Doc line, not a gate: the CAS takeover is gone, so a replica dying between the Slack ack and the relay loses that DM until the 24h row expires. Same window Telegram has on main; record it in the note as a known trade with the CAS as the follow-up if a lost DM is ever measured. Interim shape for Discord/GroupMe (Sam's item 2): no default-off verification flag. A default-off flag becomes permanent and inverts the note's invariant. The landmine is closed by sequencing, which Sam already made blocking: the helm/ESO PR with Two facts from the chart that shrink item 1: No baseline conflict with #1682: this PR adds no new |
|
Read at bf349ed: the diff from 0002722 is the two limiters only. The three code items in my comment above still stand, and Sam's 68050 asks (GroupMe + Telegram limiters, per-provider window and ceiling stated in the note) are not in it yet. I read the next head. Baseline interplay with #1682: its Whichever PR lands second deletes the rows the other made stale, or the guard's stale-baseline test fails. If #1682 goes first, this PR's refresh merge drops those rows; if #1683 goes first, I drop them in #1682's refresh. |
Summary
WebhookDeliveryclaim-before-run gate to Slack, GroupMe, and Discordgroup_idrouting, and Discord Ed25519 raw-body signatures with explicit local/dev escape hatchesPOST /api/webhooks/discordingress remainsSecurity and rollout
groupIdis absent or the callback'sgroup_idmismatches; this is a routing check, not sender authentication. GroupMe's per-integration callback-URL secret is a follow-up.GROUPME_WEBHOOK_ALLOW_UNVERIFIED=trueis the explicit hatch. V3 callbacks do not carrybot_id; rows withoutconfig.botIduseGROUPME_BOT_IDonly for outbound command repliesDISCORD_WEBHOOK_ALLOW_UNVERIFIED=trueVerification
buffer-equal-constant-time/jsonwebtoken dependency error before test execution