Redaction for structured data
Includes a minor change to allow for retained length of aws account ids or really any string of digits that has a length greater than 12.
Added CLI opts, support for EDN input and output, and logging (for e.g. showing which values are being redacted and which ones aren't).
wernicke --help
for more details :)
No changes in the external behavior, but made the internals more consistent. There's a general feature now (which we hope to expose at some point) where behavior can be added to named regex groups. This is used to preserve the exact value of a matched group or the length of a matched group. That way you can have a regex for e.g. AWS VPC ids, vpc-12345 can map to vpc-54321, but not sg-54321, without having to enumerate every type of resource in your regex. Similarly, long resource ids will map to long instance ids and short ones to short ones.
(Again, most of this behavior was already there, but they were hacked in as edge cases. Now they're an explicit feature that other users can build on.)
Fixed some minor bugs, see CHANGELOG.md.
It's alive!