turbot/gcp_compliance

Query: storage_bucket_not_publicly_accessible

Usage

powerpipe query gcp_compliance.query.storage_bucket_not_publicly_accessible

Steampipe Tables

SQL

select
self_link resource,
case
when iam_policy ->> 'bindings' like any (array ['%allAuthenticatedUsers%','%allUsers%']) then 'alarm'
else 'ok'
end as status,
case
when iam_policy ->> 'bindings' like any (array ['%allAuthenticatedUsers%','%allUsers%'])
then title || ' publicly accessible.'
else title || ' not publicly accessible.'
end as reason
, location as location, project as project
from
gcp_storage_bucket;

Controls

The query is being used by the following controls: