trufflehog/pkg
Cody Rose f39a5254ff
Customize results cleaning (using smuggled interface) (#3235)
We have identified some cases in which the results "cleaning" logic (the logic that eliminates superfluous results) should not run. In order to allow this, we need to expose the cleaning logic to the engine. This PR does so by doing these things:

- Create a CustomResultsCleaner interface that can be implemented by detectors that want to use custom cleaning logic
- Implement this interface for the aws and awssessionkey detectors (and remove their previous invocation of their custom cleaning logic)
- Modify the engine to invoke this logic (conditionally)

This PR also removes the "custom" cleaning logic for the opsgenie, razorpay, and twilio detectors, because it was added erroneously.

This is an alternative implementation of #3233.
2024-08-21 09:42:20 -04:00
..
analyzer Support for kebab case and dot notation in permission generation tool (#3222) 2024-08-15 10:07:42 -07:00
buffers [chore] - move buffers pkg out of writers pkg (#2826) 2024-05-16 14:38:36 -07:00
cache refactor(cache): use generics (#2930) 2024-06-06 13:08:00 -04:00
channelmetrics [chore] Polish channelmetrics package (#2938) 2024-06-06 17:29:23 -07:00
cleantemp Wrap temp deletion err #2277 2024-01-08 12:48:58 -05:00
common feat(extensions): ignore dia diagrams (#2939) 2024-06-07 07:37:33 -07:00
config chore: fix some comments (#3098) 2024-07-25 10:37:13 -07:00
context pkg: fix function names in comment (#2761) 2024-04-29 11:21:26 -05:00
custom_detectors feat(detectors): log falsepositive reason (#2969) 2024-06-14 08:26:05 -07:00
decoders Capture decoding time metric (#3209) 2024-08-09 15:19:16 -04:00
detectors Customize results cleaning (using smuggled interface) (#3235) 2024-08-21 09:42:20 -04:00
engine Customize results cleaning (using smuggled interface) (#3235) 2024-08-21 09:42:20 -04:00
gitparse [chore] - address linter (#3133) 2024-07-31 17:30:51 -07:00
giturl [chore] - update docs for pre-commit (#2280) 2024-01-09 15:41:27 -08:00
handlers [bug] - Correctly Handle Large Files in BufferedReadSeeker (#3203) 2024-08-08 12:07:45 -07:00
iobuf [bug] - Correctly Handle Large Files in BufferedReadSeeker (#3203) 2024-08-08 12:07:45 -07:00
log [THOG-643] Implement independent log level controls (#733) 2022-08-26 15:27:09 -05:00
output Make connection issues less jarring (#2730) 2024-04-23 14:29:38 -07:00
pb CFOR Commit Scanner (#3145) 2024-08-01 23:04:20 -04:00
protoyaml Add custom detectors configuration parsing (#927) 2022-11-21 15:10:38 -06:00
roundtripper Add Jenkins scanning (#2892) 2024-06-04 07:13:14 -04:00
sanitizer Initial CLI w/ partially implemented Git source and demo detector (#1) 2022-01-13 12:02:24 -08:00
sources [chore] Fix lint errors (#3218) 2024-08-14 13:49:24 -07:00
sourcestest [chore] Add SourceUnitEnumChunker filesystem tests (#1873) 2023-10-16 10:42:18 -07:00
tui [analyze] Add analyze option to main TUI and unhide subcommand (#3186) 2024-08-06 15:30:50 -07:00
updater Add metrics for command invocation (#3185) 2024-08-13 08:50:36 -07:00
version Automatically update trufflehog (#121) 2022-04-03 11:51:56 -07:00
writers [bug] - Ensure BufferedFileWriter Flushes Buffer Contents to File Correctly (#2943) 2024-06-10 07:27:01 -07:00