Benchmark: KMS
Description
This benchmark provides a set of controls that detect Terraform GCP KMS resources deviating from security best practices.
Usage
Install the mod:
mkdir dashboardscd dashboardspowerpipe mod initpowerpipe mod install github.com/turbot/steampipe-mod-terraform-gcp-compliance
Start the Powerpipe server:
steampipe service startpowerpipe server
Open http://localhost:9033 in your browser and select KMS.
Run this benchmark in your terminal:
powerpipe benchmark run terraform_gcp_compliance.benchmark.kms
Snapshot and share results via Turbot Pipes:
powerpipe benchmark run terraform_gcp_compliance.benchmark.kms --share
Controls
- KMS keys should not be publicly accessible
- KMS Crypto keys should have prevent destroy enabled
- Ensure KMS encryption keys are rotated within a period of 90 days
- Check that CMEK rotation policy is in place and is sufficiently short