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_onSnapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run terraform_azure_compliance.control.appservice_web_app_incoming_client_cert_on --shareSQL
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_linefrom  terraform_resourcewhere  type = 'azurerm_app_service';