* feat: sanitize passwords from json payload
* add webhook sanitization
* update comments
Co-authored-by: soup <soup@r4tio.dev>
* sanitize RED apikeys from webhook payloads
* added an optional whitespace token between field name and data
---------
Co-authored-by: soup <soup@r4tio.dev>
* refactor log sanitization for better performance
* Fix token error, add mutex for safer concurrency
* serve sanitized version directly from memory
* further improvements
made it check for "module":"irc" before running the irc regex checks
* Revert "further improvements"
This reverts commit 260037c3a58e1e760613167d3e15136b313c0612.
* update irc regexes to handle special characters
- added prefixes to the irc patterns
- improved tests
* more improvements for irc regexes
* fixed errors
* another edge case bites the dust
* regex improvements
* lock to 1 worker if cpu cores is 2 or less
* removed unused code
* revert to single thread
Moved regex patterns and replacements into a separate array for easier maintenance and readability.
Optimized the regex patterns that share the same replacement string to avoid redundancy.
Modify SanitizeLogFile to accept io.Writer for direct output
* style
* only check relevant lines
- only check relevant lines
- dont break unless length=0
* revert breaking change
* handle api and auth cases
---------
Co-authored-by: Kyle Sanderson <kyle.leet@gmail.com>