ceph-csi/internal/rbd
Niels de Vos 4937e59c4d rbd: add backwards compatible encryption in NodeStageVolume
When a volume was provisioned by an old Ceph-CSI provisioner, the
metadata of the RBD image will contain `requiresEncryption` to indicate
a passphrase needs to be created. New Ceph-CSI provisioners create the
passphrase in the CreateVolume request, and set `encryptionPrepared`
instead.

When a new node-plugin detects that `requiresEncryption` is set in the
RBD image metadata, it will fallback to the old behaviour.

In case `encryptionPrepared` is read from the RBD image metadata, the
passphrase is used to cryptsetup/format the image.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
2021-02-17 17:51:13 +00:00
..
clone.go cleanup: return error type in rbdVolume.checkCloneImage() 2020-12-09 08:35:35 +00:00
controllerserver.go rbd: move encryption function to encryption.go 2021-02-17 17:51:13 +00:00
driver.go rbd: update mount packges in import path 2020-12-17 16:04:54 +00:00
encryption.go rbd: add backwards compatible encryption in NodeStageVolume 2021-02-17 17:51:13 +00:00
errors.go rbd: correct the code comment for ErrFlattenInProgress 2020-10-20 08:59:25 +00:00
identityserver.go cleanup: address godot warnings 2020-07-21 08:36:24 +00:00
nodeserver_test.go cleanup: Remove support for Delete and Unmounting v1.1.0 PVC 2020-07-10 16:07:13 +00:00
nodeserver.go rbd: add backwards compatible encryption in NodeStageVolume 2021-02-17 17:51:13 +00:00
rbd_attach.go rbd: enable mapping and unmapping from a network namespace 2021-01-07 15:34:05 +00:00
rbd_journal.go rbd: store csi.storage.k8s.io/pvc/namespace metadata as Owner 2020-12-09 13:58:48 +00:00
rbd_util_test.go cleanup: Remove support for Delete and Unmounting v1.1.0 PVC 2020-07-10 16:07:13 +00:00
rbd_util.go rbd: move encryption function to encryption.go 2021-02-17 17:51:13 +00:00
snapshot.go rbd: replace klog with util logger in snapshot.go 2020-08-19 14:38:12 +00:00