turbot/gcp_insights

Query: storage_bucket_public_access_count

Usage

powerpipe query gcp_insights.query.storage_bucket_public_access_count

Steampipe Tables

SQL

select
count(*) as value,
'Publicly Accessible' as label,
case
count(*)
when 0 then 'ok'
else 'alert'
end as "type"
from
gcp_storage_bucket
where
iam_policy ->> 'bindings' like any (array [ '%allAuthenticatedUsers%', '%allUsers%' ]);

Dashboards

The query is used in the dashboards: