Control: Redis instances encryption in transit should be enabled
Description
Ensure Redis instance encryption in transit is enabled. This control is non-compliant if encryption in transit is disabled for Redis instances.
Usage
Run the control in your terminal:
powerpipe control run terraform_gcp_compliance.control.redis_instance_encryption_in_transit_enabled
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run terraform_gcp_compliance.control.redis_instance_encryption_in_transit_enabled --share
SQL
This control uses a named query:
select address as resource, case when (attributes_std ->> 'transit_encryption_mode') = 'SERVER_AUTHENTICATION' then 'ok' else 'alarm' end as status, split_part(address, '.', 2) || case when (attributes_std ->> 'transit_encryption_mode') = 'SERVER_AUTHENTICATION' then ' encryption in transit enabled' else ' encryption in transit disabled' end || '.' reason , path || ':' || start_linefrom terraform_resourcewhere type = 'google_redis_instance';