π‘οΈ Azure PostgreSQL Single Server Enforce SSL Connection is not set enabledπ’
- Contextual name: π‘οΈ Single Server Enforce SSL Connection is not set enabledπ’
- ID:
/ce/ca/azure/postgresql-database/single-server-enforce-ssl-connection - 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
SSL connectiononPostgreSQLServers.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 server.- For each database, click on
Connection security.- In
SSLsettings, ensureEnforce SSL connectionis set toENABLED.From Azure CLIβ
Ensure the output of the below command returns
Enabled:az postgres server show --resource-group myresourcegroup --name <resourceGroupName> --query sslEnforcementFrom PowerShellβ
Ensure the output of the below command returns Enabled:
Get-AzPostgreSqlServer -ResourceGroupName <ResourceGroupName > -ServerName <ServerName> | Select-Object SslEnforcement
... [see more](description.md)
Remediationβ
Remediationβ
From Azure Portalβ
- Login to Azure Portal using https://portal.azure.com.
- Go to Azure Database for
PostgreSQL server.- For each database, click on
Connection security.- In
SSLsettings, click onENABLEDto enforce SSL connections.- Click
Save.From Azure CLIβ
Use the below command to
enforce ssl connectionforPostgreSQLDatabase:az postgres server update --resource-group <resourceGroupName> --name <serverName> --ssl-enforcement EnabledFrom PowerShellβ
Update-AzPostgreSqlServer -ResourceGroupName <ResourceGroupName > -ServerName <ServerName> -SslEnforcement Enabled