Abbi Labs

2026-12-03 · Daily security tips

Did you add .env to .gitignore after it was already committed?

A common order of events: the AI builder creates a .env, the first commit picks it up, and later someone adds .env to .gitignore. That doesn't untrack it. Git's docs say files already tracked aren't affected by .gitignore, so every later commit can still push your real keys to GitHub.

Check: in your project folder, run git ls-files | grep .env. If .env, .env.local or .env.production shows up, git is tracking it. A .env.example with placeholder values is fine.

Fix: rotate the keys in each provider's dashboard first, because they're already in your history. Then run git rm --cached .env (it keeps your local copy, just stops tracking it) and commit.

Already pushed it? The full guide covers what to rotate first, untracking the file, and whether you need to rewrite git history.

Read the .env on GitHub guide →

Is your live site exposing something like this?

The free quick check looks at what your site already serves publicly: secret keys in your JavaScript, open /.env files and /.git folders, Supabase tables readable with your public key, missing security headers, CORS misconfiguration, insecure cookie flags and TLS certificate expiry. No sign-up needed.

No app handy?

Example result · our deliberately broken demo app

6 issues found: 3 critical, 1 high, 1 medium, 1 low

  • Critical: Stripe live secret key in public JavaScript
  • Critical: /.env file readable by anyone
  • High: Git repository exposed (/.git/HEAD)

The demo's problems are planted on purpose. Paste your own URL above to see yours.

No sign-up. Read-only public-resource and protocol metadata checks. No model prompts or tool execution. Scan only sites you own or are allowed to test.

Run on every deploy or use from Cursor / Claude Code via MCP →

Weekly AI-app security checklist

One short email a week: a practical check for apps built with Supabase, Next.js and AI tools (RLS, leaked keys, headers and more). Unsubscribe anytime.