trufflehog/pkg/sources/s3
Mike Vanbuskirk 53f060a08e
Add disk buffer tempfile cleanup (#2130)
* add tempfile creation

- break PID retrieval into sep. function

* add tmpfile cleanup func

* add file cleanup to main cleanup func

* refactor file logic to only return name string

* add temp buffer naming to gcs

* add temp buffer naming to s3

* add temp buffer naming to filesystem

* add temp buffer naming to git

* consolidate cleanup functions

- have single function handle both files and dirs
- remove interface(not needed with a single func implementation)
- change calls to `New(...)` to reflect config implementation
- simplify automation in main.go
- update disk-buffer-reader dependency

* integrate changes from pr #2133

* merge main

* checkout from main to revert conflict issues

* re-add buffer logic to git

* interface no longer needed

* move string format to global const

---------

Co-authored-by: Ahrav Dutta <ahrav.dutta@trufflesec.com>
2023-12-11 18:31:50 -05:00
..
s3.go Add disk buffer tempfile cleanup (#2130) 2023-12-11 18:31:50 -05:00
s3_integration_test.go Use S3 credentials waterfall (#1823) 2023-09-27 16:57:47 -04:00
s3_test.go Test S3 role assumption (#1655) 2023-08-25 11:30:08 -04:00