Benchmark: Cosmos DB
Description
This benchmark provides a set of controls that detect Terraform Azure Cosmos DB resources deviating from security best practices.
Usage
Install the mod:
mkdir dashboardscd dashboardspowerpipe mod initpowerpipe mod install github.com/turbot/steampipe-mod-terraform-azure-compliance
Start the Powerpipe server:
steampipe service startpowerpipe server
Open http://localhost:9033 in your browser and select Cosmos DB.
Run this benchmark in your terminal:
powerpipe benchmark run terraform_azure_compliance.benchmark.cosmosdb
Snapshot and share results via Turbot Pipes:
powerpipe benchmark run terraform_azure_compliance.benchmark.cosmosdb --share
Controls
- Cosmos DB accounts should have access key metadata writes disabled
- Cosmos DB accounts should have local authentication disabled
- Cosmos DB accounts should have public network access disabled
- Cosmos DB accounts should have restricted access
- Azure Cosmos DB accounts should use customer-managed keys to encrypt data at rest
- Azure Cosmos DB accounts should have firewall rules
- Cosmos DB should use a virtual network service endpoint