Control: IAM workload identity pool provider should be restricted
Description
This control checks whether the IAM workload identity pool provider is restricted.
Usage
Run the control in your terminal:
powerpipe control run terraform_gcp_compliance.control.iam_workload_identity_restricted
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run terraform_gcp_compliance.control.iam_workload_identity_restricted --share
SQL
This control uses a named query:
select address as resource, case when (attributes_std ->> 'attribute_condition') is null or (attributes_std ->> 'attribute_condition') = '' then 'alarm' else 'ok' end status, split_part(address, '.', 2) || case when (attributes_std ->> 'attribute_condition') is null or (attributes_std ->> 'attribute_condition') = '' then ' attribute condition does not exist' else ' attribute condition exists' end || '.' reason , path || ':' || start_linefrom terraform_resourcewhere type = 'google_iam_workload_identity_pool_provider';