Pre-launch security prompts for vibe-coded apps: Supabase RLS, leaked keys and open doors
by PaperChaseWebb
14 prompts that make your coding agent find exposed keys, tables without row level security, open buckets and unverified webhooks in your own app, then fix them one commit at a time.
- Price
- $19
- Difficulty
- Beginner
- Setup
- 15 min
- Format
- .md file
pre-launch-security-prompts-for-vibe-coded-apps.md · 17 KB · instant download after checkout
Want this built for you instead? We can build it for you.
What you end up with
Before launch you know which tables, keys, buckets and routes an outsider could reach, and each one is fixed, verified from the outside and logged.
What you get
- 14 prompts in one .md file, in the order to run them
- Audit-mode house rules so the agent reads and reports before it edits
- SQL to list tables without RLS and a correct owner-only policy example
- An outside test with the public key, and a prompt to turn it into a repeatable script
- Firebase rules section, one-page checklist and a key rotation log
Who it is for
Anyone about to put an app built with an AI coding tool in front of real users, especially on Supabase or Firebase, who has never checked what the public key in their front end can actually read.
Works with
Solid chips: the agent is named in this listing's own tools list. Dashed chip: Plain Markdown, so it also pastes into other agents such as Grok Bot, Hermes, OpenClaw or Muse. We list those as compatible by format only, not as tested.
Tools needed
Cost to run: Uses the AI coding tool you already pay for. The secret scanners mentioned are free and open source.
Time to result: One focused evening for a small app
Sample prompts, free to use
Do not edit any files. Search the repository (including config files, scripts, seed files, tests and docs, excluding node_modules and build output) for: - API keys, tokens, passwords, private keys and connection strings, including ones that look like test values - Supabase service role or secret keys (often named SERVICE_ROLE, SUPABASE_SECRET or starting with sb_secret_) - Model provider keys, Stripe secret keys (sk_live_, sk_test_, rk_) and webhook secrets (whsec_) - Any .env file that is committed, and whether .gitignore covers .env and .env.local For each hit: file, line, first 4 characters, what the key can do if leaked, and whether it is meant to be public. Then list every environment variable the app reads and say whether it is exposed to the browser. Treat any variable prefixed NEXT_PUBLIC_, VITE_, PUBLIC_, EXPO_PUBLIC_ or REACT_APP_ as public.
The Supabase anon or publishable key is meant to be public. It is only safe when every exposed table has RLS on. The service role or secret key must never reach the browser.
Do not edit any files.
Here is every table with its row level security status: [paste results of: select schemaname, tablename, rowsecurity from pg_tables where schemaname in ('public', 'storage');].
Here are the Security Advisor findings: [paste].
For each table in the public schema: is RLS enabled, which policies exist, who should be able to select, insert, update and delete rows based on how the app uses it, and the severity if it stays as it is.
Rank the tables by risk.Run the query in the Supabase SQL editor yourself. The agent ranks and explains; you stay the one with database access.
Free preview of the file
# Pre-launch security prompts for vibe-coded apps: Supabase RLS, leaked keys and open doors PaperChase prompt pack, version 1.0. 14 prompts for Cursor, Claude Code, Codex, Windsurf, Bolt, Lovable or Replit, plus checklists you run yourself. Time: one focused evening. ## Why this pack exists Public scans of apps from launch directories keep finding the same handful of problems: database tables readable by anyone who opens the browser console, secret keys bundled into front-end JavaScript, open storage buckets and payment webhooks that accept any request. None of these need an attacker with skill. They need someone curious with DevTools. These prompts make your coding agent look for those problems in your own code, explain what it found in plain language and propose the smallest fix. You stay in charge of every change. ## How to use this pack 1. Commit or back up first. Run the audit prompts in ask, plan or chat mode so the agent reads before it writes. 2. Run the prompts in order. Prompts 1 to 4 find secrets, 5 to 9 cover the database and storage, 10 to 14 cover the rest of the app. 3. Replace everything in [square brackets]. 4. Fix one finding per commit. Re-run the matching prompt after each fix. 5. Only test against apps, projects and accounts you own or are authorized to test. ## Contents 1. Map the attack surface before touching anything 2. Find secrets in the code and config 3. Find secrets in the built front-end bundle 4. Find secrets in git history, and plan the rotation 5. List every table and whether RLS is on 6. Write RLS policies for one table 7. Test RLS from the outside with the public key 8. Views, functions and RPC that skip RLS 9. Storage buckets and file access 10. Auth and route protection 11. Payment webhooks and server-side prices 12. AI model keys, rate limits and spend caps 13. Headers, CORS and error messages 14. Final pre-launch pass and a report you can keep Bonus: a one-page checklist, a key rotation log and a Firebase rules section.
Worth knowing
- Catches common, well-known mistakes. It is not a penetration test or a professional security audit.
- Agents can be confidently wrong. Verify each finding and test after every fix.
- Only test apps, projects and accounts you own or are authorized to test.
Questions
I do not use Supabase. Is it still useful?
Yes. Ten of the 14 prompts cover secrets, routes, storage, webhooks, model keys and headers for any stack, and there is a Firebase rules section. Prompts 5 to 8 are Supabase and Postgres specific.
Will the agent change my code without asking?
The house rules at the top put it in audit mode: it reports findings with file and line and waits for you to say which fix to apply. Run it in ask or plan mode for the first pass.
Details
Version 1.0 · Updated Oct 15, 2026 · Markdown version of this page
License: Personal and commercial use by the buyer. No resale, redistribution or republishing as a competing pack. See Downloads in the terms. Download terms
Related

App Launch Check: a launch review for apps built with AI
Send a repo URL and get a scored report on deploy, domain, payments, legal pages, security basics and AI code mistakes, with a fix list in priority order.

AGENTS.md, CLAUDE.md and Cursor rules starter files
Six fill-in instruction files for coding agents (base, Next.js plus Supabase, FastAPI, browser game, CLAUDE.md pointer, scoped Cursor rules) and 8 prompts to write, trim and test your own.

Debug a vibe-coded app without breaking it further
12 prompts that make your AI coding tool find the real cause of a bug, change one thing at a time and prove the fix before it moves on.