Open jhamman opened 11 months ago
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:
This is a common enough thing that folks ask for, and very easy to footgun by just giving users full root with privileged
, we should document how to do this properly somewhere.
In https://github.com/pangeo-data/pangeo/issues/190, @yuvipanda has documented how to enable FUSE safely in the z2jh context. That issue has served as a reference for the Pangeo project and @yuvipanda suggested I transfer it here for greater visibility.
The first part of the issue from @yuvipanda is below👇
Use a daemonset with rshared mounts to mount FUSE
Currently, each user mounts fuse themselves. This has negative security consequences, since they require privileged containers to do this.
Long term, the solution is to implement a Container Storage Interface driver for GCS FUSE. The CSI standard has wide adoption across multiple projects (mesos can also use it, for example), while FlexVolumes are kubernetes specific. FlexVolumes are also deprecated in Kubernetes now, and will be removed in a (far future) release. CSI is more flexible.
For the near term, it would be great to do something that lets us let go of GCS Fuse.
I'm assuming the following conditions are true for the FUSE usage:
We can use the new support for rshared mounts in kubernetes 1.10 to do the following:
How does this sound?
An alternative if we want to do this earlier is:
This can happen today if needed.