trufflehog/pkg/engine
Mike Vanbuskirk 64dd49f9ce
add role assumption for s3 source (#1477)
* add role assumption for s3 source

* refactor role assumption to repeatable string

user can pass array of roles to assume

* refactor s3 chunks to handle passed roleARNs

* add role-session name

use timestamp to make dynamic

* add docstring for rolearn strings()

* make sure role ars are passed into source

* refactor role assumption functionality

break s3 bucket scanning into sep. function

* add log check on assume role

* fix role iteration

- Make sure s3 struct is populated with roles
- add separate new client instantiation for role-based access
- iterates through each role

* add comment

* protobuf revert for merge

* re-run make proto

* lint cleanup

* cleanup TODOs

* drop redundant switch case in assumerole client

* use less verbose 'ctx' designator

* breakout functionality from Chunks

- separate functions for:
- enumerating buckets to scan
- scanning objects within the buckets

* remake protobuf defs

* allow scan to continue on single bucket err

* add readme docs

* minor fixups
2023-08-17 20:30:20 -04:00
..
circleci.go Use SourceManager in engine (#1586) 2023-08-03 13:36:30 -05:00
defaults.go Github Oauth2 verification (#1584) 2023-08-02 11:16:40 -07:00
defaults_test.go Fix include and exclude detector logic (#1267) 2023-04-26 10:49:54 -05:00
docker.go Use SourceManager in engine (#1586) 2023-08-03 13:36:30 -05:00
engine.go Add ScanChunk to allow injecting Chunks into the SourceManager's channel (#1634) 2023-08-16 16:09:23 -07:00
engine_test.go Refactor FragmentLineOffset to match multiline secrets (#1612) 2023-08-14 10:51:41 -07:00
filesystem.go Use SourceManager in engine (#1586) 2023-08-03 13:36:30 -05:00
gcs.go Use SourceManager in engine (#1586) 2023-08-03 13:36:30 -05:00
gcs_test.go Use SourceManager in engine (#1586) 2023-08-03 13:36:30 -05:00
git.go Use SourceManager in engine (#1586) 2023-08-03 13:36:30 -05:00
git_test.go Concurrent detection (#1580) 2023-07-31 11:12:08 -07:00
github.go correct logging output for github comments and add oss flags (#1632) 2023-08-16 18:23:59 -04:00
gitlab.go Use SourceManager in engine (#1586) 2023-08-03 13:36:30 -05:00
s3.go add role assumption for s3 source (#1477) 2023-08-17 20:30:20 -04:00
syslog.go Use SourceManager in engine (#1586) 2023-08-03 13:36:30 -05:00