Financial data encrypted at rest

Description

Encryption for data at rest should be enabled on any data store that has financial data.

Open Policy Agent Rule

{
  "rego": "import data.helpers\n\nR_0002 = ret {\n\thelpers.isDataStore\n\thelpers.isNotEncrypted\n\tret := helpers.hasDataFromCollection(\"Financial Data\")\n}",
  "managed": true,
  "name": "Financial data encrypted at rest",
  "severity": "HIGH",
  "description": "Encryption for data at rest should be enabled on any data store that has financial data",
  "enabled": true,
  "id": "2e443d91-c3c4-a96d-677e-7cb0da4ae64e",
  "refId": "R-0002"
}