Ensure that the Kubernetes Dashboard (Web UI) is disabled for your Google Kubernetes Engine (GKE) clusters in order to enhance cluster security and prevent potential attack vectors. The Kubernetes Dashboard is a web-based user interface that provides a visual representation and management capabilities for Kubernetes clusters. It allows users to monitor and interact with the resources running within the cluster, such as pods, deployments, and services, through a graphical interface rather than using command-line tools.
It is generally recommended to disable the Kubernetes Dashboard when running on GKE clusters due to its security vulnerabilities and the potential for privileged escalation if compromised. The Kubernetes Dashboard runs with a highly privileged Kubernetes service account, granting it access to sensitive cluster resources. This makes it a prime target for attackers seeking unauthorized control over the cluster. Additionally, the Google Cloud Platform (GCP) Console provides all the necessary functionality of the Kubernetes Dashboard and leverages Cloud IAM to restrict user access to sensitive cluster settings and controls. Therefore, the best practice is to disable the Kubernetes Dashboard (Web UI) at the cluster level and use the GCP Console instead.
Audit
To determine the Kubernetes Dashboard status for your Google Kubernetes Engine (GKE) clusters, perform the following operations:
Getting the Kubernetes Dashboard operational status for your GKE clusters using Google Cloud Platform (GCP) Console is not currently supported.Remediation / Resolution
To disable the Kubernetes Dashboard (Web UI) for your Google Kubernetes Engine (GKE) clusters, perform the following operations:
Disabling Kubernetes Dashboard for your GKE clusters using Google Cloud Platform (GCP) Console is not currently supported.References
- Google Cloud Platform (GCP) Documentation
- GKE security overview
- Harden your cluster's security
- GCP Command Line Interface (CLI) Documentation
- gcloud projects list
- gcloud container clusters list
- gcloud container clusters describe
- gcloud container clusters update