Replace kubelet volume mount with subdirectories#2259
Replace kubelet volume mount with subdirectories#2259k8s-ci-robot merged 1 commit intokubernetes-sigs:masterfrom
Conversation
6dce6d7 to
1a7a817
Compare
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hajiler, mattcary The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
1a7a817 to
9db63ea
Compare
9db63ea to
200a34c
Compare
|
/test pull-gcp-compute-persistent-disk-csi-driver-e2e-windows-2022 |
|
@hajiler: you cannot LGTM your own PR. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/retest |
|
@hajiler: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
Failed tests related to VolumeSnapshot. |
What type of PR is this?
/kind bug
What this PR does / why we need it:
The driver was previously mounting the entire /var/lib/kubelet host directory. This broad access violates the principle of least privilege by exposing sensitive subdirectories—such as /var/lib/kubelet/pki/ (node certificates) and /var/lib/kubelet/pods/ (all pod volumes and tokens)—to the CSI container.
This change replaces the single broad root mount with restricted hostPath mounts.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: