π 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
- Located in: π Azure MySQL 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-aeac09d6
Similar Internal Rulesβ
Rule | Policies | Flags |
---|---|---|
βοΈ dec-x-aeac09d6 | 1 |
Logicβ
- π§ prod.logic.yaml π’
Descriptionβ
Descriptionβ
Ensure
tls_version
onMySQL flexible servers
is 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_version
is set toTLSv1.2
(or higher).From Azure CLIβ
Ensure the Value of the below command contains
TLSv1.2
or higher, and does not contain anything lower thanTLSv1.2
:az mysql flexible-server parameter show --resource-group <resourceGroup> --server-name <serverName> --name tls_version
Example 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.2
From 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