Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
84a4b13
docs: add notifications engine extraction spec
Wikid82 Aug 14, 2026
9af2d3e
feat: add Charon-side transport adapter for extracted notify module
Wikid82 Aug 15, 2026
11d3489
feat: add Charon-side provider and email adapters for notify module
Wikid82 Aug 15, 2026
f037ba0
feat: cut over Discord notifications to extracted notify module
Wikid82 Aug 15, 2026
5d3e68a
feat: cut over Slack notifications to extracted notify module
Wikid82 Aug 15, 2026
fd535d7
feat: cut over Gotify notifications to extracted notify module
Wikid82 Aug 15, 2026
6ef17a9
feat: cut over Pushover notifications to extracted notify module
Wikid82 Aug 15, 2026
6805d10
feat: cut over Ntfy notifications to extracted notify module
Wikid82 Aug 15, 2026
9c1bf67
feat: cut over Telegram notifications to extracted notify module
Wikid82 Aug 15, 2026
1b11227
feat: cut over generic webhook notifications to extracted notify module
Wikid82 Aug 15, 2026
c073f4b
feat: cut over email notifications to extracted notify module
Wikid82 Aug 15, 2026
e83b563
fix: preserve email fallback delivery on template render failure
Wikid82 Aug 15, 2026
8bb9553
refactor: remove extracted notification engine code from Charon
Wikid82 Aug 15, 2026
7bb44b7
docs: document extracted notification module in architecture docs
Wikid82 Aug 15, 2026
c1855bf
test: cover buildNotifySender error branches in notify dispatch paths
Wikid82 Aug 15, 2026
4cb5d67
chore: pin go_notify_yourself to published v0.1.0
Wikid82 Aug 15, 2026
21c2cc5
chore(deps): bump minio-go to v7.3.0
Wikid82 Aug 16, 2026
d7d1623
chore(deps): update @csstools and immer package versions
Wikid82 Aug 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ graph TB
| **WebSocket** | gorilla/websocket | Latest | Real-time log streaming |
| **Crypto** | golang.org/x/crypto | Latest | Password hashing, encryption |
| **Metrics** | Prometheus Client | Latest | Application metrics |
| **Notifications** | Notify (Discord-first) | Current | Discord notifications now; additional services in phased rollout |
| **Notifications** | github.com/Wikid82/go_notify_yourself | Current | External delivery-engine module (Discord, Slack, Gotify, Pushover, Ntfy, Telegram, generic webhook, and email) consumed via Charon-supplied SSRF/SMTP/template adapters — see Service Layer below |
| **Docker Client** | Docker SDK | Latest | Container discovery |
| **Logging** | Logrus + Lumberjack | Latest | Structured logging with rotation |
| **Backup Archive Encryption** | filippo.io/age | Latest | Passphrase (scrypt) encryption of backup archives; audited, pure Go, streaming AEAD — avoids buffering whole archives in RAM or hand-rolling chunked AES-GCM |
Expand Down Expand Up @@ -336,7 +336,8 @@ graph TB
- **ProxyService:** CRUD operations for proxy hosts, validation logic
- **CertificateService:** ACME certificate provisioning and renewal
- **DockerService:** Container discovery and monitoring
- **MailService:** Email notifications for certificate expiry
- **MailService:** SMTP transport and branded HTML templates for certificate-expiry and other system emails
- **NotificationService:** GORM CRUD for providers/templates, event-type-to-provider routing, and feature-flag gating (`internal/services/notification_service.go`); outbound dispatch for all seven provider types (Discord, Slack, Gotify, Pushover, Ntfy, Telegram, generic webhook) plus email is delegated to the external `github.com/Wikid82/go_notify_yourself` module through three Charon-supplied adapters — `notify_client_adapter.go` (SSRF-safe HTTP client/URL validation, wired to `internal/network`/`internal/security`), `notify_provider_adapter.go` (maps a `NotificationProvider` row to the matching provider `Config` + `Sender`), and `notify_email_adapter.go` (wraps `MailService` behind the module's `Mailer`/`TemplateRenderer` interfaces). The formerly in-repo delivery engine (`internal/notifications/`) has been removed.
- **SettingsService:** Application settings management
- **BackupService:** Format-v2 archive creation (manifest + SHA-256 checksums), configurable cron scheduling, the safe-restore pipeline (validate → pre-restore safety backup → apply → reconcile), and optional age/scrypt archive encryption — see "Backup & Restore Subsystem" below

Expand Down
3 changes: 2 additions & 1 deletion backend/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ go 1.26.6

require (
filippo.io/age v1.3.1
github.com/Wikid82/go_notify_yourself v0.1.0
github.com/gin-contrib/gzip v1.2.6
github.com/gin-gonic/gin v1.12.0
github.com/glebarez/sqlite v1.11.0
github.com/golang-jwt/jwt/v5 v5.3.1
github.com/google/uuid v1.6.0
github.com/gorilla/websocket v1.5.3
github.com/hashicorp/yamux v0.1.2
github.com/minio/minio-go/v7 v7.2.1
github.com/minio/minio-go/v7 v7.3.0
github.com/moby/moby/client v0.5.1
github.com/oschwald/geoip2-golang/v2 v2.3.0
github.com/pkg/sftp v1.13.11
Expand Down
6 changes: 4 additions & 2 deletions backend/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ filippo.io/hpke v0.4.0 h1:p575VVQ6ted4pL+it6M00V/f2qTZITO0zgmdKCkd5+A=
filippo.io/hpke v0.4.0/go.mod h1:EmAN849/P3qdeK+PCMkDpDm83vRHM5cDipBJ8xbQLVY=
github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY=
github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU=
github.com/Wikid82/go_notify_yourself v0.1.0 h1:Jq9540xO6hjbCtEHn+yxF8fIOL5tdKY4C55z0R75M0U=
github.com/Wikid82/go_notify_yourself v0.1.0/go.mod h1:Y2CIgAEYdsOwgEQDOXHO1nYYKvEDdGt08R3QD/6fG+w=
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
github.com/bytedance/gopkg v0.1.4 h1:oZnQwnX82KAIWb7033bEwtxvTqXcYMxDBaQxo5JJHWM=
Expand Down Expand Up @@ -110,8 +112,8 @@ github.com/minio/crc64nvme v1.1.1 h1:8dwx/Pz49suywbO+auHCBpCtlW1OfpcLN7wYgVR6wAI
github.com/minio/crc64nvme v1.1.1/go.mod h1:eVfm2fAzLlxMdUGc0EEBGSMmPwmXD5XiNRpnu9J3bvg=
github.com/minio/md5-simd v1.1.2 h1:Gdi1DZK69+ZVMoNHRXJyNcxrMA4dSxoYHZSQbirFg34=
github.com/minio/md5-simd v1.1.2/go.mod h1:MzdKDxYpY2BT9XQFocsiZf/NKVtR7nkE4RoEpN+20RM=
github.com/minio/minio-go/v7 v7.2.1 h1:PfBfwvKB/MmqyN8Vb1G9voWisaM9OrLv+WwOvMwS9Dw=
github.com/minio/minio-go/v7 v7.2.1/go.mod h1:EU9hENAStx/xXduNdrGO5e4X5vk19NtgB+RIPjZO8o0=
github.com/minio/minio-go/v7 v7.3.0 h1:HM4pFCSQq/TK+j0/zmorSh5ddh81iDgRgU0BG0Vz/YU=
github.com/minio/minio-go/v7 v7.3.0/go.mod h1:KUPWdecEO1LWyUz+sTGXAuf2jZHrPh5fCsRH86QbPfk=
github.com/moby/docker-image-spec v1.3.1 h1:jMKff3w6PgbfSa69GfNg+zN/XLhfXJGnEx3Nl2EsFP0=
github.com/moby/docker-image-spec v1.3.1/go.mod h1:eKmb5VW8vQEh/BAr2yvVNvuiJuY6UIocYsFu/DxxRpo=
github.com/moby/moby/api v1.55.0 h1:2/sexvQyqIWS8pRSCFddBfpW2qE7vR7FCL+vN8pxwMc=
Expand Down
124 changes: 0 additions & 124 deletions backend/integration/notification_http_wrapper_integration_test.go

This file was deleted.

22 changes: 0 additions & 22 deletions backend/internal/notifications/engine.go

This file was deleted.

7 changes: 0 additions & 7 deletions backend/internal/notifications/http_client_executor.go

This file was deleted.

Loading
Loading