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

Azure App service HTTP logging is disabled misconfiguration detected in code

Rule Details

Cortex AppSec Rule ID

APPSEC_AZURE_63

Category - Subcategory

Logging - Disabled or missing

Provider

AZURE

Severity

LOW

Framework

ARM, Bicep, Terraform, Terraform Plan

Mapped CSPM/KSPM Rule

84837d91-6b0b-4936-87a6-f6940506a694

Impact

By enabling HTTP logging for your app service, you can collect this information and use it to monitor and troubleshoot your app, as well as identify any potential security issues or threats. This can help to ensure that your app is running smoothly and is secure from potential attacks.

How to Fix

Resource: azurerm_app_service

  • Arguments: logs.http_logs [source,go]


resource "azurerm_app_service" "example" { name = "example-app-service" location = azurerm_resource_group.example.location resource_group_name = azurerm_resource_group.example.name app_service_plan_id = azurerm_app_service_plan.example.id

  • logs {

  • http_logs { retention_in_days = 4 retention_in_mb = 10 } }

app_settings = { "SOME_KEY" = "some-value" }

connection_string { name = "Database" type = "SQLServer" value = "Server=some-server.mydomain.com;Integrated Security=SSPI" } }

Last updated

Was this helpful?