Control: MariaDB servers should have 'Enforce SSL connection' set to 'ENABLED'
Description
This control checks whether MariaDB servers SSL enforcement is enabled. This control is non-compliant if SSL enforcement is disabled.
Usage
Run the control in your terminal:
powerpipe control run azure_compliance.control.mariadb_server_ssl_enabled
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run azure_compliance.control.mariadb_server_ssl_enabled --share
SQL
This control uses a named query:
select s.id as resource, case when ssl_enforcement = 'Enabled' then 'ok' else 'alarm' end as status, case when ssl_enforcement = 'Enabled' then name || ' SSL connection enabled.' else name || ' SSL connection disabled.' end as reason , s.resource_group as resource_group , sub.display_name as subscriptionfrom azure_mariadb_server as s, azure_subscription as subwhere sub.subscription_id = s.subscription_id;