Notifications
Notification channels
What it does
Delivers Manager notifications (security events, operator messages) over email, generic webhooks, Slack, and the console WebSocket. Templates live under /api/v1/email-templates.
Edition
SHARED. POST /api/v1/notifications and template writes may 403 on Enterprise without the notifications feature.
Prerequisites
- SMTP server if email enabled
- HTTPS webhook endpoint if webhook enabled
- Admin JWT
notifications.*YAML
Required permissions / credentials
- SMTP username/password (secret)
- Webhook URL (secret if it embeds a token)
- Slack incoming webhook if used (secret)
Configuration
notifications:
email:
enabled: false
smtp_host: "smtp.example.com"
smtp_port: 587
username: ""
password: "" # systemd credential
from: "zwall@example.com"
recipients: ["ops@example.com"]
webhook:
enabled: false
url: "https://hooks.example.com/zwall"
timeout: 10sPer-admin preferences: GET/PUT /api/v1/notifications/preferences/me (channels, severity threshold, quiet hours).
Setup
- Set YAML; store SMTP password in credentials.
- Restart Manager.
POST /api/v1/settings/notifications/testorPOST /api/v1/email-templates/:id/test(sends real mail).- Create a test notification via API or trigger a lab security event.
Verification
GET /api/v1/notifications/healthGET /api/v1/notifications?limit=50shows rowsGET /api/v1/notifications/:id/deliveriesshows channel attempts- Inbox / webhook receiver logs
Expected signals / results
Console unread count increments. Email uses templates when configured. Dedup may collapse repeats (count on the notification object).
Failure modes
Scroll sideways to see the full table. Use the arrow keys when focused.
| Symptom | Meaning |
|---|---|
| 500 retrieve notifications | DB |
| test fails | SMTP/TLS/auth |
| empty deliveries | channel disabled or quiet hours |
| 403 license | Enterprise feature gate |
Troubleshooting
- Preferences
email_enabledfalse for that admin severity_thresholdfilters low events- Webhook timeout default 10s
- Do not log SMTP passwords
Security considerations
Notification bodies can include IPs and usernames. Treat mail as sensitive. Webhook URLs are capabilities.
Limitations
- Not a paging vendor
- Slack is protocol-level, not a Slack app marketplace product
- No guaranteed exactly-once delivery