Control: SQL servers should use the latest TLS version 1.2
Description
SQL servers currently allows user to set TLS version values as Disabled, 1.0, 1.1 and 1.2. It is recommended to use the latest TLS version 1.2.
Usage
Run the control in your terminal:
powerpipe control run terraform_azure_compliance.control.sql_server_uses_latest_tls_version
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run terraform_azure_compliance.control.sql_server_uses_latest_tls_version --share
SQL
This control uses a named query:
select address as resource, case when (attributes_std ->> 'minimum_tls_version') is null then 'ok' when (attributes_std ->> 'minimum_tls_version')::text = '1.2' then 'ok' else 'alarm' end status, split_part(address, '.', 2) || case when (attributes_std ->> 'minimum_tls_version') is null then ' TLS version not defined by default uses 1.2' when (attributes_std ->> 'minimum_tls_version')::text = '1.2' then ' TLS version 1.2' else ' TLS version not 1.2' end || '.' reason , path || ':' || start_linefrom terraform_resourcewhere type = 'azurerm_mssql_server';