
PII Masking Microservice
Zero-Trust Real-Time PII De-Identification & Secret Guard for LLM Pipelines
A high-performance FastAPI microservice powered by Microsoft Presidio, spaCy (English & Spanish), and Infisical secret management. Detects, tokenizes with salted hashes, and reversibly restores PII before external model inference, ensuring strict regulatory compliance (LOPDP/GDPR).
Key Benefits & Capabilities
- In-flight PII masking: names, emails, phone numbers, tax IDs, and credit cards replaced by salted tokens
- Deterministic, reversible tokenization maps original entities safely on client returns
- Integrated Infisical zero-trust secret management: runtime in-memory credential injection with no plaintext keys
- Multi-language support with specialized spaCy pipeline for Spanish and English
- Single-container deployment with warm-start models for sub-millisecond local inference


