π‘οΈ Azure MySQL Flexible Server TLS Version is not set to TLS 1.2π’
- Contextual name: π‘οΈ Flexible Server TLS Version is not set to TLS 1.2π’
- ID:
/ce/ca/azure/mysql-database/flexible-server-latest-tls-version - Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY
Logicβ
- π§ prod.logic.yamlπ’
Similar Policiesβ
- Cloud Conformity: Configure TLS Version for MySQL Flexible Database Servers
- Internal:
dec-x-aeac09d6
Similar Internal Rulesβ
| Rule | Policies | Flags |
|---|---|---|
| βοΈ dec-x-aeac09d6 | 1 |
Descriptionβ
Descriptionβ
Ensure
tls_versiononMySQL flexible serversis set to use TLS version 1.2 or higher.Rationaleβ
TLS connectivity helps to provide a new layer of security by connecting database server to client applications using Transport Layer Security (TLS). Enforcing TLS 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 MySQL flexible servers.- For each database, under
Settings, clickServer parameters.- In the filter bar, type
tls_version.- Ensure
tls_versionis set toTLSv1.2(or higher).From Azure CLIβ
Ensure the Value of the below command contains
TLSv1.2or higher, and does not contain anything lower thanTLSv1.2:az mysql flexible-server parameter show --resource-group <resourceGroup> --server-name <serverName> --name tls_versionExample output:
... see more
Remediationβ
Remediationβ
From Azure Portalβ
- Login to Azure Portal using https://portal.azure.com.
- Go to
Azure Database for MySQL flexible servers.- For each database, under
Settings, clickServer parameters.- In the filter bar, type
tls_version.- Click on the VALUE dropdown next to
tls_version, and checkTLSv1.2(or higher).- Uncheck anything lower than
TLSv1.2.- Click
Save.From Azure CLIβ
Use the below command to update MySQL flexible servers to use TLS version 1.2:
az mysql flexible-server parameter set --resource-group <resourceGroup> --server-name <serverName> --name tls_version --value TLSv1.2From PowerShellβ
Use the below command to update MySQL flexible servers to use TLS version 1.2:
Update-AzMySqlFlexibleServerConfiguration -ResourceGroupName <resourceGroup> -ServerName <serverName> -Name tls_version -Value TLSv1.2