Data stores with personal & privacy data are logging

Description

Data stores with personal & privacy data should have logging enabled to record security events.

Open Policy Agent Rule

{
  "rego": "import data.helpers\n\nR_0009 = ret {\n\thelpers.isDataStore\n\thelpers.isLoggingDisabled\n\tret := helpers.hasDataFromCollection(\"Personal Data \")\n}",
  "managed": true,
  "name": "Data stores with personal & privacy data are logging",
  "severity": "MEDIUM",
  "description": "Data stores with personal & privacy data should have logging enabled to record security events",
  "enabled": true,
  "id": "c8083dd5-a329-a100-20d2-cf66c42e08a9",
  "refId": "R-0009"
}