You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, RKE2 enables Secret encryotion at rest with `aescbc` provider and generate private key automatically. [Refer](https://docs.rke2.io/security/secrets_encryption)
6
+
7
+
## Customizing Encryption provider
8
+
9
+
To configure different provider (`aescbc` or `secretbox`) or specify encryption key explicitly configure `spec.serverConfig.secretsEncryption` block
10
+
11
+
Expample:
12
+
13
+
```yaml
14
+
apiVersion: controlplane.cluster.x-k8s.io/v1beta1
15
+
kind: RKE2ControlPlane
16
+
metadata:
17
+
name: my-cluster-control-plane
18
+
spec:
19
+
serverConfig:
20
+
secretsEncryption:
21
+
provider: "secretbox"
22
+
encryptionKeySecret:
23
+
name: encryption-key
24
+
namespace: exmaple
25
+
```
26
+
27
+
## Encryption secret format
28
+
29
+
When configuring the `encryptionKeySecret`, ensure the secret contains the following keys:
30
+
31
+
- **encryptionKey** - base64 decoded value of the encryption key
0 commit comments