Authoring Redaction Policies with PhiSQL
PhiSQL is a readable query language that compiles to a Phileas redaction policy. An introduction to the syntax and how it maps to the policy JSON.
Get help with Phileas, the PII redaction library: redaction policies, Kafka, Spark, Trino, and logging guides, the docs, and the issue tracker.
PhiSQL is a readable query language that compiles to a Phileas redaction policy. An introduction to the syntax and how it maps to the policy JSON.
Redact CSV files and Excel workbooks by column with PhiSQL: replace a column whole, leave one alone, or scan one with chosen filters, and set how a CSV file is read.
A how-to for redacting national and financial IDs (SIN, CPF, DNI, IBAN, BIC, and more) with checksum-validated patterns that reject look-alikes.
Redact PII and PHI in Apache Kafka with the philter-kafka-connect Single Message Transform, on source, sink, or MirrorMaker connectors.
How to redact PII from Java logs before they are written, with a Phileas-backed log4j2 rewrite policy and a logback converter, recursion guard included.
Redact PII column by column in Apache Spark and Databricks with a Phileas UDF: a verified PySpark example, plus the performance tradeoffs to plan for.
How to install the open source Phileas connector for Trino, configure a redaction policy, and mask PII column by column in SQL, with a runnable demo.
What a redaction policy is, how the JSON schema is structured, and how to use it to control exactly which PII is detected and how each type is redacted.
Run PII detection entirely inside your own boundary: serve the models with PhEye, embed Phileas, or run local ONNX inference, with no data egress.
When two Phileas filters claim the same text with different types, span disambiguation picks one. When it helps, what it costs, and how to run it.