turbot/steampipe-mod-azure-compliance

Control: Transparent Data Encryption on SQL databases should be enabled

Description

Transparent data encryption should be enabled to protect data-at-rest and meet compliance requirements.

Usage

Run the control in your terminal:

powerpipe control run azure_compliance.control.sql_server_transparent_data_encryption_enabled

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run azure_compliance.control.sql_server_transparent_data_encryption_enabled --share

SQL

This control uses a named query:

select
db.id as resource,
case
when transparent_data_encryption ->> 'status' = 'Disabled' then 'alarm'
else 'ok'
end as status,
case
when transparent_data_encryption ->> 'status' = 'Disabled' then db.name || ' transparent data encryption off.'
else db.name || ' transparent data encryption on.'
end as reason
, db.resource_group as resource_group
, sub.display_name as subscription
from
azure_sql_database db,
azure_subscription sub
where
sub.subscription_id = db.subscription_id;

Tags