Repository navigation
Add MaskFlow PII masking guardrail - #1247
Open
sodanisomya wants to merge 1 commit into
Open
sodanisomya wants to merge 1 commit into
sodanisomya wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
force-pushed
the
docs/add-maskflow-guardrail
branch
from
October 9, 2026 06:17
c123437 to
88592c0
Compare
Author
|
Hi! Friendly ping on this one. I rebased it onto the latest |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 buildandnpm run lint:writingboth pass locally.Source: https://github.com/maskflow/maskflow/tree/main/packages/maskflow-litellm