For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex CloudApplication Security

Azure AKS cluster network policies are not enforced misconfiguration detected in code

Rule Details

Cortex AppSec Rule ID

APPSEC_AZURE_7

Category - Subcategory

Kubernetes - Network Policies

Provider

AZURE

Severity

LOW

Framework

ARM, Bicep, Terraform, Terraform Plan

Impact

Network policy options in AKS include two ways to implement a network policy. You can choose between Azure Network Policies or Calico Network Policies. In both cases, the underlying controlling layer is based on Linux IPTables to enforce the specified policies. Policies are translated into sets of allowed and disallowed IP pairs. These pairs are then programmed as IPTable rules. The principle of least privilege should be applied to how traffic can flow between pods in an AKS cluster. We recommend you select a preferred network policy framework and enforce granular usage-based policies on the architecture and business logic of you applications.

How to Fix

Resource*: azurerm_kubernetes_cluster Argument: network_policy [source,go]

resource "azurerm_kubernetes_cluster" "example" { ... network_profile {

  • network_policy="azure" } ... }


Last updated

Was this helpful?