FIX BY SYMPTOM

API key exposed in your app or GitHub repo?

If a secret key is in your front-end code or Git history, assume it is compromised: rotate it at the provider first, then move the call to a server or Edge Function, then check usage and billing for abuse. Deleting it from the latest commit is not enough. Some keys are designed to be public; secret keys never are. VibePitstop removes exposed keys and gives you a rotation checklist as part of an auth & database security fix.

Public by design vs secret

KeySafe in the browser?
Supabase anon / publishable keyYes, if RLS protects every table
Supabase service role / sb_secret_ keyNever. Bypasses all RLS
Stripe publishable key (pk_)Yes
Stripe secret or restricted key (sk_, rk_)Never
Firebase web configYes, if Security Rules are correct
OpenAI, Anthropic, Resend and similar API keysNever

What to do, in order

  1. Rotate the key at the provider and update it in your host's server-side secrets.
  2. Move the call into an API route or Edge Function that holds the key, and call that from the browser.
  3. Check usage and billing for calls you did not make; set spending limits where the provider offers them.
  4. Prevent repeats: keep .env in .gitignore, never give a secret a VITE_ or NEXT_PUBLIC_ prefix, and turn on GitHub secret scanning and push protection.

Want it fixed instead?

Auth & database security fix (Supabase, Firebase): from $400 (one issue); larger scope quoted up to $800 after diagnosis. The $149 diagnosis is credited toward any paid job.

Common worries, answered

Get a $149 diagnosis See pricing Fix my auth & database security Book the $469 audit

FAQ

Is it enough to delete the key from my code?

No. It remains in Git history, old builds and anyone's copy. Rotation is the fix.

My Supabase anon key is visible. Is that a leak?

No, it is meant to be public. The risk is tables without correct RLS. See how to check.

Can you check my whole app for exposed keys?

Yes. The $469 security audit covers exposed keys and secrets in front-end code, the repo and its history, with a written report.

Related

Check it yourself first, free

$149Get a $149 diagnosis

FREE · LAUNCH-READY CHECKLIST

Before you go: is your app ready for real users?

Get our 40-point launch-ready checklist for AI-built apps: data access, secrets, auth, payments, deploy, email and backups. It opens straight away.

No payment. See our privacy policy.