Skip to content
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

rke util get-state-file broken by fix for CVE-2023-32191 #3760

Open
vrevelas opened this issue Dec 16, 2024 · 0 comments
Open

rke util get-state-file broken by fix for CVE-2023-32191 #3760

vrevelas opened this issue Dec 16, 2024 · 0 comments

Comments

@vrevelas
Copy link

vrevelas commented Dec 16, 2024

Also see #3668

RKE version:
1.6.2

Docker version: (docker version,docker info preferred)
24.0.7

Operating system and kernel: (cat /etc/os-release, uname -r preferred)
Ubuntu 20.04, kernel version 5.4.0-200-generic

Type/provider of hosts: (VirtualBox/Bare-metal/AWS/GCE/DO)
VMWare

cluster.yml file:
NA

Steps to Reproduce:
Run rke util get-state-file on any RKE cluster newer than RKE version 1.5.10 or 1.4.19

Results:
rke fails to fetch the cluster state, because it tries to fetch the full-cluster-state ConfigMap which is now a Secret.

The fix will need to change

"kubectl --kubeconfig /etc/kubernetes/ssl/kubecfg-kube-node.yaml -n kube-system get configmap full-cluster-state -o json | jq -r .data.\\\"full-cluster-state\\\" | jq -r . > /tmp/configmap.cluster.rkestate",
to fetch the Secret instead of the ConfigMap, get the value of data.full-cluster-state key, and base64 decode it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant