Control: App Service Environment should enable internal encryption
Description
Setting InternalEncryption to true encrypts the pagefile, worker disks, and internal network traffic between the front ends and workers in an App Service Environment.
Usage
Run the control in your terminal:
powerpipe control run azure_compliance.control.app_service_environment_internal_encryption_enabled
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run azure_compliance.control.app_service_environment_internal_encryption_enabled --share
SQL
This control uses a named query:
with app_service_environment as ( select distinct id as id from azure_app_service_environment, jsonb_array_elements(cluster_settings ) as s where s ->> 'name' = 'InternalEncryption' and s ->> 'value' = 'true')select a.id as resource, case when b.id is not null then 'ok' else 'alarm' end as status, case when b.id is not null then a.title || ' internal encryption enabled.' else a.name || ' internal encryption disabled.' end as reason , a.resource_group as resource_group , sub.display_name as subscriptionfrom azure_app_service_environment as a left join app_service_environment as b on a.id = b.id, azure_subscription as subwhere sub.subscription_id = a.subscription_id;