{"slug": "bolt-and-replit-app-security-6-things-to-check-on-your-live-deployment", "title": "Bolt and Replit app security: 6 things to check on your live deployment", "summary": "A security checklist for Bolt and Replit deployments identifies six recurring mistakes in live apps: secrets exposed in client bundles via VITE_ or NEXT_PUBLIC_ prefixes, .env files served publicly or committed to git history, Supabase tables without Row Level Security, public storage buckets, leftover debug routes with verbose errors, and production source maps. The guidance recommends revoking leaked keys first, then closing database and storage access, and is paired with ProofForge, a read-only external scanner that generates fix prompts for pasting back into Bolt or Replit.", "body_md": "Bolt and Replit apps ship fast, and the same few mistakes show up again and again. Here is what to check on a live deployment, and how to fix each one.\n\n**1. Secrets in the client bundle**\n\nAnything prefixed for the browser (for example `VITE_` or `NEXT_PUBLIC_`) is public. Do not put a `service_role` key, a Stripe secret or an AI provider key there. If one is already live, revoke it first, then move the call to a server function.\n\n**2. Replit and Bolt environment files**\n\nCheck that `.env` is not served at your domain, and that it is in `.gitignore` before the first commit. A key committed once stays in history even after you delete the file, so rotate it.\n\n**3. Open database tables**\n\nIf the app uses Supabase, turn on Row Level Security and write per-operation policies. Test signed out and as a second user.\n\n**4. Public storage buckets**\n\nUploads, invoices and avatars often sit in a public bucket. Make private buckets private and use signed URLs.\n\n**5. Debug routes and verbose errors**\n\nRemove test endpoints and turn off stack traces in production.\n\n**6. Source maps**\n\nDisable production source maps unless you want your source public.\n\n**Fix order**\n\nRevoke leaked keys, then close the database, then storage, then the rest. Rotating a key is more urgent than a code cleanup.\n\nProofForge scans your live URL from the outside, read-only and without logging in, and writes fix prompts you can paste back into Bolt or Replit. Free first scan: [https://proofforge.live/check/bolt](https://proofforge.live/check/bolt)", "url": "https://wpnews.pro/news/bolt-and-replit-app-security-6-things-to-check-on-your-live-deployment", "canonical_source": "https://dev.to/proofforge_live/bolt-and-replit-app-security-6-things-to-check-on-your-live-deployment-16ln", "published_at": "2026-11-26 16:39:30+00:00", "updated_at": "2026-11-26 16:45:20.807593+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools"], "entities": ["Bolt", "Replit", "Supabase", "Stripe", "ProofForge"], "also_reported_by": [], "takeaway": "Browser-prefixed variables like VITE_ and NEXT_PUBLIC_ are public, so keep service_role, Stripe and AI provider keys in server functions and revoke any key already shipped in a client bundle.", "recommendation": {"advice": "Revoke any key exposed in a client bundle or git history before code cleanup, then enable Supabase Row Level Security, make storage buckets private with signed URLs, and disable production source maps.", "playbook": "agent-security", "playbook_url": "https://wpnews.pro/playbooks/agent-security"}, "alternates": {"html": "https://wpnews.pro/news/bolt-and-replit-app-security-6-things-to-check-on-your-live-deployment", "markdown": "https://wpnews.pro/news/bolt-and-replit-app-security-6-things-to-check-on-your-live-deployment.md", "text": "https://wpnews.pro/news/bolt-and-replit-app-security-6-things-to-check-on-your-live-deployment.txt", "jsonld": "https://wpnews.pro/news/bolt-and-replit-app-security-6-things-to-check-on-your-live-deployment.jsonld"}}