turbot/steampipe-mod-terraform-azure-compliance

Control: Ensure WEB app has 'Client Certificates (Incoming client certificates)' set to 'On'

Description

Client certificates allow for the app to request a certificate for incoming requests. Only clients that have a valid certificate will be able to reach the app.

Usage

Run the control in your terminal:

powerpipe control run terraform_azure_compliance.control.appservice_web_app_incoming_client_cert_on

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run terraform_azure_compliance.control.appservice_web_app_incoming_client_cert_on --share

SQL

This control uses a named query:

select
address as resource,
case
when (attributes_std ->> 'client_cert_enabled')::boolean then 'ok'
else 'alarm'
end status,
split_part(address, '.', 2) || case
when (attributes_std ->> 'client_cert_enabled')::boolean then ' incoming client certificates set to on'
else ' incoming client certificates set to off'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type = 'azurerm_app_service';

Tags