✨ incident enrichment, lifecycle management, and Slack thread support#455
Merged
Conversation
…port - Add IncidentState (Active/Stale/Resolved) and IncidentAction (Create/Update/Skip/Stale/Resolved) - Add enriched fields to Incident: OwnerKind, ContainerName, RestartCount, Hint, State, LastUpdate - Add Enricher interface + DefaultEnricher + hintForReason mapping - Correlation engine: new key format (ns:owner:reason:container), normalizeReason(), lifecycle ticker, RemovePod/MarkResolved, LifecycleHook (called outside lock) - Config: StaleThreshold (default 15m), LifecycleInterval (default 1m) - Handler: populate OwnerKind/RestartCount, call RemovePod on delete - Slack provider: threaded incident messages via postBlocksFn for all 5 actions, enriched blocks (OwnerKind, ContainerName, RestartCount, Hint), threadMap + mutex - Alert layer: ThreadProvider interface, per-action formatting, webhook fallback - NoiseFilter: skip Normal/Scheduled/Pulled/Pulling events pre-correlation
…er-wide Removes 'configmaps' from the ClusterRole and adds a namespace-scoped Role + RoleBinding for ConfigMap access (get/create/update/patch) in the kwatch namespace. This follows the principle of least privilege and prevents an attacker from manipulating ConfigMaps in other namespaces (e.g. CoreDNS) if the kwatch pod is compromised. Fixes #445
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✨ Incident Enrichment, Lifecycle & Slack Threads
🧠 Model
📡 Event
🧩 Enricher (new package)
🧠 Correlation Engine
⚙️ Config
🧑💻 Handler
🚨 Alert Layer
💬 Slack
🔇 Noise Filter
🧪 Tests
🔒 Safety