← Back to the collection

Security / Article

pg_redact: Content-aware PII redaction with Jev, enforced in Postgres

A Neon blog post introducing pg_redact, a demo support inbox that uses the Jev classification model to label PII candidate spans and stores them as JSONB beside each message body. It defines two SQL functions, pii_sensitivity() and redact(), which rank PII types and mask spans above a viewer role's clearance.

Read the original

Why it’s in the collection

Provides a working pattern for enforcing content-level redaction inside PostgreSQL with SQL functions and role clearances rather than masking only in application code.

THE CONVERSATION

Found on Hacker News 1

Links lead to the original story or comment where this resource appeared. Titles identify the surrounding discussion.