이 페이지는 아직 한국어로 제공되지 않습니다. 번역 작업 중입니다.
현재 번역 프로젝트에 대한 질문이나 피드백이 있으신 경우
언제든지 연락주시기 바랍니다. Id: terraform-azure-dashboard-is-enabled
Provider: Azure
Platform: Terraform
Severity: Low
Category: Insecure Configurations
Learn More Description This check verifies if the Kubernetes Dashboard add-on is enabled in the cluster configuration by examining the addon_profile block and specifically whether kube_dashboard { enabled = true } has been set. Enabling the Kubernetes Dashboard can expose sensitive cluster information and administrative controls via a web interface, increasing the risk of unauthorized access if not properly secured or restricted. For better security, the dashboard should be disabled by setting enabled = false:
addon_profile {
kube_dashboard {
enabled = false
}
}
This reduces the potential attack surface and protects against possible privilege escalation or data exposure vulnerabilities.
Compliant Code Examples resource "azurerm_kubernetes_cluster" "negative1" {
name = "example-aks1"
location = azurerm_resource_group . example . location
resource_group_name = azurerm_resource_group . example . name
dns_prefix = "exampleaks1"
default_node_pool {
name = "default"
node_count = 1
vm_size = "Standard_D2_v2"
}
identity {
type = "SystemAssigned"
}
tags = {
Environment = "Production"
}
}
resource "azurerm_kubernetes_cluster" "negative2" {
name = "example-aks1"
location = azurerm_resource_group . example . location
resource_group_name = azurerm_resource_group . example . name
dns_prefix = "exampleaks1"
default_node_pool {
name = "default"
node_count = 1
vm_size = "Standard_D2_v2"
}
identity {
type = "SystemAssigned"
}
tags = {
Environment = "Production"
}
addon_profile {
kube_dashboard {
enabled = false
}
}
}
Non-Compliant Code Examples resource "azurerm_kubernetes_cluster" "positive1" {
name = "example-aks1"
location = azurerm_resource_group . example . location
resource_group_name = azurerm_resource_group . example . name
dns_prefix = "exampleaks1"
default_node_pool {
name = "default"
node_count = 1
vm_size = "Standard_D2_v2"
}
identity {
type = "SystemAssigned"
}
tags = {
Environment = "Production"
}
addon_profile {
kube_dashboard {
enabled = true
}
}
}