Skip to main content
Back
leakhook
Community Contributions

leakhook

Overview

Secrets and .env files slip into git history every day. leakhook installs a single pre-commit hook that scans staged changes for AWS, GitHub, Stripe, Slack and Google keys, private-key blocks, JWTs, database URIs with credentials, and forbidden files — blocking the commit before anything leaks.

The Challenge

Secret-scanning tools like gitleaks or husky + lint-staged are powerful but heavy to wire up, so small teams often ship with no guardrail at all.

Our Solution

A zero-dependency Node hook you install with one command. It reads the staged diff, matches a readable rules table, supports allowlisting (.leakhookignore, inline leakhook-allow, LEAKHOOK_SKIP), and needs no external binary.

Results

Installs in seconds, runs on every commit, and dogfoods Devya’s own secret-hygiene standard on every repo.

Technologies Used

Node.jsGit hooksSecurityZero-dependency

Project Details

Category

Community Contributions

Share this project