Rotating a leaked key doesn't erase it from history. `git log -S 'old_key_value' --all` finds the commit where it lived β no special access needed. If the repo was ever public, that key still is. GetLeaked checks history, not just your current `.env`.
Create React App ships source maps in production builds by default β `GENERATE_SOURCEMAP=false` is opt-in, not opt-out. Open DevTools > Sources on the live site and your original code is right there: comments, internal API names, unminified logic.
Next.js inlines every `NEXT_PUBLIC_` var into the client bundle at build time, not runtime. Rotate `NEXT_PUBLIC_STRIPE_KEY` in `.env` and the old value still sits in `.next/static/chunks/*.js` until you rebuild and redeploy. GetLeaked checks shipped bundles, not your `.env`.
Vite copies `public/` into `dist/` as-is β no filtering. Drop a `.env` there for local testing and it ships straight to `https://t.co/dP05ii8ZjU`. No error, no warning, no build step catches it. GetLeaked checks deployed bundles for exactly this.
Supabase ships two keys: `anon` and `service_role`. `anon` respects RLS. `service_role` bypasses it entirely.
Put `service_role` in a client component and your policies stop mattering β every row is readable, no auth required.
Firestore's test-mode rules default to open read/write β and expire 30 days after project creation. Ship past that window without touching `firestore.rules`, and anyone with your project ID queries every collection. No auth required. GetLeaked flags this before launch.
Vercel preview deployments inherit the same environment variables as production by default. Push a branch, get a `*.vercel.app` URL β same Supabase keys, same auth config, no login wall unless you built one.
Anyone with that link sees what production sees.
Source maps in production expose your original source code β variable names, file structure, inline comments, sometimes `.env` references that didn't make it to the bundle but did make it to the map.
Create React App sets `GENERATE_SOURCEMAP=true` by default.
Rotating a leaked key removes access. It doesn't remove it from git history.
`git log -S 'sk_live_' --all` finds it. So does anyone with read access to your repo.
Rotation is necessary. Redacting the commit is different work.
GetLeaked catches secrets in your deployed bundle.
Lovable and https://t.co/GGxXppteNu scaffold your project with environment variables in `.env`. That file stays local. The build artifact doesn't.
If a key ends up in your JS bundle β via `NEXT_PUBLIC_`, a bundler that inlines env vars, or a framework default you didn't configure β it ships.
Supabase's anon key is public by design β it's meant to be in the browser. The service role key is not. It bypasses RLS entirely.
If your `.env` has `NEXT_PUBLIC_SUPABASE_SERVICE_ROLE_KEY`, that key shipped to every visitor.
`NEXT_PUBLIC_` is Next.js's build-time signal: bundle this client-side. Any variable with that prefix lands in the browser β no exceptions.
If your Supabase service role key has that prefix, it shipped. The name tells you exactly what happened.
Vercel preview deployments are public by default β no auth, no expiry, no warning.
If your app resolves secrets at build time, those values land in the preview bundle. The URL format is predictable. Anyone who finds it has what you built into it.
Vercel preview deploys are public by default.
If your `NEXT_PUBLIC_SUPABASE_ANON_KEY` β or worse, your service role key β is present at build time, it ships into the preview bundle. Anyone with the URL has it.
GetLeaked checks preview deploys before your users find them first.
Source maps in production expose your original source to anyone who opens DevTools β variable names, internal API routes, business logic.
Create React App enables them by default. Set `GENERATE_SOURCEMAP=false` before you ship.
GetLeaked catches exposed source maps in seconds.
`git log -S 'KEY' --all` shows every commit that touched that string β added or removed it, across every branch.
Rotation kills access. It doesn't rewrite history.
If the repo was public for even a moment, that commit is indexed.
The Supabase service role key bypasses RLS entirely β by design. It belongs server-side only. If it ends up in `NEXT_PUBLIC_SUPABASE_SERVICE_ROLE_KEY`, every visitor has it. At that point your RLS policies are decorative.
GetLeaked checks for service role keys on the client.
Rotating a leaked key doesn't remove it from git history. `git log -S 'YOUR_KEY' --all` returns the commit it shipped in β permanently. Anyone who cloned the repo before rotation still has it.
GetLeaked checks git history for secrets before you share the link.
Scaffold tooling that copies your project root into `public/` will serve `.env` at `https://t.co/T3MzxnrrVy` β no exploit, just `curl`. Check your build output for dotfiles before you ship.
GetLeaked catches this in seconds.
Any env var prefixed `NEXT_PUBLIC_` is inlined into the browser bundle at build time. Open `_next/static/chunks/` in DevTools β the value is there verbatim, not a reference. If you've ever put an API key there "temporarily", it shipped.