trufflehog/proto
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
..
credentials.proto Resolve #1167 by adding support for the AWS_SESSION_TOKEN (#1170) 2023-04-03 14:56:43 -07:00
custom_detectors.proto Add custom detectors configuration parsing (#927) 2022-11-21 15:10:38 -06:00
detectors.proto add salesforce detector (#1608) 2023-08-16 10:42:04 -04:00
source_metadata.proto gdrive proto change (#1566) 2023-07-28 10:38:51 -04:00
sources.proto add role assumption for s3 source (#1477) 2023-08-17 20:30:20 -04:00