Ensure Azure Batch account uses key vault to encrypt data

Error: Azure Batch account does not use key vault to encrypt data

Bridgecrew Policy ID: BC_AZR_GENERAL_28
Checkov Check ID: CKV_AZURE_76
Severity: LOW

Azure Batch account does not use key vault to encrypt data

Description

Use customer-managed keys to manage the encryption at rest of your Batch account's data. By default, customer data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management.

Fix - Buildtime

Terraform

  • Resource: azurerm_batch_account
  • Argument: key_vault_reference
resource "azurerm_batch_account" "example" {
                            ...
+             key_vault_reference {
                id = "test"
                url = "https://test.com"
              }
            }