feat(webhooks): add outgoing webhook dispatcher with retries and HMAC signing#859
feat(webhooks): add outgoing webhook dispatcher with retries and HMAC signing#859Alimzy wants to merge 7 commits into
Conversation
|
@Alimzy Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
|
@Alimzy and clippy |
|
@Alimzy and clippy |
|
@Alimzy |
|
@Alimzy |
|
@Alimzy |
|
Run cargo fmt --all -- --check Error writing files: failed to resolve mod |
0ffad58 to
4f707a3
Compare
|
Run cargo fmt --all -- --check |
|
@Alimzy |
Adds webhook persistence and dispatch flow for plan lifecycle events:
plan.created
plan.pinged
plan.claimable
Adds PostgreSQL schema:
webhook_endpoints
webhook_dispatches
Implements background dispatcher with:
retry loop up to 5 attempts
exponential backoff
HMAC-SHA256 payload signing via X-Signature
status persistence for success/failure and next attempt scheduling
Wires dispatcher startup in main.rs
Enqueues webhook events from:
api.rs
inactivity_watchdog.rs
Closes #826