trufflehog/pkg
Charlie Gunyon 311494e86e
Elastic adapter (#2727)
* Add stub source and elastic API funcs

* Spawn workers and ship chunks

* Now successfully detects a credential

- Added tests
- Added some documentation comments
- Threaded the passed context through to all the API requests

* Linting fixes

* Add integration tests and resolve some bugs they uncovered

* Logstash -> Elasticsearch

* Add support for --index-pattern

* Add support for --query-json

* Use structs instead of string building to construct a search body

* Support --since-timestamp

* Implement additional authentication methods

* Fix some small bugs

* Refactoring to support --best-effort-scan

* Finish implementation of --best-effort-scan

* Implement scan catch-up

* Finish connecting support for nodes CLI arg

* Add some integration tests around the catchup mechanism

* go mod tidy

* Fix some linting issues

* Remove some debugging Prints

* Move off of _doc

* Remove informational Printf and add informational logging

* Remove debugging logging

* Copy the index from the outer loop as well

* Don't burn up the ES API with rapid requests if there's no work to do in subsequent scans

* No need to export UnitOfWork.AddSearch

* Use a better name for the range query variable when building the timestamp range clause in searches

* Replace some unlocking defers with explicit unlocks to make the synchronized part of the code clearer

* found -> ok

* Remove superfluous buildElasticClient method

---------

Co-authored-by: Charlie Gunyon <charlie@spectral.energy>
2024-05-24 09:38:20 -05:00
..
buffers [chore] - move buffers pkg out of writers pkg (#2826) 2024-05-16 14:38:36 -07:00
cache Extend memory cache (#2275) 2024-01-11 08:20:37 -08:00
cleantemp Wrap temp deletion err #2277 2024-01-08 12:48:58 -05:00
common test(common/http): fix panic (#2817) 2024-05-09 18:17:14 -07:00
config [chore] - fix import name clashes (#2143) 2023-12-01 06:53:15 -08:00
context pkg: fix function names in comment (#2761) 2024-04-29 11:21:26 -05:00
custom_detectors Expose detector-specific false positive logic (#2743) 2024-04-30 16:10:26 -04:00
decoders [bug] - Add ASCII validation check for base64 decoding (#2671) 2024-04-04 16:59:13 -07:00
detectors adding Groq detector (#2873) 2024-05-22 15:46:14 -04:00
engine Elastic adapter (#2727) 2024-05-24 09:38:20 -05:00
gitparse feat(git): scan commit metadata (#2754) 2024-04-29 16:58:45 -04:00
giturl [chore] - update docs for pre-commit (#2280) 2024-01-09 15:41:27 -08:00
handlers [bug] - Handle empty reader case in newFileReader (#2854) 2024-05-15 18:25:36 -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 Elastic adapter (#2727) 2024-05-24 09:38:20 -05:00
protoyaml Add custom detectors configuration parsing (#927) 2022-11-21 15:10:38 -06:00
readers [bug] - Handle empty reader case in newFileReader (#2854) 2024-05-15 18:25:36 -07:00
sanitizer Initial CLI w/ partially implemented Git source and demo detector (#1) 2022-01-13 12:02:24 -08:00
sources Elastic adapter (#2727) 2024-05-24 09:38:20 -05:00
sourcestest [chore] Add SourceUnitEnumChunker filesystem tests (#1873) 2023-10-16 10:42:18 -07:00
tui [chore] Replace "Trufflehog" with "TruffleHog" (#2584) 2024-03-18 11:01:25 -07:00
updater [chore] Remove logrus from trufflehog (#1095) 2023-02-14 17:00:07 -06:00
version Automatically update trufflehog (#121) 2022-04-03 11:51:56 -07:00
writers [chore] - move buffers pkg out of writers pkg (#2826) 2024-05-16 14:38:36 -07:00