Bug 57991 - Trufflehog не обнаруживает ключи в локальном репозитории
Summary: Trufflehog не обнаруживает ключи в локальном репозитории
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: trufflehog (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Maxim Slipenko
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-02-24 14:52 MSK by Белая Алёна
Modified: 2026-02-24 14:52 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Белая Алёна 2026-02-24 14:52:46 MSK
trufflehog-3.93.2-alt1

Шаги воспроизведения:
1. Создать любой секретный ключ для проверки, например openssh:
# mkdir ~/trufflehog_test
# ssh-keygen
# cat .ssh/id_ed25519 > ~/trufflehog_test/testfile.txt

2. Проверить, что секретный ключ обнаруживается через опцию filesystem: 
# trufflehog filesystem ~/trufflehog_test/testfile.txt ./.

3. Создать локальный репозиторий из вышесозданной директории:
# git init ~/trufflehog_test && echo "hello world" > ~/trufflehog_test/testfile.txt 
# # git add --all && git commit -m "test commit"

4. Найти секретный ключ через опцию git
# trufflehog git file://trufflehog_test/testfile.txt

Результат: trufflehog находит секретный ключ в локальных файлах, но не находит их в локальном репозитории

Ожидаемый результат: trufflehog находит ключи как в обычных файлах, так и в локальном репозитории