Cortex CloudApplication Security
Operating system disks are not ephemeral disks misconfiguration detected in code
Rule Details
Cortex AppSec Rule ID
APPSEC_AZURE_226
Category - Subcategory
Kubernetes - Resource Management
Provider
AZURE
Severity
MEDIUM
Framework
ARM, Bicep, Terraform, Terraform Plan
Impact
This rule checks if ephemeral disks are being used for Operating System (OS) disks in Azure. The use of ephemeral disks for OS disks has several benefits including improved read/write speeds and reduced costs, as they are directly attached to the virtual machine and are not billed separately. Not using ephemeral disks could lead to slower application performance and increased costs.
How to Fix
Resource: azurerm_kubernetes_cluster
Arguments: default_node_pool.os_disk_type
To fix the issue, you should use ephemeral disks for OS disks in your Kubernetes configuration. This would mean using the azure provider in your Terraform plan to ensure that you are specifying the OS disk to be ephemeral. [source,go]
resource "azurerm_kubernetes_cluster" "example" { ... default_node_pool { ... os_disk_type = "Ephemeral" ... } ... }
PreviousAzure App Service Not Always On misconfiguration detected in code
NextNon-Critical System Pods Run on System Nodes misconfiguration detected in code
Last updated
Was this helpful?
