Skip to content

feat(notifications): add reliable email and webhook event delivery #237

Closed

Description

@RentnerKev

Summary

Important failures currently require users to inspect the interface or logs. Add controlled outbound email and generic webhook delivery for certificate-renewal failures, sustained DDNS failures, and proxy-configuration application failures, plus recovery events.

Scope

  • Define typed, redacted event payloads and configurable severity/duration thresholds for actionable events.
  • Reuse the existing SMTP service and add explicitly configured webhook destinations without building provider-specific integrations.
  • Persist a bounded delivery queue/status with retries, deduplication, failure/recovery correlation, and suppression of repeated identical incidents.
  • Define server-side channel permissions, secret storage, network destination policy, timeouts, and payload limits.

Acceptance criteria

  • The initial event set covers certificate renewal, sustained DDNS failures, and failed proxy reconciliation with clear recovery semantics.
  • Repeated identical failures produce a bounded incident notification instead of a message for every retry.
  • Recovery is emitted only after the affected operation is actually healthy; event state survives restarts.
  • Transient delivery failure retries within configured limits without blocking proxy traffic or the originating operation.
  • Delivery failures cannot recursively trigger an unbounded notification loop.
  • SMTP/webhook secrets and sensitive runtime material never appear in payloads, status, logs, audits, or exports.
  • Webhook requests enforce bounded destinations/redirects, timeouts, and payload sizes; private-network destinations require explicit administrator configuration rather than blanket network access.
  • Webhook consumers such as Home Assistant can use the documented stable payload without a dedicated integration.

Verification

  • Use a fake SMTP service and webhook receiver to cover retry, deduplication, restart, recovery, unavailable receivers, redirects/destination policy, secret redaction, and failure-loop prevention.

Context

Dependencies and order

Implementation step: B2-08

Priority: P1 / outbound event delivery

Prerequisites: #232 (B2-03).

Roadmap: v1.0.0-beta.2. Follow the numbered milestone sequence for a straightforward step-by-step implementation.

Activity

  1. added this to the v1.0.0-beta.2 milestone on Oct 10, 2026
  2. added
    enhancement
    area: runtime
    on Oct 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: runtimeenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions