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

Azure Event Grid Topic Local Authentication Enabled misconfiguration detected in code

Azure Event Grid Topic Local Authentication Enabled misconfiguration detected in code

Rule Details

Cortex AppSec Rule ID

APPSEC_AZURE_192

Category - Subcategory

IAM - Authentication Policies

Provider

AZURE

Severity

MEDIUM

Framework

ARM, Bicep, Terraform, Terraform Plan

Impact

Azure Event Grid is a managed event routing service based on the publish-subscribe protocol. Event publishers send events to a topic, which then routes events to all subscribed event handlers. When building systems that react to the changes happening in Azure resources, Azure Event Grid can help to streamline and simplify the design and scalability of such systems.

However, for security purposes, it is recommended to avoid using local authentication mechanisms. These mechanisms can be less secure than managed or cloud-based mechanisms, potentially exposing the system to threats.

This rule ensures that local authentication for Azure Event Grid Topics is disabled.

How to Fix

Resource:

  • azurerm_eventgrid_topic

Arguments:

  • local_auth_enabled [source,go]


resource "azurerm_eventgrid_topic" "example" { name = "example-topic" location = azurerm_resource_group.example.location resource_group_name = azurerm_resource_group.example.name

... other configurations ...

  • local_auth_enabled = false

... other configurations ...

}

Last updated

Was this helpful?