Skip to content

Two strategies on the same entity. Demonstrates that strategies arrays

Source: 06-multi-strategy-on-one-entity.phisql

PhiSQL

-- Two strategies on the same entity. Demonstrates that strategies arrays
-- are append-only across multiple REDACT statements for the same entity.

POLICY two_strategies_one_entity;

REDACT EMAIL_ADDRESS WITH HASH_SHA256;
REDACT EMAIL_ADDRESS WITH MASK;

Compiles to

{
  "identifiers": {
    "emailAddress": {
      "emailAddressFilterStrategies": [
        { "strategy": "HASH_SHA256_REPLACE" },
        { "strategy": "MASK" }
      ]
    }
  }
}