-
Notifications
You must be signed in to change notification settings - Fork 555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
run ceph-csi as non-root and configurable UID/GID #2519
Comments
@ceph/ceph-csi-contributors any volunteers for analysis/PR to check is it possible especially for daemonset pods? |
Mounting will still require |
To add to above statement we cannot run the daemonset plugin pod with normal users as we need to create/delete the csi socket on the hostPath and the hostPath is created by kubelet with root user and if we try to run the daemonset plugin pod with the normal user the plugin pod will never come up
|
How about using an init container to chown the directory first and then run under the |
Is this still slated for support in 3.12? |
@gurucloudsec not for 3.12 may be for the next release. adding a flag as we are looking for volunteer for this one. |
I am very interested in this feature. For context, I use the following storageclass parameters with aws efs. I'm hoping something equivalent will be supported on cephfs. parameters:
directoryPerms: "700"
gid: "1000"
gidRangeEnd: "2000"
gidRangeStart: "1000"
uid: "1000" |
Describe the feature you'd like to have
Run ceph-csi as non-root and with configurable UID/GID.
What is the value to the end user? (why is it a priority?)
In an enterprise environment, running containers as root is a security concern.
For example, Ceph daemons support running as non-root with configurable UID/GID
https://docs.ceph.com/en/pacific/man/8/ceph/?highlight=setuser#cmdoption-ceph-setuser
If ceph csi would support running as non-root with configurable UID/GID, the solution would be complete.
How will we know we have a good solution? (acceptance criteria)
Check OS process owner. Example for ceph-mgr
Additional context
This feature was mentioned in #714, but the ticket was closed due to inactivity.
The text was updated successfully, but these errors were encountered: