Show HN: A guardrails to prevent leaking secrets to Claude
Category: security
Tags: secrets-scrubbing, ai-coding-assistant, claude-code, rust, devsecops
Score: 6.3/10 (Innovation: 6, Technical: 6, Documentation: 7, Utility: 6)
redacted is a Rust CLI that runs as a Claude Code PostToolUse hook to scrub secrets from tool output before it reaches the model's context. It combines vendor-pattern matching, hash-based learned secrets from .env files, and an optional entropy heuristic, operating fully offline. It addresses a real gap in AI coding assistant workflows—secrets leaking into transcripts—via output-level rather than command-level filtering.
Target audience: backend devs, devops, security engineers
Repository: https://redacted.my.id/ · Rust · MIT
View on Hacker News