turbot/terraform_azure_compliance

Query: eventhub_namespace_uses_latest_tls_version

Usage

powerpipe query terraform_azure_compliance.query.eventhub_namespace_uses_latest_tls_version

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std ->> 'minimum_tls_version') is null then 'ok'
when (attributes_std ->> 'minimum_tls_version')::text = '1.2' then 'ok'
else 'alarm'
end status,
split_part(address, '.', 2) || case
when (attributes_std ->> 'minimum_tls_version') is null then ' TLS version not defined by default uses 1.2'
when (attributes_std ->> 'minimum_tls_version')::text = '1.2' then ' use TLS version 1.2'
else ' does not use TLS version 1.2'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type = 'azurerm_eventhub_namespace';

Controls

The query is being used by the following controls: