CRITICAL: TLS expiry warning fires on every check cycle with no deduplication #18
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/dnswatcher#18
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
checkTLSExpiry()ininternal/watcher/watcher.gosends a notification every time a TLS check runs if the certificate is within the warning window:There is no state tracking whether a warning has already been sent for this certificate. With the default 12h TLS interval, this means 2 warnings per day, every day, until the cert is renewed.
Impact
Notification spam to Slack/Mattermost/ntfy. Users will mute the channel, defeating the purpose of monitoring.
Fix
Track last-warned state (e.g., in
CertificateState) and only re-send if the expiry crosses a new threshold (e.g., 7 days, 3 days, 1 day, expired) or if the certificate changed.