Skip to content

PostgreSQL server does not enable infrastructure encryption

Description

Enable infrastructure encryption for Azure Database for PostgreSQL servers to have higher level of assurance that the data is secure. When infrastructure encryption is enabled, the data at rest is encrypted twice using FIPS 140-2 compliant Microsoft managed keys.

Code Example

go
resource "azurerm_postgresql_server" "example" {
              ...
+             infrastructure_encryption_enabled = true
            }

Remediation

Terraform

  • Resource: azurerm_postgresql_server
  • Arguments: infrastructure_encryption_enabled

Rule Details

FieldValue
IDIAC-0637
SeverityLOW
IaC Typearm
FrameworksTerraform, TerraformPlan
Checkov IDCKV_AZURE_130

References