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.
Installation, configuration, and every setting, in the Phileas user guide.
Read the Phileas docsFile a bug, request a feature, or ask a question in the public issue tracker. The engineers who wrote the code answer there.
Open the issue trackerFor a service-level agreement, an evaluation on your own data, or hands-on engineering, work with us directly.
Commercial support and consultingNew to Phileas? See what it does.
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.
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.