Isolate nodes in Kubernetes with an IMDS event controller #1292
All Vouch review confidence checks passed
Residual risk 0.41 = Change Risk (0.68) × (1 − Review Confidence (0.40)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.68 · 442 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.365
Shallow Review Depth
shallow_review_depth
0.344
Sensitive Paths
sensitive_paths
0.068
Real PR Conversation Timeline
1 comments
"Review active on #1292"
general
weight: 0.35
micahhausler
Issue #, if available: N/A
Description of changes:
This PR is split from #1290, along with #1291.
It depends on #1291 and includes its commit until that PR merges.
With this change to IMDS mode, no node's NTH pod can cordon, drain or modify any other node: it can only report its own node's events.
Node isolation is enforced at the Kubernetes layer with admission policy.
Previously, every node ran a pod whose service account could cordon and drain every node in the cluster.
RBAC alone cannot scope a permission to the caller's node.
It acts on a report only while the reporting pod runs on that node and the report's boot ID is the node's current one.
docs/imds_event_controller.mdcovers the design, permissions, tested policy cases and behavior differences.Upgrading: the chart now requires Kubernetes 1.30 or later and
rbac.create=truein IMDS mode.On older clusters, or with
rbac.create=false, setimdsEventController.enabled=falseto keep the old self-draining DaemonSet.How you tested your changes:
Environment (Linux / Windows): Linux (arm64 nodes, AL2023)
Kubernetes Version: EKS 1.36 (eksctl, EKS Pod Identity); kube-apiserver 1.35 for the admission policy tests
The EKS and AWS FIS tests ran before the report validation and Node-sourced metadata were added.
The reboot test stays in the old mode, because it fakes a reboot with an uptime file and kind's boot ID never changes.
go test ./...(including forged report fields),go vet,shellcheck,helm lint, andhelm templatefor each mode, including Kubernetes 1.29 being rejected.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.