Ensure Azure PostgreSQL uses the latest version of TLS encryption

Error: Azure PostgreSQL does not use the latest version of TLS encryption

Bridgecrew Policy ID: BC_AZR_NETWORKING_52
Checkov Check ID: CKV_AZURE_147
Severity: LOW

Azure PostgreSQL does not use the latest version of TLS encryption

Description

The Transport Layer Security (TLS) protocol secures transmission of data between servers and web browsers, over the Internet, using standard encryption technology. To follow security best practices and the latest PCI compliance standards, enable the latest version of TLS protocol (i.e. TLS 1.2) for all your PostgreSQL servers.

Fix - Runtime

Fix - Buildtime

Terraform

  • Resource: azurerm_postgresql_server
  • Argument: ssl_minimal_tls_version_enforced
resource "azurerm_postgresql_server" "pass" {
  name = "fail"

  public_network_access_enabled    = true
  ssl_enforcement_enabled          = true
  ssl_minimal_tls_version_enforced = "TLS1_2"
}