Repository navigation
Closed
Labels
Milestone
Description
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
- Existing certificate operations and renewal events: feat(certificates): expose durable operation status and renewal events #78. Reuse existing lifecycle events rather than duplicating ACME state.
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