Skip to content

Deterministic PII / FERPA Scrubbing

Creating realistic dev and test databases from production systems usually breaks foreign keys or leaks PII/FERPA attributes in JSONB/text columns. maskkeel solves both deterministically in pure Rust.

  • Keyed HMAC-SHA256 pseudonymization preserving referential integrity across CSV, TSV, JSONL, Parquet, SQLite, and PostgreSQL.
  • Embedded PII redaction: text_redact and JSONB embedded scrubbing.
  • FK-coherent subsetting plus leading-zero and INT↔TEXT join parity.
  • Offline HTML compliance receipts proving what was scanned, masked, and verified.
Terminal window
# 1. Scan read-only production schemas and generate mask.toml
maskkeel scan "$PROD_RO_URL" --schema populi,canvas --init-config mask.toml
# 2. Deterministically scrub into dev database using a salted HMAC key
export MASKKEEL_SALT="team-dev-fixture-secret"
maskkeel mask "$PROD_RO_URL" "$DEV_DB_URL" --config mask.toml --require-salt --schema populi,canvas
# 3. Verify zero unmasked PII/FERPA remains
maskkeel verify "$PROD_RO_URL" "$DEV_DB_URL" --config mask.toml --schema populi,canvas