turbot/steampipe-mod-azure-compliance

Query: keyvault_public_network_access_disabled

Usage

powerpipe query azure_compliance.query.keyvault_public_network_access_disabled

SQL

select
v.id as resource,
case
when jsonb_array_length(v.private_endpoint_connections) > 0
and v.network_acls ->> 'defaultAction' = 'Deny' then 'ok'
when jsonb_array_length(v.private_endpoint_connections) = 0 then 'skip'
else 'alarm'
end as status,
case
when jsonb_array_length(v.private_endpoint_connections) > 0
and v.network_acls ->> 'defaultAction' = 'Deny'
then v.name || ' public network access is disabled with private endpoint.'
when jsonb_array_length(v.private_endpoint_connections) = 0
then v.name || ' has no private endpoints configured.'
else v.name || ' public network access is enabled with private endpoint.'
end as reason
, v.resource_group as resource_group
, sub.display_name as subscription
from
azure_key_vault v,
azure_subscription sub
where
sub.subscription_id = v.subscription_id;

Controls

The query is being used by the following controls: