turbot/azure_compliance

Query: appservice_function_app_cors_no_star

Usage

powerpipe query azure_compliance.query.appservice_function_app_cors_no_star

SQL

select
b.id as resource,
case
when configuration -> 'properties' -> 'cors' -> 'allowedOrigins' @> '["*"]' then 'alarm'
else 'ok'
end as status,
case
when configuration -> 'properties' -> 'cors' -> 'allowedOrigins' @> '["*"]'
then b.name || ' CORS allow all domains to access the application.'
else b.name || ' CORS does not all domains to access the application.'
end as reason
, b.resource_group as resource_group
, sub.display_name as subscription
from
azure_app_service_function_app as b,
azure_subscription as sub
where
sub.subscription_id = b.subscription_id;

Controls

The query is being used by the following controls: