Control: Ensure that Compute instances have Confidential Computing enabled
Description
Google Cloud encrypts data at-rest and in-transit, but customer data must be decrypted for processing. Confidential Computing is a breakthrough technology which encrypts data in-use while it is being processed. Confidential Computing environments keep data encrypted in memory and elsewhere outside the central processing unit (CPU).
Usage
Run the control in your terminal:
powerpipe control run terraform_gcp_compliance.control.compute_instance_confidential_computing_enabled
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run terraform_gcp_compliance.control.compute_instance_confidential_computing_enabled --share
SQL
This control uses a named query:
select address as resource, case when (attributes_std -> 'confidential_instance_config') is null then 'alarm' when (attributes_std -> 'confidential_instance_config' -> 'enable_confidential_compute')::bool then 'ok' else 'alarm' end status, split_part(address, '.', 2) || case when (attributes_std -> 'confidential_instance_config') is null then ' confidential computing disabled' when (attributes_std -> 'confidential_instance_config' -> 'enable_confidential_compute')::bool then ' confidential computing enabled' else ' confidential computing disabled' end || '.' reason , path || ':' || start_linefrom terraform_resourcewhere type = 'google_compute_instance';