- Security practice
- .env
How to use TruffleHog to find secrets in a Git repo
How to use TruffleHog 3.100 to scan Git history and folders for secrets, what verified and unverified mean, and which .env values it lets through.
15 posts in this category.
How to use TruffleHog 3.100 to scan Git history and folders for secrets, what verified and unverified mean, and which .env values it lets through.
Your Node env file loads nothing and process.env comes back undefined. Fix it with Dopbase, Node's built-in --env-file flag or dotenv, with tested commands.
How to use gitleaks 8.30.1 to scan Git history and a folder for secrets, set up the pre-commit hook, and see which values it lets through.
Does Claude Code read AGENTS.md? We tested CLAUDE.md vs AGENTS.md on Claude Code 2.1.329 and Codex 0.164.0, plus what a .env rule does.
What the Codex sandbox blocks, what it still lets Codex read, and how to keep a .env file out of reach. Tested on Codex CLI 0.164.0.
A Docker Compose env file does one of two jobs: fill ${VAR} in compose.yaml or set variables in a container. We tested which file does which.
The .env file format on one page: keys, quotes, comments, multiline values and export, plus the differences between dotenv, Docker and the shell.
Use the Dopbase Node.js SDK to load server-side secrets at runtime in a Next.js App Router app. Follow a working example with screenshots.
Where Claude Code reads environment variables from, which ones hold API keys, and how to set them without leaving a key in settings.json or .env.
Use Dopbase with Next.js for local development. Import your environment variables, run the dev server without .env.local, and update values in one place.
Learn how dotenv loads .env files in Node.js, validate environment variables, fix common errors, and move from local files to Dopbase runtime injection.
Compare secure ways to share .env variables with your team, from password managers and encrypted files to runtime secret injection with Dopbase.