Skip to content

AKS cluster not encrypting temp disks, caches, and data flows

Description

This policy checks to verify if the Azure Kubernetes Service (AKS) cluster encrypts temporary disks, caches, and data flows. It's bad not to have encryption because it can lead to unauthorized data access or data loss. Encrypting these disk resources ensures that all data is unreadable by anyone without the correct encryption key, thereby mitigating risks related to data confidentiality and integrity. Without such a policy in place, sensitive data might be exposed to potential threats, making the system vulnerable to harmful security breaches.

Code Example

go
resource "azurerm_kubernetes_cluster" "example" {
  ...
  default_node_pool {
+   enable_host_encryption = true
    ...
  }
}

Remediation

Terraform

  • Resource: azurerm_kubernetes_cluster
  • Arguments: default_node_pool.enable_host_encryption

Rule Details

FieldValue
IDIAC-0734
SeverityHIGH
IaC Typearm
FrameworksTerraform, TerraformPlan
Checkov IDCKV_AZURE_227

References