Hardening and completeness pass, released as 1.0.0 - #6
Merged
Merged
Conversation
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.
Hardening and completeness pass, one commit per change, released as 1.0.0. Full detail per item is in CHANGELOG.md; the upgrade path from 0.1.0 is in docs/upgrading.md.
872 tests · 2,445 assertions · 100% line coverage (CI floor) · PHPStan level 10, no baseline · Pint, Rector and Semgrep clean.
Detection
*,**,[*]) compiled to a trie and checked before everything else.min_length, allow lists, samples and counter-samples asserted byredactor:validate.Validator::extend().Operators and pseudonymisation
redact,mask,partial,remove,preserve,hash,surrogate,nullify,tokenize, chosen per entity with path > entity > rule > default precedence.APP_KEY; reversible tokens through an encrypted cache store andRedactor::detokenize().API
Redactor::profile()fluent builder withwithMarkers(),withoutMarkers(),only(),except(),inspect(),redactSafely(); Conditionable and Macroable.inspect()returns aRedactionResultwith findings that never include matched text.RedactorException;RedactionPerformedevent with counts only.Boundaries
RedactorTapnever throws;redactroute middleware fails closed;StreamRedactorwith hold-back window;RedactsResponsestrait for Laravel MCP;RedactPromptmiddleware for Laravel AI.Scanning and CI
redactor:scanwith--staged,--diff,--history, table/JSON/SARIF/JUnit output, baselines with ruleset fingerprint, base64/URL/JSON decoding,redactor:allowmarkers, publishable pre-commit hook and workflow.SecretVerifier::register().Entity recognition
PrimingStrategyandBatchRecognizer.kirschbaum-development/redactor-onnx.Conventions and packaging
composer auditworkflows;docs/set of ten pages with the README as an index.Redactor::fake()with nine assertions for application suites.Performance