turbot/steampipe-mod-gcp-compliance

Control: Ensure 'Access Approval' is 'Enabled'

Description

GCP Access Approval enables you to require your organizations' explicit approval whenever Google support try to access your projects. You can then select users within your organization who can approve these requests through giving them a security role in IAM. All access requests display which Google Employee requested them in an email or Pub/Sub message that you can choose to Approve. This adds an additional control and logging of who in your organization approved/denied these requests.

Usage

Run the control in your terminal:

powerpipe control run gcp_compliance.control.project_access_approval_settings_enabled

Snapshot and share results via Turbot Pipes:

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

SQL

This control uses a named query:

select
self_link as resource,
case
when access_approval_settings is not null and access_approval_settings -> 'notificationEmails' is not null then 'ok'
else 'alarm'
end as status,
case
when access_approval_settings is not null and access_approval_settings -> 'notificationEmails' is not null
then name || ' access approval is enabled.'
else name || ' access approval is disabled.'
end as reason
, project_id as project
from
gcp_project;

Tags