* feat(generic): add 'keypress' to allowlist
* feat(privatekey): ignore empty/impossible matches
* feat(config): ignore 'secrets' that are file paths
* fix(sentry): handle special character at end
Prevent common test error of 'Failed to Validate. True positive was not detected by regex.' because the generated value didn't play nicely with word boundary.
* chore(generate): make utils public
* chore(generate): change validate log messages
* chore(generate): split functions into files
* chore(config): add warning for public funcs
* refactor: fix rule for private keys
Wouldn't match old keys which have been created with the BLOCK statement at the beginning and end of the key.
* fix: rule for private keys
* fix: missing comma
Co-authored-by: Fabian F Groß <fabian.f.gross@deutschebahn.com>
* refactor: more precise rule for private keys
The current regex didn't match PGP private keys anymore, since they start with `BEGIN PGP PRIVATE KEY BLOCK` and the `BLOCK` never matched for the existing regex. I've made that part optional so that all strings matching for the current regex will still match for the new regex.
* refactor: more precise rule for private keys
Co-authored-by: Fabian F Groß <fabian.f.gross@deutschebahn.com>