turbot/terraform_azure_compliance

Query: apimanagement_service_uses_latest_tls_version

Usage

powerpipe query terraform_azure_compliance.query.apimanagement_service_uses_latest_tls_version

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std -> 'security' ->> 'enable_back_end_ssl30')::boolean then 'alarm'
when (attributes_std -> 'security' ->> 'enable_backend_tls10')::boolean then 'alarm'
when (attributes_std -> 'security' ->> 'enable_frontend_ssl30')::boolean then 'alarm'
when (attributes_std -> 'security' ->> 'enable_frontend_tls10')::boolean then 'alarm'
when (attributes_std -> 'security' ->> 'enable_frontend_tls11')::boolean then 'alarm'
else 'ok'
end status,
split_part(address, '.', 2) || case
when (attributes_std -> 'security' ->> 'enable_back_end_ssl30')::boolean then ' TLS version is less than 1.2'
when (attributes_std -> 'security' ->> 'enable_backend_tls10')::boolean then ' TLS version is less than 1.2'
when (attributes_std -> 'security' ->> 'enable_frontend_ssl30')::boolean then ' TLS version is less than 1.2'
when (attributes_std -> 'security' ->> 'enable_frontend_tls10')::boolean then ' TLS version is less than 1.2'
when (attributes_std -> 'security' ->> 'enable_frontend_tls11')::boolean then ' TLS version is less than 1.2'
else ' TLS version is set to at least 1.2 or higher'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type = 'azurerm_api_management';

Controls

The query is being used by the following controls: