• Jan Safranek's avatar
    Lock subPath volumes · 5110db50
    Jan Safranek authored
    Users must not be allowed to step outside the volume with subPath.
    Therefore the final subPath directory must be "locked" somehow
    and checked if it's inside volume.
    
    On Windows, we lock the directories. On Linux, we bind-mount the final
    subPath into /var/lib/kubelet/pods/<uid>/volume-subpaths/<container name>/<subPathName>,
    it can't be changed to symlink user once it's bind-mounted.
    5110db50
kubelet_pods_windows_test.go 2.48 KB