Add JSON-safe redaction and Turkish identity detectors #1
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.
Implements three v2.0 enhancements: JSON structure-preserving redaction, four Turkish PII recognizers (VKN, SGK, license plates, passports), and comprehensive test coverage.
Changes
JSON-Safe Redaction
RedactionStyle.JsonSafeenum valuetest@example.com→t***@***.comTurkish Identity Recognizers
VknRecognizer (Vergi Kimlik Numarası, weight: 9)
SgkRecognizer (SGK Sicil Numarası, weight: 7)
LicensePlateRecognizer (weight: 5)
\d{2}\s?[A-Z]{1,3}\s?\d{2,4}(e.g., "34 ABC 1234")PassportRecognizer (weight: 8)
[A-Z]\d{8}(e.g., "U12345678")All recognizers registered in
DataGuardianEngine, added to default weights andRedactTypesinDataGuardianOptions.Test Coverage
22/22 tests passing. CodeQL: 0 alerts.
Original prompt
This pull request was created from Copilot chat.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.