bhouse-nexthop opened a new issue, #14768: URL: https://github.com/apache/cloudstack/issues/14768
### problem CKS nodes join their cluster in an unsafe way: | what | today | |---|---| | bootstrap token | derived from the cluster UUID (`KubernetesClusterUtil.generateClusterToken`), which any user who can list the cluster can see, and created with `--token-ttl 0`, so it never expires | | CA check | every join uses `--discovery-token-unsafe-skip-ca-verification` | | HA certificate key | also derived from the cluster UUID; with the token it lets anyone who reaches the API server download the control plane certificates while `kubeadm-certs` exists | So anyone who knows the cluster UUID and can reach the API server can join a node, and a node can be pointed at a fake API server. The token cannot simply be deleted on an existing cluster: every scale-up and add-node recomputes the same UUID token and writes it into the new node's userdata. ### versions 4.22 and main. ### steps to reproduce 1. Create a CKS cluster. 2. On a control node: `kubeadm token list` shows a `<forever>` token, and the node userdata has `--discovery-token-unsafe-skip-ca-verification`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
