π‘οΈ Azure PostgreSQL Flexible Server require_secure_transport Parameter is not set to ONπ’
- Contextual name: π‘οΈ Flexible Server require_secure_transport Parameter is not set to ONπ’
- ID:
/ce/ca/azure/postgresql-database/flexible-server-require-secure-transport-parameter - Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY
Logicβ
- π§ prod.logic.yamlπ’
Similar Policiesβ
- Cloud Conformity: Enable In-Transit Encryption for PostgreSQL Database Servers
- Internal:
dec-x-995424b7
Similar Internal Rulesβ
| Rule | Policies | Flags |
|---|---|---|
| βοΈ dec-x-995424b7 | 2 |
Descriptionβ
Descriptionβ
Enable
require_secure_transportonPostgreSQL flexible servers.Rationaleβ
SSL connectivityhelps to provide a new layer of security by connecting database server to client applications using Secure Sockets Layer (SSL). Enforcing SSL connections between database server and client applications helps protect against "man in the middle" attacks by encrypting the data stream between the server and application.Auditβ
From Azure Portalβ
- Login to Azure Portal using https://portal.azure.com.
- Go to
Azure Database for PostgreSQL flexible servers.- For each database, under
Settings, clickServer parameters.- In the filter bar, type
require_secure_transport.- Ensure that the
VALUEforrequire_secure_transportis set toON.From Azure CLIβ
Ensure the below command returns a
valueofon:az postgres flexible-server parameter show --resource-group <resourceGroup> --server-name <serverName> --name require_secure_transportFrom PowerShellβ
Ensure the below command returns a
valueofon:... see more
Remediationβ
Remediationβ
From Azure Portalβ
- Login to Azure Portal using https://portal.azure.com.
- Go to
Azure Database for PostgreSQL flexible servers.- For each database, under
Settings, clickServer parameters.- In the filter bar, type
require_secure_transport.- Set the
VALUEforrequire_secure_transporttoON.- Click
Save.From Azure CLIβ
Use the below command to enable
require_secure_transport:az postgres flexible-server parameter set --resource-group <resourceGroup> --server-name <serverName> --name require_secure_transport --value onFrom PowerShellβ
Update-AzPostgreSqlFlexibleServerConfiguration -ResourceGroupName <resourceGroup> -ServerName <serverName> -Name require_secure_transport -Value on