trufflehog icon indicating copy to clipboard operation
trufflehog copied to clipboard

[Testing] Avoid duplicate verification requests which happen concurrently

Open kashifkhan0771 opened this issue 3 months ago • 9 comments

Description:

This PR introduces a detector-level cache to store verification results, allowing reuse for duplicate findings. To enhance security, secrets will be hashed using XXHash before being added to the cache.

More details: https://github.com/trufflesecurity/trufflehog/issues/2262

Note: This is the first example implementation, if approved we will implement this in the most used detectors.

Checklist:

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

kashifkhan0771 avatar Jul 14 '25 10:07 kashifkhan0771