turbot/azure_compliance

Control: 4.3.2 Ensure 'Enforce SSL connection' is set to 'ENABLED' for MySQL Database Server

Description

It is recommended to 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 attacks by encrypting the data stream between the server and application.

Remediation

From Console

  1. Login to Azure console and navigate to PostgreSQL Servers.
  2. For each database, go to Settings section from left pane.
  3. Click on Connection security and go to SSL settings.
  4. For Enforce SSL connection, click on ENABLED.

From Command Line

Enable enforce ssl connection for PostgreSQL Database

az mysql server show --resource-group myresourcegroup --name <resourceGroupName> --query sslEnforcement

Usage

steampipe check azure_compliance.control.cis_v130_4_3_2

SQL

This control uses a named query:

mysql_ssl_enabled

Tags