pg_redact: Content-aware PII redaction with Jev, enforced in Postgres
Column-level masking in Postgres can't redact PII buried in free text, and regex alone can't tell an SSN from an invoice number. pg_redact generates candidate spans with regex and capitalization rules, asks TypeSafe's Jev model to label each one (name, email, phone, address, id_number, none) with calibrated probabilities, and stores spans above 0.5 confidence as JSONB next to the message.