More Info:

Ensure that “log_checkpoints” server parameter is enabled for all PostgreSQL flexible database servers available within your Microsoft Azure cloud account. The “log_checkpoints” parameter allows checkpoints and restart points to be logged in the Azure PostgreSQL server log.

Risk Level

Medium

Address

Security

Compliance Standards

CBP

Triage and Remediation

Remediation

To enable the log_checkpoints parameter for PostgreSQL Flexible Servers in Azure, you can follow the below steps:

  1. Open the Azure portal and go to your PostgreSQL Flexible Server resource.

  2. In the left-hand menu, click on the “Configuration” option.

  3. In the “Configuration” blade, click on the “Edit” button located at the top.

  4. In the “Edit configuration” blade, search for the log_checkpoints parameter in the “Parameters” section.

  5. If the parameter is not present, click on the “Add parameter” button and enter the following details:

    • Name: log_checkpoints
    • Value: on
  6. If the parameter is already present, click on the parameter and change its value to “on”.

  7. Click on the “Save” button to save the changes.

  8. Once the changes are saved, the PostgreSQL Flexible Server will be restarted to apply the new configuration.

  9. After the server is restarted, the log_checkpoints parameter will be enabled and the server will start logging checkpoint activities.

This will remediate the misconfiguration of not having the log_checkpoints parameter enabled for PostgreSQL Flexible Servers in Azure.