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

fixed github issue 3774 for custom detector secret size #3816

Merged
merged 1 commit into from
Dec 25, 2024

Conversation

kashifkhan0771
Copy link
Contributor

Description:

This PR adds a custom secret max size to 1000 for custom detector, so it can detector large secrets.
This is related to issue #3774

Issue Example Fix:
Screenshot from 2024-12-24 15-03-09

Checklist:

  • Tests passing (make test-community)?
  • Lint passing (make lint this requires golangci-lint)?

@kashifkhan0771 kashifkhan0771 requested a review from a team as a code owner December 24, 2024 10:05
@kashifkhan0771 kashifkhan0771 linked an issue Dec 24, 2024 that may be closed by this pull request
@ahrav
Copy link
Collaborator

ahrav commented Dec 25, 2024

I think this solution works for now. It would be helpful if implementers of custom detectors could identify that they are using this interface and also have a way to set the secret size in the config. However, that's likely a separate discussion, which is why I believe this approach is appropriate. Well done!

@ahrav ahrav merged commit def734a into trufflesecurity:main Dec 25, 2024
13 checks passed
@kashifkhan0771 kashifkhan0771 deleted the fix/github-3774 branch December 26, 2024 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Last matched custom regex incorrect
2 participants