Skip to content

Integration: outbound HTTPS alert webhooks #225

Closed

Description

@unjica

Summary

Configurable outbound HTTPS webhooks for project alert events: JSON payload, optional HMAC signing, dispatch from fireProjectAlert, Alerts → Delivery UI, delivery attempt / dead-letter persistence, and docs.

Parent (vision only): #492 — do not implement the multi-channel vision under that issue; this issue owns the webhook channel.

Scope (this issue)

  • One or more HTTPS webhook URLs per project (cap 5; soft-delete)
  • URL validation (HTTPS-only; block loopback / private / link-local / metadata hosts)
  • Optional HMAC-SHA256 signing secret (X-Telemetry-Signature)
  • CRUD + enable/disable + test POST via API (/project/webhooks*) and dashboard Alerts → Delivery
  • Dispatch from fireProjectAlert after a new AlertEvent insert (best-effort; alert fire still succeeds if delivery fails)
  • Retry with short backoff; persist attempts in AlertWebhookDelivery (SUCCESS / FAILED / DEAD)
  • Payload schema + headers documented (docs/ALERT-WEBHOOKS.md)
  • Vitest coverage for URL validation / dispatch helpers

Branch / MVP status

Uncommitted work on feature/225-alert-webhooks substantially completes this issue for an MVP ship.

Remaining gaps (honest)

  • Operator-facing delivery log — rows are written to AlertWebhookDelivery, but there is no list API or Alerts UI to browse success/failure history yet
  • Optional polish: rotate signing secret / edit URL without recreate; richer backoff / queue (current: 2 in-process attempts)

Closing this issue after merge is reasonable once the MVP above is on develop; track the delivery-log UI as a follow-up checklist item or a small follow-up issue if preferred.

Out of scope

  • First-party Slack / Discord / Teams / Telegram UIs (#223, #224, #500) — DIY incoming webhook URLs may still work as destinations
  • Notification Center page (#508)
  • Email channel work (#499)
  • Configurable alert rules engine (#493)

Activity

  1. added
    enhancement
    help wanted
    api
    backend
    on Jul 7, 2026
  2. self-assigned this
    on Jul 17, 2026
  3. unjica commented on Jul 17, 2026

    @unjica
    CollaboratorAuthor

    1:Channel for Notifications roadmap (#492). Keep this issue for generic webhook delivery.

  4. added
    priority:1
    on Jul 17, 2026
  5. changed the title [-]Integration: Generic webhook alerts[/-] [+]Integration: outbound HTTPS alert webhooks[/+] on Jul 17, 2026
  6. unjica commented on Jul 17, 2026

    @unjica
    CollaboratorAuthor

    Ownership clarification

    Outbound HTTPS alert webhooks (CRUD, signing, fireProjectAlert dispatch, Alerts → Delivery UI, delivery attempt / dead-letter persistence, docs) are owned by this issue, not #492.

    #492 remains vision/parent only. Local branch work is retargeted to feature/225-alert-webhooks. The uncommitted MVP substantially completes this issue; remaining gap called out in the issue body is an operator-facing delivery log UI/API (DB rows already written).

  7. unjica commented on Jul 17, 2026

    @unjica
    CollaboratorAuthor

    PR opened for this issue: #509

    Delivery log completed in that PR:

    • GET /api/project/webhook-deliveries (optional webhookId filter; same read auth as alert history)
    • Alerts → Delivery shows recent attempts (SUCCESS / FAILED / DEAD, timestamps, HTTP/error summary, which webhook)

    Please leave this issue open until the PR merges; ready to close after merge to develop.

  8. added 2 commits that reference this issue on Jul 17, 2026
  9. unjica commented on Jul 17, 2026

    @unjica
    CollaboratorAuthor

    Shipped in v1.14.0.

    Hosted cloud: migration 20260717120000_project_alert_webhooks applied; production /health reports 1.14.0. Alert webhook worker must be running as a separate Railway service (same pattern as brief-worker) for queued deliveries to POST.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

apibackendenhancementhelp wantedpriority:1

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions