* Initial secret set
* Covered off all rule types in comments
* Finished Azure and Ansible rules
* About to run go run main.go
* Fixed some rules, but tests need work
* Initial secret set for Azure
Needs work - many tests fail
* Fix remaining Azure secrets - but couldn't get XML to work
* Update .gitignore
Co-authored-by: Jesse Houwing <jesse.houwing@gmail.com>
---------
Co-authored-by: Jesse Houwing <jesse.houwing@gmail.com>
Adds detection support for Defined Networking tokens (https://docs.defined.net/guides/automating-host-creation/)
I added a fixture in addition to the generator, I think I may be able to use the `generateUniqueToken` instead of the semi-generic option? Let me know if I should update accordingly.
Remove testing fixture
* 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>
* adding jwt tokens with padding format =
* forgot to run go run main.go
* manually putting database.refractorlog back
Co-authored-by: Esther <esther.ay@snaptravel.com>
* silence warning about unchecked errors
* go-fmt change to add newline
* Zerolog requires you to always call .Msg()
When logging with zerolog, you need to always end with .Msg(), even if
you just pass an empty string.
If you read the README on https://github.com/rs/zerolog, they write:
> It is very important to note that when using the zerolog
> chaining API, as shown above (log.Info().Msg("hello world"), the
> chain must have either the Msg or Msgf method call. If you
> forget to add either of these, the log will not occur and there
> is no compile time error to alert you of this.
* Create empty slice without literal
* Fix variable / package name collision with literal
instead of having a variable named "config", which collides with the
package name "config", just pass a literal config.Config{} struct to the
function
* Replace call to deprecated ioutil.ReadAll()
Use io.ReadAll() instead
* Check error when closing jsonFile
Make it a warning and log error
* Issue #980: Add support for Telegram Bot API Token
* Replace test with random bot_id length by tests with fixed one.
Add tests for the corner cases.
Co-authored-by: Alex Goncharov <b4bay@users.noreply.github.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>