-
Notifications
You must be signed in to change notification settings - Fork 1
Project 6 PII Guardrail
Huzefaaa2 edited this page Jan 26, 2026
·
3 revisions
PII Guardrail redacts sensitive data before logs and traces enter observability pipelines. It ships with regex‑based detection, credit‑card validation, and a CLI for batch scrubbing.
flowchart LR
Logs[Logs/Traces] --> Scrubber[PII Scrubber]
Scrubber --> Redacted[Redacted Output]
Scrubber --> Report[Redaction Report]
- Email, SSN, phone, IPv4, credit‑card, and API‑key detection.
- Recursive scrubbing for JSON logs, JSONL, raw text, and OTLP‑style traces.
- Redaction reports (counts by label).
- Configurable labels and redaction token.
PYTHONPATH=projects/pii-guardrail/src python3 -m pii_guardrail.cli \
--input projects/pii-guardrail/examples/sample_logs.jsonl \
--format jsonl \
--output out_logs.jsonl \
--report redaction_report.jsonScrub a trace JSON:
PYTHONPATH=projects/pii-guardrail/src python3 -m pii_guardrail.cli \
--input projects/pii-guardrail/examples/sample_trace.json \
--format trace \
--output out_trace.jsonprojects/pii-guardrail/src/pii_guardrail/scrubber.pyprojects/pii-guardrail/src/pii_guardrail/patterns.pyprojects/pii-guardrail/src/pii_guardrail/cli.py
MindOps — Closed‑loop observability for faster RCA, lower cost, and safer telemetry.
🧭 Explore: Home · Projects · Orchestrator · Control Plane
🏢 Enterprise: Adoption Guide · Security Model · Day‑Zero Demo
📣 Stay current: Dominant Forces in AI — curated research, trends, and battle‑tested playbooks.