Setup Encrypted Volumes
This page explains how to configure encryption for persistent volumes where encrypted volume support is enabled.
Prerequisites
For this guide, it’s assumed that:
-
You have
pwgenor a similar password generator installed. -
You are logged in to your APPUiO Cloud project using the
oc logincommand.
On cloudscale.ch
-
Ensure the
PersistentVolumeClaimhas setspec.storageClassName=ssd-encrypted(orbulk-encrypted). -
Create a
Secretthat contains the encryption key.oc create secret generic my-pvc-luks-key \ (1) --from-literal luksKey=$(pwgen -c -s 64 1) (2)1 The name must be composed with the PersistentVolumeClaimname and-luks-keyas suffix2 Key within Secretmust be namedluksKey-
You can also create the encryption key using files.
-
If you need to manage the
Secretvia Helm you can also use thesecretHelm chart.
-
|
Don’t lose the encryption key! You can’t change it. |
|
The cipher used is |