-
Notifications
You must be signed in to change notification settings - Fork 549
Some problems about Team Storage Detail #5522
Comments
It would be better if it could be done technically, but based on my knowledge, this may not be possible. |
Thanks for share this practice. Restrict machine to mount NFS is a good idea. But it's will be a problem if new user added. We need to add the user to both nfs server and pai system. Maybe consider to use cloud storage (AWS S3/Azure blob/Alibaba OSS) is an other solution. |
Because the NFS server may not belong to the cluster, it seems that the uid/gid cannot be automatically shared with the NFS server in the background when adding users. If openpai can disable the mount command in the container, then this problem will be solved. Due to policy reasons, it is convenient for universities to use scientific research funds to buy equipment, but it is inconvenient to use cloud services. This is why we maintain a cluster, although we are only a small team. |
For disable For more advantage feature, you can limit the allowed system call in container, your can refer: https://kubernetes.io/docs/tutorials/clusters/seccomp/ |
After this PR is released. I can up another Nginx service and use the |
Close this, feel free to reopen |
This is my solution for reference to friends in need:
|
Unfortunately, |
What would you like to be added:
Following the "upload" part of the storage usage tutorial, the user will mount the root of the NFS server to upload files, however, the folder that the user mounts to the container is
server://${PAI_USER_NAME}
(share: "false" in PVC ).On the one hand, this exposes all users' files to this user, so that the security of user data cannot be guaranteed. On the other hand, it caused confusion to the user. The file was uploaded clearly, but it could not be found in the container.
My solution is to restrict only the machines in the cluster to mount on the NFS server. When the user needs to upload files, he opens a CPU-only container and then uploads files with the SFTP tool. This can solve the security problem of the NFS server itself, that is, prohibit LAN hackers from mounting the NFS folder. However, it cannot be ruled out that users follow this tutorial to mount the shared folder of the NFS server in the container.
So this page and this page needs to be modified.
Why is this needed:
Without this feature, how does the current module work:
Components that may involve changes:
The text was updated successfully, but these errors were encountered: