feat: 16 notification services (chat, push, paging, Apprise) #99

Merged
Sebi merged 2 commits from feat/notification-providers into main 2026-11-22 17:42:21 +00:00
Owner

Stacked on #98.

Providers (internal/notify/providers.go): Slack, Discord, Microsoft Teams (Adaptive Card for workflows), Google Chat, Mattermost, Rocket.Chat, Telegram (incl. forum topics, own Bot API server), Matrix, ntfy, Gotify, Pushover, Pushbullet, Signal (signal-cli-rest-api), PagerDuty (Events API v2, resolve by incident), Opsgenie (US/EU, close by alias), and Apprise (API server: Apprise URLs or a stored config key) for the 100+ others. Webhook and email stay as they are.

  • Each provider declares its fields (required, secret, kind, options, default) and its send function; form, validation and docs come from that table.
  • Requests through the network guard (private networks only for self-hosted), no redirects, errors quote the service's reason but name only the host — URLs like Telegram's carry the token.
  • Secrets sealed per channel type and field, never returned (secrets_set lists which are set), kept when an update leaves them empty; tested that the token is neither stored nor returned in plain text.
  • Messages in the channel's language with title, cause per region or downtime, and a link to the monitor.
  • DB: channel type constraint relaxed to a format check (00034).
  • Tests: every provider against a fake service (17 cases incl. resolve paths), error quoting, private-network refusal, token redaction, API flow, translations for all providers and fields.

Closes #92

🤖 Generated with Claude Code

https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3

Stacked on #98. **Providers** (`internal/notify/providers.go`): Slack, Discord, Microsoft Teams (Adaptive Card for workflows), Google Chat, Mattermost, Rocket.Chat, Telegram (incl. forum topics, own Bot API server), Matrix, ntfy, Gotify, Pushover, Pushbullet, Signal (signal-cli-rest-api), PagerDuty (Events API v2, resolve by incident), Opsgenie (US/EU, close by alias), and **Apprise** (API server: Apprise URLs or a stored config key) for the 100+ others. Webhook and email stay as they are. - Each provider declares its fields (required, secret, kind, options, default) and its send function; form, validation and docs come from that table. - Requests through the network guard (private networks only for self-hosted), no redirects, errors quote the service's reason but name only the host — URLs like Telegram's carry the token. - **Secrets** sealed per channel type and field, never returned (`secrets_set` lists which are set), kept when an update leaves them empty; tested that the token is neither stored nor returned in plain text. - Messages in the channel's language with title, cause per region or downtime, and a link to the monitor. - DB: channel type constraint relaxed to a format check (`00034`). - Tests: every provider against a fake service (17 cases incl. resolve paths), error quoting, private-network refusal, token redaction, API flow, translations for all providers and fields. Closes #92 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Sebi added this to the M11 Uptime Kuma parity milestone 2026-11-22 15:07:33 +00:00
Sebi changed target branch from feat/alertmanager to main 2026-11-22 17:41:54 +00:00
Sebi added 2 commits 2026-11-22 17:41:55 +00:00
Slack, Discord, Microsoft Teams, Google Chat, Mattermost, Rocket.Chat,
Telegram, Matrix, ntfy, Gotify, Pushover, Pushbullet, Signal (signal-cli
REST API), PagerDuty and Opsgenie natively, and every service Apprise
supports through an Apprise API server. Each provider declares its
settings and how it sends; PagerDuty and Opsgenie pair trigger and
resolve by incident. Requests go through the network guard, and errors
name only the host, since URLs may carry tokens.

Refs #92

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
feat: notification channels for chat, push and paging services
ci / image (pull_request) Successful in 3m1s
ci / test (pull_request) Successful in 6m17s
ci / build (pull_request) Successful in 8m47s
ci / lint (pull_request) Successful in 9m36s
b01eefdbce
Channels of the new types store their settings with secrets sealed and
bound to type and field, never return them, and keep them when an update
leaves them empty. Messages are rendered in the channel's language with
a link to the monitor. The channels page offers every service with its
fields.

Closes #92

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Sebi merged commit 7defeade5a into main 2026-11-22 17:42:21 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ZB-Server/uptimesebi#99