SynologyOpenSource / synology-csi

Apache License 2.0
499 stars 107 forks source link

Encryption for SMB/CIFS shares #50

Open spicysnickerz opened 1 year ago

spicysnickerz commented 1 year ago

When creating a PVC using the SMB/CIFS storageclass there is no way to create an encrypted share. The shares are created as un-encrypted. To satisfy ISO requirements data at reset needs to be encrypted. After the un-encrypted share is created I can manually encrypt the shared folder. However, when the volume is deleted, synology-csi controller is not able to automatically delete the share. If I leave the share as unencrypted then synology-csi can correctly delete the share when the volume is deleted.

Is it possible to either: 1) Allow users to specify an encryption key in the storageclass to create encrypted shared folders; or 2) Allow the user to manually encrypt share folders but still allow synology-csi to delete the shares when the volume is deleted in K8s