-
Notifications
You must be signed in to change notification settings - Fork 33
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
Encryption at Rest (EAR) using e4crypt breaks after update to 2605.8.0 #286
Comments
Thanks for opening the issue. We'll look to reproduce, so any additional information is appreciated |
This breaks as soon as we go to 2605.5.0, so the break seems to be related to the change of kernel (or maybe docker) Requirements:
Below is the function we use to create the encryption:
Basically we have an init container that starts, mounts the PV, loads the key into the session on the node to decrypt the data and then the main container starts and only sees the decrypted data. |
can anyone confirm the new kernel is built with |
No, |
Was it ever? As the way of interacting with the encryption has changed between 2512 and 26xx, I wonder if this is either a new requirement as of kernel 5.xx or if you were building with that flag prior (my guess is more likely the former). Could I request this flag be enabled? as it makes encryption more efficient and for me is a dependency preventing me from upgrading flatcar. |
The 4.19 kernel in 2512.5.0 appears to have had these options enabled (
|
So the task at hand is to add the kernel config options outlined above (see kernel module section in the custom image docs), then file a PR to https://github.com/kinvolk/coreos-overlay/blob/main/sys-kernel/coreos-modules/files/commonconfig-5.10. Labelling as "good first issue". |
Reading: https://github.com/google/fscrypt#runtime-dependencies For 4.1-5.0:
For 5.1 onwards the correct setting is: My guess is that when it was cut over from 4.19 to 5.1+ the old deprecated CONFIG entries where removed but it was missed to add in |
@sayanchowdhury do you flatcar-archive/coreos-overlay#1212 is something we could cherry-pick into all channels? |
@jepio Do you know when this is likely to make it to 'stable' ? |
Should be in the stable release coming out this/next week. |
Just grabbed it will be testing properly next week, thank you |
Re-enable FS_ENCRYPTION. Closes flatcar/Flatcar#286.
Updating from 2512.5.0 to 2605.8.0 breaks encryption at rest using e4crypt.
e4crypt get_policy /var/lib/kubelet/plugins/kubernetes.io/vsphere-volume/mounts/\[MYDatastore\]\ kubevols/kubernetes-dynamic-pvc-axx32d6b-xxx-xxxx-xxxx-0xxx45dc2.vmdk/encrypted
returns
Error getting policy for /var/lib/kubelet/plugins/kubernetes.io/vsphere-volume/mounts/\[MYDatastore\]\ kubevols/kubernetes-dynamic-pvc-axx32d6b-xxx-xxxx-xxxx-0xxx45dc2.vmdk/encrypted: Operation not supported
I'll provide more information hopefully over the next week as i narrow down what exactly happened and if we can go into 26XX at all. This is a placeholder so I dont lose the info over the weekend and incase anyone else has encountered the issue.
Rolling back the update fixes the issue.
The text was updated successfully, but these errors were encountered: