Developer builds open-source CLI tool to catch leaked API keys and broken env files
A developer has released envcheck, a zero-dependency Node.js CLI tool designed to prevent two common engineering mishaps: missing environment variables causing production crashes and accidental secret commits to code repositories. The tool compares .env files against a committed .env.example template, flagging missing keys, duplicates, empty values, and unfilled placeholder defaults. It also recursively scans repositories for leaked credentials, detecting known token formats from providers like AWS, Stripe, and GitHub, as well as high-entropy strings that may represent undocumented secrets. Matched secrets are redacted in output so reports can be safely stored as CI artifacts, and common noise sources like node_modules and minified files are automatically excluded. The tool integrates with CI pipelines via standard exit codes and is available for use with GitHub Actions and other automation systems.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in