Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Source Config fails #2598

Open
sherlocksecurity opened this issue Mar 20, 2024 · 2 comments
Open

Docker Source Config fails #2598

sherlocksecurity opened this issue Mar 20, 2024 · 2 comments
Labels

Comments

@sherlocksecurity
Copy link

When i try to use custom config for docker, getting parse error ..

Command: trufflehog docker --image linuxbsdfreak/cpol-amd64 --only-verified --debug --config=config.yaml

Config file:

sources:
- connection:
    '@type': type.googleapis.com/sources.Docker
    basicAuth:
      password: dckr_pat_sfsfdsafas
      username: testes
    images:
    - trufflesecurity/secrets
  name: Docker
  scanPeriod: 12h
  type: SOURCE_TYPE_DOCKER
  verify: true
@sherlocksecurity
Copy link
Author

sherlocksecurity commented Mar 20, 2024

Error:

2024/03/20 15:56:32 [updater child#1] start program
2024-03-20T15:56:32+05:30 info-2 trufflehog trufflehog 3.70.2
2024-03-20T15:56:32+05:30 error trufflehog error parsing the provided configuration file {"error": "proto: (line 1:2): unknown field "sources""}
2024/03/20 15:56:32 [updater parent] prog exited with 1

@daveoconnor
Copy link

I'm getting this too with a variation of the filesystem config documented as the following here:

sources:
- connection:
    '@type': type.googleapis.com/sources.Filesystem
    paths:
    - /home/me/dev
    excludePathsFile: /home/me/dev/exclude.txt
    includePathsFile: /home/me/dev/include.txt
  name: Filesystem
  scanPeriod: 12h
  type: SOURCE_TYPE_FILESYSTEM
  verify: true

gives me

{"level":"error","ts":"2024-05-24T13:01:36-07:00","logger":"trufflehog","msg":"error parsing the provided configuration file","error":"proto: (line 1:2): unknown field \"sources\""}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants