Plugins do not match k8s baselinesecurity standards (mainly due to host mounts), but that could be compensated somewhat by adopting relevant policies from the k8s restricted security standard. When containers are run with root user, they could at least drop unnecessary privileges...
Describe the bug
Plugins do not match k8s baseline security standards (mainly due to host mounts), but that could be compensated somewhat by adopting relevant policies from the k8s restricted security standard. When containers are run with root user, they could at least drop unnecessary privileges...
To Reproduce
Check what capabilities are dropped in SecurityContext sections listed in plugins deployments: https://github.com/intel/intel-device-plugins-for-kubernetes/tree/main/deployments
For example: https://github.com/intel/intel-device-plugins-for-kubernetes/blob/main/deployments/gpu_plugin/base/intel-gpu-plugin.yaml
Expected behavior
Something like this:
Screenshots
E.g. in above listed GPU plugin deployment, SecurityContext is just:
System (please complete the following information):