Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: reduce false positives by hashicorp #1358

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

baruchiro
Copy link
Contributor

Description:

To add this rule I took examples from the official Hashicorp documentation, but now I used this rule and it find too generic cases such as const TagPassword = "password".

Using the Entropy field is a balance between true/false positives, since with 3.5 it will ignore almost all passwords less then 10 characters length.

Checklist:

  • Does your PR pass tests?
  • Have you written new tests for your changes?
  • Have you lint your code locally prior to submission?

baruchiro pushed a commit to Checkmarx/2ms that referenced this pull request Feb 29, 2024
baruchiro added a commit to Checkmarx/gitleaks that referenced this pull request Feb 29, 2024
I didn't know it when I made gitleaks#1358
Baruch Odem added 2 commits March 6, 2024 11:12
baruchiro added a commit to Checkmarx/gitleaks that referenced this pull request Mar 28, 2024
### Description:
To add this rule I took examples from the official Hashicorp
documentation, but now I used this rule and it find too generic cases
such as `const TagPassword = "password"`.

Using the `Entropy` field is a balance between true/false positives,
since with `3.5` it will ignore almost all passwords less then 10
characters length.

### Checklist:

* [x] Does your PR pass tests?
* [x] Have you written new tests for your changes?
* [x] Have you lint your code locally prior to submission?

Original: gitleaks#1358
zricethezav pushed a commit that referenced this pull request Apr 29, 2024
* Refactor Scalingo API token regex and add sample token

* improve docs for allowlist

I didn't know it when I made #1358

---------

Co-authored-by: Baruch Odem <baruch.odem@checkmarx.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant