Files
Pulse/internal/api
rcourtman 7d60209fac Harden notification destinations, webhook headers, and Apprise CLI
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
2026-11-24 11:59:33 +00:00
..
2026-10-11 22:20:25 +01:00
2026-08-31 19:47:01 +01:00
2026-04-26 17:26:16 +01:00
…
2026-09-01 01:02:17 +01:00

Internal API Package

This directory contains the API server implementation for Pulse.

Important Note About frontend-modern/

The frontend-modern/ subdirectory that appears here is:

  • AUTO-GENERATED during builds
  • NOT the source code - just a build artifact
  • IN .gitignore - never committed
  • REQUIRED BY GO - The embed directive needs it here

Frontend Development Location

👉 Edit frontend files at: ${PULSE_REPOS_DIR}/pulse/frontend-modern/src/

Why This Structure?

Go's //go:embed directive has limitations:

  1. Cannot use ../ paths to access parent directories
  2. Cannot follow symbolic links
  3. Must embed files within the Go module

This is a known Go limitation and our structure works around it.