Control: 4.4.1 Ensure 'Enforce SSL connection' is set to 'Enabled' for Standard MySQL Database Server
Description
Enable SSL connection
on MYSQL
Servers.
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.
Remediation
From Azure Portal
- Login to Azure Portal using https://portal.azure.com.
- Go to
Azure Database for MySQL servers
. - For each database, click on
Connection security
. - In
SSL
settings, click onENABLED
toEnforce SSL connections
.
From Azure CLI
Use the below command to set MYSQL Databases to Enforce SSL connection.
az mysql server update --resource-group <resourceGroupName> --name <serverName> --ssl-enforcement Enabled
Default Value
Azure Database for MySQL when provisioned through the Azure portal or CLI will require SSL connections by default.
Usage
Run the control in your terminal:
powerpipe control run azure_compliance.control.cis_v200_4_4_1
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run azure_compliance.control.cis_v200_4_4_1 --share
SQL
This control uses a named query:
mysql_ssl_enabled