π 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
- Located in: π Azure PostgreSQL Database
Flagsβ
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
Our Metadataβ
- Policy Type:
COMPLIANCE_POLICY
- Policy Category:
SECURITY
Similar Policiesβ
- Cloud Conformity
- Internal
dec-x-995424b7
Similar Internal Rulesβ
Rule | Policies | Flags |
---|---|---|
βοΈ dec-x-995424b7 | 2 |
Logicβ
- π§ prod.logic.yaml π’
Descriptionβ
Descriptionβ
Enable
require_secure_transport
onPostgreSQL flexible servers
.Rationaleβ
SSL connectivity
helps 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
VALUE
forrequire_secure_transport
is set toON
.From Azure CLIβ
Ensure the below command returns a
value
ofon
:az postgres flexible-server parameter show --resource-group <resourceGroup> --server-name <serverName> --name require_secure_transport
From PowerShellβ
Ensure the below command returns a
value
ofon
:... 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
VALUE
forrequire_secure_transport
toON
.- 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 on
From PowerShellβ
Update-AzPostgreSqlFlexibleServerConfiguration -ResourceGroupName <resourceGroup> -ServerName <serverName> -Name require_secure_transport -Value on