Project: KICS (Provisioning / Security & Compliance)
File: 90120147-f2e7-4fda-bb21-6fa9109afd63.md

title: MySQL Server SSL Enforcement Disabled hide: toc: true navigation: true <style> .highlight .hll { background-color: #ff171742; } .md-content { max-width: 1100px; margin: 0 auto; } </style> Query id: 90120147-f2e7-4fda-bb21-6fa9109afd63 Query name: MySQL Server SSL Enforcement Disabled Platform: AzureResourceManager Severity: <span style="color:#ff7213">Medium</span> Category: Networking and Firewall URL: 'Microsoft.DBforMySQL/servers' should enforce SSL<br> ```json title="Positive test num. 1 - json file" hl_lines="16" { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "2.0.0.0", "apiProfile": "2019-03-01-hybrid", "parameters": {}, "variables": {}, "functions": [], "resources": [ { "name": "server", "type": "Microsoft.DBforMySQL/servers", "apiVersion": "2017-12-01", "identity": { "type": "SystemAssigned" }, "properties": { "version": "5.6", "createMode": "GeoRestore", "sourceServerId": "id" }, "location": "location", "tags": {}, "resources": [] } ], "outputs": {} } ``` ```json title="Positive test num. 2 - json file" hl_lines="18" { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "2.0.0.0", "apiProfile": "2019-03-01-hybrid", "parameters": {}, "variables": {}, "functions": [], "resources": [ { "name": "server", "type": "Microsoft.DBforMySQL/servers", "apiVersion": "2017-12-01", "identity": { "type": "SystemAssigned" }, "properties": { "version": "5.6", "sslEnforcement": "Disabled", "createMode": "GeoRestore", "sourceServerId": "id" }, "location": "location", "tags": {}, "resources": [] } ], "outputs": {} } ``` ```json title="Positive test num. 3 - json file" hl_lines="18" { "properties": { "template": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "2.0.0.0", "apiProfile": "2019-03-01-hybrid", "parameters": {}, "variables": {}, "functions": [], "resources": [ { "name": "server", "type": "Microsoft.DBforMySQL/servers", "apiVersion": "2017-12-01", "identity": { "type": "SystemAssigned" }, "properties": { "version": "5.6", "createMode": "GeoRestore", "sourceServerId": "id" }, "location": "location", "tags": {}, "resources": [] } ], "outputs": {} }, "parameters": {} }, "kind": "template", "type": "Microsoft.Blueprint/blueprints/artifacts", "name": "myTemplate" } ``` <details><summary>Positive test num. 4 - json file</summary> ```json hl_lines="20" { "properties": { "template": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "2.0.0.0", "apiProfile": "2019-03-01-hybrid", "parameters": {}, "variables": {}, "functions": [], "resources": [ { "name": "server", "type": "Microsoft.DBforMySQL/servers", "apiVersion": "2017-12-01", "identity": { "type": "SystemAssigned" }, "properties": { "version": "5.6", "sslEnforcement": "Disabled", "createMode": "GeoRestore", "sourceServerId": "id" }, "location": "location", "tags": {}, "resources": [] } ], "outputs": {} }, "parameters": {} }, "kind": "template", "type": "Microsoft.Blueprint/blueprints/artifacts", "name": "myTemplate" } ``` </details> ```json title="Negative test num. 1 - json file" { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "2.0.0.0", "apiProfile": "2019-03-01-hybrid", "parameters": {}, "variables": {}, "functions": [], "resources": [ { "name": "server", "type": "Microsoft.DBforMySQL/servers", "apiVersion": "2017-12-01", "identity": { "type": "SystemAssigned" }, "properties": { "version": "5.6", "sslEnforcement": "Enabled", "createMode": "GeoRestore", "sourceServerId": "id" }, "location": "location", "tags": {}, "resources": [] } ], "outputs": {} } ``` ```json title="Negative test num. 2 - json file" { "properties": { "template": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "2.0.0.0", "apiProfile": "2019-03-01-hybrid", "parameters": {}, "variables": {}, "functions": [], "resources": [ { "name": "server", "type": "Microsoft.DBforMySQL/servers", "apiVersion": "2017-12-01", "identity": { "type": "SystemAssigned" }, "properties": { "version": "5.6", "sslEnforcement": "Enabled", "createMode": "GeoRestore", "sourceServerId": "id" }, "location": "location", "tags": {}, "resources": [] } ], "outputs": {} }, "parameters": {} }, "kind": "template", "type": "Microsoft.Blueprint/blueprints/artifacts", "name": "myTemplate" } ```