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.
Key Capabilities
Section titled “Key Capabilities”- Keyed HMAC-SHA256 pseudonymization preserving referential integrity across CSV, TSV, JSONL, Parquet, SQLite, and PostgreSQL.
- Embedded PII redaction:
text_redactand JSONB embedded scrubbing. - FK-coherent subsetting plus leading-zero and
INT↔TEXTjoin parity. - Offline HTML compliance receipts proving what was scanned, masked, and verified.
Workflow
Section titled “Workflow”# 1. Scan read-only production schemas and generate mask.tomlmaskkeel scan "$PROD_RO_URL" --schema populi,canvas --init-config mask.toml
# 2. Deterministically scrub into dev database using a salted HMAC keyexport 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 remainsmaskkeel verify "$PROD_RO_URL" "$DEV_DB_URL" --config mask.toml --schema populi,canvas