turbot/azure_compliance

Query: mysql_server_min_tls_1_2

Usage

powerpipe query azure_compliance.query.mysql_server_min_tls_1_2

SQL

select
s.id as resource,
case
when minimal_tls_version = 'TLSEnforcementDisabled' then 'alarm'
when minimal_tls_version = 'TLS1_2' then 'ok'
else 'alarm'
end as status,
case
when minimal_tls_version = 'TLSEnforcementDisabled' then s.name || ' TLS enforcement is disabled.'
when minimal_tls_version = 'TLS1_2' then s.name || ' minimum TLS version set to ' || minimal_tls_version || '.'
else s.name || ' minimum TLS version set to ' || minimal_tls_version || '.'
end as reason
, s.resource_group as resource_group
, sub.display_name as subscription
from
azure_mysql_server as s,
azure_subscription as sub
where
sub.subscription_id = s.subscription_id;

Controls

The query is being used by the following controls: