fix(security): supply the C-0211 baseline context to longhorn-manager and the driver deployer - #3876
Conversation
… and the driver deployer Post-render fsGroupChangePolicy OnRootMismatch and an empty container seLinuxOptions onto the longhorn-manager DaemonSet and the longhorn-driver-deployer Deployment, the two remaining workloads the Longhorn chart renders. The CSI sidecars, csi-plugin and engine-image workloads are created by longhorn-manager at runtime and are out of reach. Part of #3239 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@coderabbitai full review |
|
✅ Action performedFull review finished. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Organization UI (inherited) Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📜 Recent review details🔇 Additional comments (2)
📝 WalkthroughWalkthroughThe Longhorn HelmRelease adds Kustomize patches for the manager DaemonSet and driver deployer Deployment. The patches set Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The Longhorn security-context patches and corresponding approval baseline update have no identified merge-blocking risk. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Readiness at
|
Why
Kubescape's C-0211 control still flags the Longhorn storage workloads, because Longhorn's namespace is excluded from the cluster-wide security-context mutation and the chart has no setting for these two fields. This is the Longhorn slice of #3239.
What
Adds the two missing security-context fields to the two remaining workloads the Longhorn chart renders: the storage manager and the driver deployer. Neither pod changes file ownership or SELinux behaviour. The other eight flagged Longhorn workloads are created by Longhorn itself at runtime, so a chart patch cannot reach them; they stay open on #3239.
Operational note: the storage manager restarts node by node when this deploys. Volumes stay attached during that restart.
Part of #3239