fix: security event notifications reach only Discord providers
メンテナーはふだん 1 日以内に返信
@Wikid82 がすでに取り組んでいます。
2026年12月3日 から。
評価
この issue はまだ評価されていません。
説明
What
The notification provider form offers WAF, access list, rate limit and CrowdSec events for every provider type, but security events are dispatched only to Discord providers:
EnhancedSecurityNotificationService.SendViaProviderskeeps onlydiscordproviders (backend/internal/services/enhanced_security_notification_service.go:494-550, type filter at:506-516;dispatchToProviderat:554-561refuses any other type).- The Discord send posts the raw security event JSON (
sendWebhook,:565-598), not a Discord message body. - Dispatch runs only when the setting
feature.notifications.security_provider_events.enabledistrue(backend/internal/cerberus/cerberus.go:306-322). It defaults tofalsein production (backend/internal/api/handlers/feature_flags_handler.go:59,enhanced_security_notification_service.go:622-650) and the UI has no switch for it. - The
GET /notifications/settings/securityaggregation lists six provider types (:93-100) while nine are supported.
Unused code in the same area: the securityNotifySvc field (cerberus.go:31,54, never read), Cerberus.NotifySecurityEvent (cerberus.go:236-242, no caller) and the older backend/internal/services/security_notification_service.go.
Severity
Medium (security-adjacent: administrators who tick security events on a Gotify, Slack, Telegram, Email or other non-Discord provider receive nothing).
Suggested approach
Route security events through NotificationService.SendExternal, which already maps security_waf, security_acl, security_rate_limit and security_crowdsec to the provider preferences (notification_service.go:256-263) and picks the security email template (:405-406). Decide the default for the feature setting (or remove it), send in the background with grouping per event type, align the GET aggregation with the supported types, and remove the unused code. Add tests per provider type.
Found while planning the notification delivery fix (#2103, #2104, #2101). Scheduled as its own PR right after that one.
- 主要言語
- Go
- スター
- 17
- フォーク
- 2
- 平均マージ
- 1時間 42分
- マージ済み PR(30日)
- 173
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Wikid82/Charon のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
Docs promise signed SLSA provenance that the image build does not produce対応中かも @Wikid82 が今日担当しました。 オープンarchitecture documentation security ui
Wikid82/Charon#2152 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Orthrus agent images are not signed or SBOM-attested対応中かも @Wikid82 が今日担当しました。 オープンsecurity ssl testing
Wikid82/Charon#2151 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Registry prune deletes release image signatures and SBOM attestations on GHCR after 7 days対応中かも @Wikid82 が今日担当しました。 オープンcritical testing
Wikid82/Charon#2150 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Minor follow-ups from the country-allow-list local-network review対応中かも @Wikid82 が今日担当しました。 オープンarchitecture backend documentation frontend low
Wikid82/Charon#2149 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
agent:ready
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
turbot/flowpipe#1162 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
LifetimeRemaining divides by zero when expireAfter is 0s, producing NaN disruption costs対応中かも @weirong-ui が今日担当しました。 オープンkind/bug needs-priority needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
kubernetes-sigs/karpenter#3728 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
compaction: redundant exclusion checks after inRange対応中かも @moodbased が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
docker/mcp-registry#8199 ·
メンテナーはふだん 2 日以内に返信