Skip to content

Commit

Permalink
feat: disable kubelet anonymous auth
Browse files Browse the repository at this point in the history
Kubelet anonymousAuth is currently turned on. This allows RBAC escalation and remote code execution possibilities.
It is highly recommended you turn it off by setting '\''spec.kubelet.anonymousAuth'\'' to '\''false'\'' via '\''kops edit cluster'\''

See https://kops.sigs.k8s.io/security/#kubelet-api
  • Loading branch information
peter-svensson committed Aug 15, 2024
1 parent 5fbeeb8 commit 99d6e77
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions k8s.tf
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ resource "kops_cluster" "k8s" {
}

kubelet {
anonymous_auth {
value = false
}
}

metrics_server {
Expand Down

0 comments on commit 99d6e77

Please sign in to comment.