Skip to content

Add MaskFlow PII masking guardrail - #1247

Open
sodanisomya wants to merge 1 commit into
BerriAI:mainfrom
sodanisomya:docs/add-maskflow-guardrail
Open

sodanisomya wants to merge 1 commit into
BerriAI:mainfrom
sodanisomya:docs/add-maskflow-guardrail

Conversation

@sodanisomya

Copy link
Copy Markdown

Adds a docs page for MaskFlow to the guardrails section, plus the sidebar entry after pii_masking_v2.

maskflow-litellm is a pip-installable custom guardrail (maskflow_litellm.MaskflowGuardrail) that masks PII before a request reaches the model provider and restores it in the response, with streaming and tool calls handled. It runs the MaskFlow detection engine in-process, so there is no separate service and no outbound call to a detection API. Coverage includes the Indian identifiers that most PII tooling misses (Aadhaar, PAN, GSTIN, UPI VPA, IFSC, ABHA, Indian names and addresses) alongside the usual email, phone, and card numbers. MIT licensed.

The page follows the structure of the other guardrail pages (Quick Start with numbered steps, tabbed request examples, a supported-parameters table, supported modes, further reading). npm run build and npm run lint:writing both pass locally.

Source: https://github.com/maskflow/maskflow/tree/main/packages/maskflow-litellm

@vercel

vercel Bot commented Sep 6, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
litellm Ready Ready Preview Oct 9, 2026 6:21am UTC

Request Review

maskflow-litellm is a pip-installable custom guardrail that masks PII (Indian identifiers included: Aadhaar, PAN, GSTIN, UPI, IFSC, ABHA, names, addresses) before a request reaches the provider and restores it in the response, streaming and tool calls included. MIT, runs in-process, no external detection API.

Adds docs/proxy/guardrails/maskflow.md and the sidebar entry after pii_masking_v2. npm run build and npm run lint:writing both pass.
@sodanisomya

Copy link
Copy Markdown
Author

Hi! Friendly ping on this one. I rebased it onto the latest main; the only conflict was the sidebar, which I re-added after pii_masking_v2. The PR adds one guardrail page (docs/proxy/guardrails/maskflow.md) plus that sidebar line. maskflow-litellm is on PyPI and runs in-process as a custom guardrail. Happy to adjust the page, or add a sidebar icon in the newer customProps format, if you'd prefer. Thanks!

This branch was successfully deployed

1 active deployment
Preview — 88592c0e Deployed Oct 9, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant