-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
How to confirm RBD PVC encryption is operating? #10371
Comments
@jfathman if you exec in the application pod and run
|
@Madhu-1 Thank you for your assistance. When I exec df -h in the application pods this is what I see:
When I exec lsblk in the rbdplugin pods this is what I see:
There is no indication of rdb0 or luks-pvc above. Ceph is using sdb on each cluster node as confirmed here:
Should I try configuring for OSD encryption instead of RBD PVC encryption, or is there something else to try first? Thank you. |
@jfathman your application is using cephfs PVC not rbd PVC, you will see like below output in application pod [🎩︎]mrajanna@fedora rbd $]kubectl exec -it csirbd-demo-pod -- sh
# df -h
Filesystem Size Used Avail Use% Mounted on
overlay 28G 6.0G 21G 23% /
tmpfs 64M 0 64M 0% /dev
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/vda1 28G 6.0G 21G 23% /etc/hosts
shm 64M 0 64M 0% /dev/shm
/dev/mapper/luks-rbd-0001-0009-rook-ceph-0000000000000002-a1ffc1e6-e2f9-11ec-b4a3-4aa9403aebce 977M 2.5M 958M 1% /var/lib/www/html
tmpfs 3.9G 12K 3.9G 1% /run/secrets/kubernetes.io/serviceaccount
tmpfs 2.0G 0 2.0G 0% /proc/acpi
tmpfs 2.0G 0 2.0G 0% /proc/scsi
tmpfs 2.0G 0 2.0G 0% /sys/firmware |
@Madhu-1 Thanks, that clarifies things.
We are using CephFS because we need RWX with multiple pods on separate nodes accessing the same storage. If we switch to RBD, do we lose RWX and only have RWO per the reference above? Is there an existing rook ceph option that supports both RWX and encryption? |
You might need to wait for ceph/ceph-csi#3158 (cephcsi v3.7.0 release)
RBD supports BlockMode RWX PVC, not the filesystem Mode.
The best option is to use osd encryption as cephcsi doesn't support cephfs encryption yet. |
@Madhu-1 Thanks for your assistance. Very helpful. |
Thank you for your excellent open source software.
I am using RBD PVC encryption on rook-ceph v1.9.2 on microk8s v1.23.3-2 running on Debian 10.11 buster cluster nodes.
An app file path based on an encrypted PVC works properly (write/read) for an app running in the cluster. Good.
The SC runtime config indicates encryption is enabled:
The PV runtime config similarly indicates encryption is enabled:
How can I confirm externally that encryption is operating, and perhaps what level of encryption is being used? Is there a command that can be run in the rook-ceph toolkit or on the outer host Linux command line?
Note that this is RBD PVC encryption, not OSD encryption.
Thanks.
The text was updated successfully, but these errors were encountered: