For the complete documentation index, see llms.txt. This page is also available as Markdown.
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" ... } ... }

Last updated

Was this helpful?