5429d85e8a
- Introduced EnhancedSecurityNotificationService for provider-based notifications. - Added migration logic from legacy notification configuration to managed providers. - Updated NotificationConfig model to reflect API surface changes and maintain legacy fields. - Enhanced Cerberus middleware to dispatch security events based on feature flags. - Updated routes to utilize the new enhanced service and handle migration at startup. - Added feature flag for security provider events to control behavior in production. - Updated tests to cover new functionality and ensure compatibility with existing behavior.
10 lines
476 B
Go
10 lines
476 B
Go
package notifications
|
|
|
|
const (
|
|
FlagNotifyEngineEnabled = "feature.notifications.engine.notify_v1.enabled"
|
|
FlagDiscordServiceEnabled = "feature.notifications.service.discord.enabled"
|
|
FlagGotifyServiceEnabled = "feature.notifications.service.gotify.enabled"
|
|
FlagLegacyFallbackEnabled = "feature.notifications.legacy_shoutrrr.fallback_enabled"
|
|
FlagSecurityProviderEventsEnabled = "feature.notifications.security_provider_events.enabled"
|
|
)
|