turbot/steampipe-mod-gcp-compliance

Control: Ensure external backend service has IAP enabled

Description

This control ensures that external backend service has IAP enabled.

Usage

Run the control in your terminal:

powerpipe control run gcp_compliance.control.compute_external_backend_service_iap_enabled

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run gcp_compliance.control.compute_external_backend_service_iap_enabled --share

SQL

This control uses a named query:

select
self_link as resource,
case
when not load_balancing_scheme like 'EXTERNAL%' then 'skip'
when (iap -> 'enabled')::bool then 'ok'
else 'alarm'
end as status,
case
when not load_balancing_scheme like 'EXTERNAL%' then name || ' is external backend service.'
when (iap -> 'enabled')::bool then name || ' IAP enabled.'
else name || ' IAP disabled.'
end as reason
, location as location, project as project
from
gcp_compute_backend_service;

Tags