Skip to content

feat(integration): draw confirmation webhooks - #145

Merged
greatest0fallt1me merged 2 commits into
Creditra:mainfrom
frankosakwe:feature/draw-webhook
Mar 29, 2026
Merged

feat(integration): draw confirmation webhooks#145
greatest0fallt1me merged 2 commits into
Creditra:mainfrom
frankosakwe:feature/draw-webhook

Conversation

@frankosakwe

@frankosakwe frankosakwe commented Mar 27, 2026

Copy link
Copy Markdown
Contributor

Closes #105


  • Add DrawWebhookService with HMAC signing and retry logic
  • Integrate webhooks with Horizon listener for draw confirmations
  • Add webhook management endpoints (/api/webhooks/*)
  • Update OpenAPI spec with webhook documentation
  • Add comprehensive tests with 95%+ coverage
  • Update README with webhook configuration and usage guide

Environment variables:

  • WEBHOOK_URLS: Comma-separated webhook endpoints
  • WEBHOOK_SECRET: HMAC secret for payload signing
  • WEBHOOK_MAX_RETRIES: Maximum retry attempts (default: 3)
  • WEBHOOK_INITIAL_BACKOFF_MS: Initial backoff delay (default: 1000ms)
  • WEBHOOK_BACKOFF_MULTIPLIER: Exponential backoff multiplier (default: 2.0)
  • WEBHOOK_TIMEOUT_MS: Request timeout (default: 10000ms)

Security features:

  • HMAC SHA-256 payload signing
  • Exponential backoff retry logic
  • Request timeout handling
  • Signature verification headers

- Add DrawWebhookService with HMAC signing and retry logic
- Integrate webhooks with Horizon listener for draw confirmations
- Add webhook management endpoints (/api/webhooks/*)
- Update OpenAPI spec with webhook documentation
- Add comprehensive tests with 95%+ coverage
- Update README with webhook configuration and usage guide

Environment variables:
- WEBHOOK_URLS: Comma-separated webhook endpoints
- WEBHOOK_SECRET: HMAC secret for payload signing
- WEBHOOK_MAX_RETRIES: Maximum retry attempts (default: 3)
- WEBHOOK_INITIAL_BACKOFF_MS: Initial backoff delay (default: 1000ms)
- WEBHOOK_BACKOFF_MULTIPLIER: Exponential backoff multiplier (default: 2.0)
- WEBHOOK_TIMEOUT_MS: Request timeout (default: 10000ms)

Security features:
- HMAC SHA-256 payload signing
- Exponential backoff retry logic
- Request timeout handling
- Signature verification headers
@drips-wave

drips-wave Bot commented Mar 27, 2026

Copy link
Copy Markdown

@frankosakwe 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! 🚀

Learn more about application limits

@frankosakwe

Copy link
Copy Markdown
Contributor Author

i am done with the issues so you can check and merge

@greatest0fallt1me
greatest0fallt1me merged commit 3c471cc into Creditra:main Mar 29, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Webhook or callback dispatch after on-chain draw confirmation

2 participants