Repository navigation
feat: harden Auto Redact and export for GDPR, fewer false positives - #131
Merged
Merged
Conversation
Detection - Evidence-based scoring of PERSON/LOCATION hits with an Italian lexicon, accepted/suggested states and a review dialog, preview overlay and health-document profile (birth dates, health card, prescription number, exemption codes, postcodes, house numbers, signature/stamp suggestions). - Validation of weak identifier patterns, allowlist by word identity, ligature/letter-spaced/hyphenated word handling, ISTAT place names. Redaction geometry - Rectangles stop short of neighbouring lines' glyph cores (measured deletion rule, pinned by a test); per-character coverage check; text under a box is read from a single baseline. - Placeholders drawn after the redactions, with compact labels in small boxes (restore map v4). Export and privacy - Export sanitiser and output verification, no unredacted temp copy, neutral file names, audit record, local data wipe, rotating logs. - Encrypted dictionaries with expiry, sealed pseudonym key, restore map envelope v3 (Argon2id, optional recovery key), pseudonym styles. Also bumps the prerelease label to beta.2 and aligns the mypy module list across workflows.
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.
Summary
Reduces false positives in the automatic scan (ordinary Italian words, fragments of neighbouring lines) and hardens the export and the pseudonymization workflow.
Compatibility notes
blocklist.txt/allowlist.txtare migrated to encrypted files and overwritten.Testing
pytest tests/: 309 passedmypyon the 12 modules listed in the workflows: clean