trufflehog pre-commit hook fails on Windows: /dev/fd/63 process substitution unavailable #481

Closed
opened 2026-07-12 21:16:28 +00:00 by coilyco-ops · 1 comment
Owner

On kai-desktop-tower (Windows, Git Bash hook runtime), the managed trufflehog hook fails before scanning:

error trufflehog unable to open filter file {file: /dev/fd/63, error: open /dev/fd/63: The system cannot find the path specified.}

The wrapper feeds the exclude list via process substitution, which has no /dev/fd on this Git Bash. Every commit from a Windows host hits this, so the secret-scan backstop is effectively absent there (leak-check still runs). Fix candidates: write the filter list to a real temp file instead of <(...), or gate the flag on platform. Found 2026-07-12 while landing coilyco-bridge/agentic-os-kai#739.

On kai-desktop-tower (Windows, Git Bash hook runtime), the managed trufflehog hook fails before scanning: error trufflehog unable to open filter file {file: /dev/fd/63, error: open /dev/fd/63: The system cannot find the path specified.} The wrapper feeds the exclude list via process substitution, which has no /dev/fd on this Git Bash. Every commit from a Windows host hits this, so the secret-scan backstop is effectively absent there (leak-check still runs). Fix candidates: write the filter list to a real temp file instead of <(...), or gate the flag on platform. Found 2026-07-12 while landing coilyco-bridge/agentic-os-kai#739.
Author
Owner

Duplicate of #485, completed by PR #520. The landed wrapper uses a real mktemp file, and tests assert the exclude path is not /dev/fd-backed.

Duplicate of #485, completed by PR #520. The landed wrapper uses a real mktemp file, and tests assert the exclude path is not /dev/fd-backed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
coilyco-flight-deck/agentic-os#481
No description provided.