feat(middleware): add DataMaskingMiddleware — sensitive entity protection (Chunk 3)
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled

Priority 90 — runs before Compaction@100 and Memory@150.
Detects and replaces company names, money amounts, phone numbers,
emails, and ID card numbers with deterministic tokens (__ENTITY_N__).
External callers can restore originals via DataMasker::unmask().
This commit is contained in:
iven
2026-04-07 08:01:05 +08:00
parent deb206ec0b
commit 8aed363fc8
5 changed files with 302 additions and 0 deletions

1
Cargo.lock generated
View File

@@ -9039,6 +9039,7 @@ dependencies = [
"dirs",
"futures",
"rand 0.8.5",
"regex",
"reqwest 0.12.28",
"secrecy",
"serde",