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_client_certificates_on
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run terraform_azure_compliance.control.appservice_web_app_client_certificates_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 ' client certificate enabled' else ' client certificate disabled' end || '.' reason , path || ':' || start_linefrom terraform_resourcewhere type = 'azurerm_app_service';