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
kubectl get --raw /metrics | grep apiserver_encryption
Reproducing Results/Observations:
rke2 version used for replication:
$ rke2 -v
rke2 version v1.29.2-rc3+rke2r1 (08699dfffdf75a61a5e6064f9f8efe8ddae857fe)
go version go1.21.7 X:boringcrypto
$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
ip-172-31-16-219 Ready etcd 6m15s v1.29.2+rke2r1
ip-172-31-16-91 Ready <none> 4m14s v1.29.2+rke2r1
ip-172-31-28-150 Ready control-plane,master 6m21s v1.29.2+rke2r1
ip-172-31-29-121 Ready control-plane,master 5m8s v1.29.2+rke2r1
$ sudo rke2 secrets-encrypt rotate-keys
FATA[0061] see server log for details: https://127.0.0.1:9345/v1-rke2/encrypt/config: 400 Bad Request secrets-encrypt error ID 66168
The file /var/lib/rancher/rke2/server/cred/encryption-config.json seems to get out of sync with the datastore.
The metrics server does not produce the right result and hence the rotate-keys operation never completes:
$ kubectl get --raw /metrics | grep apiserver_encryption
P.S: Another file to keep an eye on: /var/lib/rancher/rke2/server/cred/encryption-state.json
Expected behavior:
$ sudo rke2 secrets-encrypt rotate-keys
keys rotated, reencryption started
the reencrypt_finished stage should occur on a successful command completion of the same, when we retry the sudo rke2 secrets-encrypt status command after a few seconds.
reboot the nodes in order - etcd nodes then cp nodes - and all hashes should match.
The text was updated successfully, but these errors were encountered:
$ rke2 -v
rke2 version v1.29.3+dev.eb2d438a (eb2d438a2fe6b426ecd00cb8e829ddc728a246b7)
go version go1.21.8 X:boringcrypto
$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
ip-172-31-17-195 Ready control-plane,master 22m v1.29.3+rke2r1
ip-172-31-19-236 Ready etcd 22m v1.29.3+rke2r1
ip-172-31-25-125 Ready control-plane,master 20m v1.29.3+rke2r1
ip-172-31-28-204 Ready <none> 20m v1.29.3+rke2r1
Rotate-keys:
$ sudo rke2 secrets-encrypt rotate-keys
keys rotated, reencryption started
Reboot rke2 services and get status:
$ sudo rke2 secrets-encrypt status
Encryption Status: Enabled
Current Rotation Stage: reencrypt_finished
Server Encryption Hashes: All hashes match
Active Key Type Name
------ -------- ----
* AES-CBC aescbckey-2024-04-08T21:19:13Z
Issue found on master branch with version v1.29.2-rc3+rke2r1
Environment Details
Infrastructure
Node(s) CPU architecture, OS, and Version:
Cluster Configuration:
Config.yaml:
ETCD server config:
CP only node configs:
Steps to reproduce:
Reproducing Results/Observations:
The file /var/lib/rancher/rke2/server/cred/encryption-config.json seems to get out of sync with the datastore.
The metrics server does not produce the right result and hence the rotate-keys operation never completes:
P.S: Another file to keep an eye on: /var/lib/rancher/rke2/server/cred/encryption-state.json
Expected behavior:
the reencrypt_finished stage should occur on a successful command completion of the same, when we retry the
sudo rke2 secrets-encrypt status
command after a few seconds.reboot the nodes in order - etcd nodes then cp nodes - and all hashes should match.
The text was updated successfully, but these errors were encountered: