turbot/steampipe-mod-terraform-azure-compliance

Control: Function apps should have 'Client Certificates (Incoming client certificates)' enabled

Description

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

Usage

Run the control in your terminal:

powerpipe control run terraform_azure_compliance.control.appservice_function_app_client_certificates_on

Snapshot and share results via Turbot Pipes:

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

SQL

This control uses a named query:

select
address as resource,
case
when (attributes_std -> 'client_cert_mode') is not null then 'ok'
else 'alarm'
end status,
split_part(address, '.', 2) || case
when (attributes_std -> 'client_cert_mode') is not null then ' cilient certificate enabled'
else ' client certificate disabled'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type = 'azurerm_function_app';

Tags