You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
TruffleHog Version
Docker image trufflesecurity/trufflehog:3.29.0
Trace Output
2023-03-10T18:35:20Z info-2 trufflehog trufflehog 3.29.0
2023-03-10T18:35:20Z info-2 trufflehog engine started {"workers": 16}
2023-03-10T18:35:20Z info-2 trufflehog loaded decoders {"count": 2}
2023-03-10T18:35:20Z info-2 trufflehog loaded detectors {"total": 728, "verification_enabled": 728, "verification_disabled": 0}
🐷🔑🐷 TruffleHog. Unearth your secrets. 🐷🔑🐷
2023-03-10T18:35:20Z info-0 trufflehog Scanning bucket {"source_type": "SOURCE_TYPE_S3", "source_name": "s3", "bucket": "xxx"}
2023-03-10T18:35:21Z error trufflehog could not list objects in s3 bucket {"source_type": "SOURCE_TYPE_S3", "source_name": "s3", "bucket": "xxx", "error": "InvalidAccessKeyId: The AWS Access Key Id you provided does not exist in our records.\n\tstatus code: 403, request id: xxx, host id: xxx"}
2023-03-10T18:35:21Z info-0 trufflehog Scanning bucket {"source_type": "SOURCE_TYPE_S3", "source_name": "s3", "bucket": "xxx"}
2023-03-10T18:35:21Z error trufflehog could not list objects in s3 bucket {"source_type": "SOURCE_TYPE_S3", "source_name": "s3", "bucket": "xxx", "error": "InvalidAccessKeyId: The AWS Access Key Id you provided does not exist in our records.\n\tstatus code: 403, request id: xxx, host id: xxx/xxx="}
2023-03-10T18:35:22Z info-2 trufflehog finished scanning {"chunks": 0, "bytes": 0}
Expected Behavior
Truffle Hog can be run using temporary credentials defined by an AWS access key id + secret key + session token.
Actual Behavior
Failure to authenticate with AWS before scanning a bucket:
The AWS Access Key Id you provided does not exist in our records.
Steps to Reproduce
Run aws sts get-session-token to output a json object with the three required environment variable values
Save the below script
Modify the script to use the values from aws sts-get-session-token
Run the script. Observe that the aws s3 ls command succeeds, but the truffle hog command fails with The AWS Access Key Id you provided does not exist in our records.
Community Note
TruffleHog Version
Docker image
trufflesecurity/trufflehog:3.29.0
Trace Output
Expected Behavior
Truffle Hog can be run using temporary credentials defined by an AWS access key id + secret key + session token.
Actual Behavior
Failure to authenticate with AWS before scanning a bucket:
The AWS Access Key Id you provided does not exist in our records.
Steps to Reproduce
aws sts get-session-token
to output a json object with the three required environment variable valuesaws sts-get-session-token
aws s3 ls
command succeeds, but the truffle hog command fails withThe AWS Access Key Id you provided does not exist in our records.
Environment
Additional Context
None
References
None
The text was updated successfully, but these errors were encountered: