turbot/steampipe-mod-azure-compliance

Control: Web Application should only be accessible over HTTPS

Description

Use of HTTPS ensures server/service authentication and protects data in transit from network layer eavesdropping attacks.

Usage

Run the control in your terminal:

powerpipe control run azure_compliance.control.appservice_web_app_use_https

Snapshot and share results via Turbot Pipes:

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

SQL

This control uses a named query:

select
app.id as resource,
case
when not https_only then 'alarm'
else 'ok'
end as status,
case
when not https_only then name || ' does not redirect all HTTP traffic to HTTPS.'
else name || ' redirects all HTTP traffic to HTTPS.'
end as reason
, app.resource_group as resource_group
, sub.display_name as subscription
from
azure_app_service_web_app as app,
azure_subscription as sub
where
sub.subscription_id = app.subscription_id;

Tags