turbot/steampipe-mod-terraform-azure-compliance

Control: Service Fabric clusters should only use Azure Active Directory for client authentication

Description

Audit usage of client authentication only via Azure Active Directory in Service Fabric.

Usage

Run the control in your terminal:

powerpipe control run terraform_azure_compliance.control.servicefabric_cluster_active_directory_authentication_enabled

Snapshot and share results via Turbot Pipes:

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

SQL

This control uses a named query:

select
address as resource,
case
when (attributes_std -> 'azure_active_directory') is null then 'alarm'
else 'ok'
end status,
split_part(address, '.', 2) || case
when (attributes_std -> 'azure_active_directory') is null then ' does not use Azure Active Directory for client authentication'
else ' uses Azure Active Directory for client authentication'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type = 'azurerm_service_fabric_cluster';

Tags