Control: Database home encryption should be enabled
Description
Ensure database homes are encrypted at rest to protect sensitive data.
Usage
Run the control in your terminal:
powerpipe control run terraform_oci_compliance.control.database_db_home_encryption_enabledSnapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run terraform_oci_compliance.control.database_db_home_encryption_enabled --shareSQL
This control uses a named query:
select  address as resource,  case    when coalesce((attributes_std ->> 'kms_key_id'), '') = '' then 'alarm'    else 'ok'  end as status,  split_part(address, '.', 2) || case    when coalesce((attributes_std ->> 'kms_key_id'), '') = '' then ' encryption disabled'    else ' encryption enabled'  end || '.' reason    , path || ':' || start_linefrom  terraform_resourcewhere  type = 'oci_database_db_home';