Skip to content

Commit 979e434

Browse files
committed
Adding aesgcm info back in and mentioning migrating between types
1 parent 8c11823 commit 979e434

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

modules/enabling-etcd-encryption.adoc

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ After you enable etcd encryption, several changes can occur:
2020
* A disk I/O can affect the node that receives the backup state.
2121
====
2222

23+
You can encrypt the etcd database in either AES-GCM or AES-CBC encryption.
24+
25+
[NOTE]
26+
====
27+
To migrate your etcd database from one encryption type to the other, you can modify the API server's `spec.encryption.type` field. Migration of the etcd data to the new encryption type occurs automatically.
28+
====
29+
2330
.Prerequisites
2431

2532
* Access to the cluster as a user with the `cluster-admin` role.
@@ -33,19 +40,19 @@ After you enable etcd encryption, several changes can occur:
3340
$ oc edit apiserver
3441
----
3542

36-
. Set the `encryption` field type to `aescbc`:
43+
. Set the `spec.encryption.type` field to `aesgcm` or `aescbc`:
3744
+
3845
[source,yaml]
3946
----
4047
spec:
4148
encryption:
42-
type: aescbc <1>
49+
type: aesgcm <1>
4350
----
44-
<1> The `aescbc` type means that AES-CBC with PKCS#7 padding and a 32 byte key is used to perform the encryption.
51+
<1> Set to `aesgcm` for AES-GCM encryption or `aescbc` for AES-CBC encryption.
4552

4653
. Save the file to apply the changes.
4754
+
48-
The encryption process starts. It can take 20 minutes or longer for this process to complete, depending on the size of your cluster.
55+
The encryption process starts. It can take 20 minutes or longer for this process to complete, depending on the size of the etcd database.
4956

5057
. Verify that etcd encryption was successful.
5158

0 commit comments

Comments
 (0)