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

Azure PostgreSQL database server with log checkpoints parameter disabled misconfiguration detected i

Rule Details

Cortex AppSec Rule ID

APPSEC_AZURE_30

Category - Subcategory

Public Exposure - Database Endpoints

Provider

AZURE

Severity

LOW

Framework

ARM, Bicep, Terraform, Terraform Plan

Mapped CSPM/KSPM Rule

52e0ab32-b1ae-4e4e-9245-4bd0f8057895

Impact

Enabling log_checkpoints helps the PostgreSQL Database to log each checkpoint and generate query and error logs. Access to transaction logs is not supported. Query and error logs can be used to identify, troubleshoot, repair configuration errors, and address sub-optimal performance issues. We recommend you set log_checkpoints to On for PostgreSQL Server Databases.

How to Fix

Resource: azurerm_postgresql_configuration

  • Arguments: name + value [source,go]


resource "azurerm_postgresql_configuration" "example" {

  • name = "log_checkpoints"

  • resource_group_name = data.azurerm_resource_group.example.name

  • server_name = azurerm_postgresql_server.example.name

  • value = "off" }


Last updated

Was this helpful?