* feat: add settlemint api keys detection
* fix regex creation
* use GenerateUniqueTokenRegex
* trigger ci
* ensure tokens have min length of 12
* ensure to set minLength on settlemint token pattern
* set base entropy for settlemint detectors
* update settlemint token regexes to be more precise
* Add Harness PAT rule.
* Add support for Harness PAT and SAT.
* Update comment for Harness SAT.
* Consolidate PAT and SAT into Harness API Key
* add ignore and capture group to match
---------
Co-authored-by: Zachary Rice <zachary.rice@trufflesec.com>
intra42 is the intranet and API of "42 School", a CS school.
The API is open to all students in 57 campus around the world.
It is thus often subject to credentials leaks on GitHub
See https://42.fr and https://api.intra.42.fr/
* 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
* 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>