mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-12-03 18:43:38 +01:00
Refuse blank or whitespace-only SMTP servers in EnhancedEmailManager before dialing so an empty host cannot reach loopback under tenant outbound policy. Bind saved SMTP passwords, Apprise API keys, and masked webhook headers and custom fields to their saved destination and transport security so updates or test sends to another host require re-entering the secret. Percent-encode control bytes and cap length on alert-derived webhook headers (X-Pulse-Event-ID and ntfy Title) so agent-supplied IDs cannot fail grouped webhook batches. Pass the Apprise CLI body on standard input with NUL bytes removed and bound the title argument so unrepresentable alert text cannot block grouped Apprise CLI deliveries. Contract-Neutral: Security hardening for notification destination binding, SMTP blank-host rejection, webhook header encoding, and Apprise CLI delivery without changing public API contracts