trufflesecurity / trufflehog

Find and verify secrets
https://trufflesecurity.com
GNU Affero General Public License v3.0
14.39k stars 1.57k forks source link

Clarify "no decoder found for chunk" log message #3001

Open rgmz opened 2 weeks ago

rgmz commented 2 weeks ago

Description:

When looking at trace logs you will see countless lines with the message: "no decoder found for chunk".

2024-05-01T15:10:28Z    info-4  trufflehog      finished scanning chunks        {"secret_worker_id": "MMpLT"}
2024-05-01T15:10:28Z    info-4  trufflehog      no decoder found for chunk      {"secret_worker_id": "w1TPA", "chunk": ...}
2024-05-01T15:10:28Z    info-4  trufflehog      no decoder found for chunk      {"secret_worker_id": "w1TPA", "chunk": {...}
2024-05-01T15:10:28Z    info-4  trufflehog      no decoder found for chunk      {"secret_worker_id": "w1TPA", "chunk": ...}

This message is unhelpful and somewhat confusing. It makes it seem like there's an issue, when in reality it's that a specific detector didn't find any content in a given chunk.

Checklist: