π‘οΈ 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 TLS version 1.2 or higher.Rationaleβ
TLS connectivity provides an additional layer of security by connecting the database server to client applications using Transport Layer Security (TLS). Enforcing TLS connections between the 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β
- Log in 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 following command contains
TLSv1.2or higher, and does not contain anything lower thanTLSv1.2:az mysql flexible-server parameter show \
--resource-group {{resource-group-name}} \
--server-name {{server-name}} \
... [see more](description.md)
Remediationβ
Remediationβ
From Azure Portalβ
- Log in 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 following command to update MySQL flexible servers to use TLS version 1.2:
az mysql flexible-server parameter set \
--resource-group {{resource-group-name}} \
--server-name {{server-name}} \
--name tls_version \
--value TLSv1.2From PowerShellβ
Use the following command to update MySQL flexible servers to use TLS version 1.2:
Update-AzMySqlFlexibleServerConfiguration `
-ResourceGroupName {{resource-group-name}} `
-ServerName {{server-name}} `
-Name tls_version `
-Value TLSv1.2