Home / Security checklist
Before real users: security checklist
19 checks to run before you share a vibe-coded app with strangers. Each one links to the official docs. Plan on about an afternoon, not a sprint.
Updated 2026-11-30
Secrets and keys
- Your Supabase secret/service_role key, Stripe secret key, and LLM API keys belong in server-side environment variables, never in front-end code or a public repo. Search your built JavaScript for "sk_" and "service_role" before launch. Supabase API keys ↗ · Stripe API keys ↗
- If a key was pasted into a chat, committed to git, or stored with a host that later reports an incident, rotate it, then check that provider's usage page for spend you didn't make. (Railway asked customers to rotate secrets after its Oct 21, 2026 incident. Its final report, Nov 10, says attackers were after AI provider keys, and Railway offered to cover unrefunded unauthorized AI token spend; its claim window closed Nov 18, 2026.) Railway final incident report ↗ · Railway compensation bulletin ↗
- GitHub can block a push that contains a known secret format before it ever reaches the repo. Detectors keep growing: since Nov 12, 2026 that includes Cloudflare Access service tokens. Since Nov 17, 2026 Copilot code review (public preview, paid Copilot plans) can also flag exposed secrets in a pull request before it merges; neither replaces rotating a key that already leaked. GitHub: Copilot code review secret detection ↗ · GitHub: Cloudflare token detector ↗ · GitHub push protection ↗
Data access
- With Supabase, the browser talks to your database directly. Without RLS policies, anyone with your public key can read or change every row. AI app builders usually add policies; check each table anyway. Supabase RLS ↗
- Since Oct 30, 2026, new tables in a Supabase project's public schema are not reachable through the Data API (supabase-js) until you run a GRANT; requests fail with "permission denied" (42501). Enable RLS on the table first, then grant only the roles that need it (often just authenticated, not anon). Existing tables keep their grants. Supabase changelog ↗
- Apps published from AI builders usually get their own hostname (yourapp.builder-domain), and every hostname that is ever opened can show up in passive DNS databases that anyone can search. In Nov 2026 researchers listed 43,551 app addresses published from Grok's app builder this way; 94.7% of those still online opened without sign-in, and some held staff lists and patient data (Grok's official account says this was the grok.com app builder, not Grok Build). Lovable, Replit, Base44, v0 and Bolt publish to hostnames too. For any app with real data, set access to invited users or require sign-in, and check that "Sign in with Google" doesn't let any Google account in. Claroc research ↗ · Engadget report ↗
- Sign up as user B and try to open user A's records by changing IDs in the URL or API calls. If you can see them, the policy is wrong.
- Supabase Pro ($25/mo) includes daily backups kept for 7 days. Before real users, know where backups live and how to restore one. Supabase pricing ↗
Auth and payments
- Only allow your real domains (and localhost while developing) as sign-in and password-reset redirect targets. Test reset and email confirmation end to end. Supabase redirect URLs ↗
- Grant access only from a webhook whose signature you verified on the server, never from a success-page redirect. Make the handler safe to run twice. Stripe webhooks ↗
Cost and abuse
- Limit requests per user and per IP, cap tokens per request, and require sign-in for expensive endpoints. One script can burn a month of credits overnight.
- Set budgets or hard caps wherever your hosts and model providers offer them. On Vercel you can set an On-Demand budget from the CLI and pause projects at 100%, and since Nov 16, 2026 set a budget on a single project that pauses only that project's production deployments (vercel billing budgets set --project my-app --amount 100 --pause). On Cloudflare (since Nov 13, 2026) you can cap Workers and Durable Objects spend or get email alerts only; a hard cap can stop every Worker on the account. Also check who can add paid seats: on Vercel Pro with Auto Approval on, anyone who pushes to a connected private repo is added as a $20/month Developer seat with no confirmation (Settings > Members > "Automatically add private repository committers as Developers"). Vercel spend management ↗ · Vercel project budgets ↗ · Cloudflare spending limits ↗ · Vercel Pro seats ↗
Code and agents
- Get told when a package you depend on has a known vulnerability. On a public repo you can also run GitHub's AI Scan (public preview since Oct 28, 2026) across the whole codebase; it bills Code Security AI credits and doesn't support private repos on personal accounts. If a public repo uses the pull_request_target trigger, GitHub blocks it by default from Dec 2, 2026; check your workflows now. pull_request_target change ↗ · Dependabot alerts ↗ · GitHub AI Scan ↗
- Run agents with permission prompts or a sandbox, don't hand them production secrets, and update often: Claude Code 2.1.309 (Oct 2026) fixed several sandbox and permission-check gaps, and 2.1.311+ adds a permissions.blockWritesOutsideWorkingDirectories setting that stops file edits outside your project. 2.1.319 (Nov 5, 2026) fixed a Bash permission bypass and a worktree sandbox escape, and adds permissions.denyInsteadOfPrompting for unattended runs. 2.1.321 (Nov 9) fixed a read-only Bash command running outside the sandbox without a prompt, and 2.1.325 (Nov 13) fixed a security issue in response decoding. Since 2.1.332 (Nov 24, 2026) Claude Code also loads skills shipped by MCP servers (beta), and a skill can run inline shell commands as it loads: connect only MCP servers you trust, and use the PreSkillShellCommand hook to refuse those commands if you want a hard stop. Claude Code changelog ↗
- Tools like OpenCode Browse (Nov 2026) and Claude in Chrome let an agent use your real, signed-in browser. Use a separate browser profile without your admin, banking or production logins, set a site allowlist before the first run, and keep logins, 2FA and payments as hand-offs to you. A page the agent visits can try to steer it (prompt injection). OpenCode Browse ↗
- You can't fix what you don't see. Sentry's free Developer plan covers 1 user and 5k errors/month, enough for a first launch. Sentry pricing ↗
- Ten common web app risks, each with plain examples. Ask your coding agent to review your app against it. OWASP Top 10 ↗
- Don't hand a coding agent, MCP server or CI job your personal all-access token. Create one per job with only the access it needs, and keep production write access out of anything that only does preview work. Supabase now enforces this for branching: since Nov 12, 2026, merging a branch into your main project needs a token with Production Branches: Read-write, so a development-only token can create, push and reset preview branches but gets a permission error if an agent tries to merge into production. When you add an MCP server to Claude Code, pipe its JSON in with claude mcp add-json <name> - (2.1.327, Nov 17, 2026) so tokens stay out of your shell history. Supabase: branch merge needs production write ↗ · Claude Code changelog ↗
- Turn on branch protection for your default branch: require a pull request and passing checks before anything merges, so no agent pushes straight to production. Agents now go further than writing code: Claude Ship (beta, Nov 23, 2026) has PR Steward fix failing checks and review feedback, and Claude Approvals can approve routine PRs under a policy file in your repo. If you let an agent approve, start its policy in observe-only mode, keep human sign-off for auth, payments, migrations and secrets, and use /ship in Claude Code only on changes you would have merged yourself. GitHub: protected branches ↗ · Introducing Claude Ship ↗
Checkboxes are just for you; nothing is saved or sent.
Where this fits
Every recipe has a "~100 users" stage; this checklist is the gate before it. Picking a coding agent to do the fixes? See the AI coding tool picker.
FAQ
Is my Supabase anon or publishable key safe to expose? #
Yes, it is designed to be public, but only if Row Level Security is enabled with correct policies on every table in your exposed schemas. The secret or service_role key must never reach the browser.
What should I check before launching a vibe-coded app? #
Keep secret keys server-side and rotate any that leaked, enable Row Level Security and test it with a second account, verify Stripe webhook signatures, rate-limit LLM endpoints and set spend limits, lock auth redirect URLs, and add error monitoring and dependency alerts.
Why does Supabase say "permission denied for table" on a new table? #
Since Oct 30, 2026, Supabase no longer exposes new public-schema tables to the Data API automatically. Enable Row Level Security, then GRANT the needed privileges (for example SELECT to authenticated) on that table. The error hint shows the exact GRANT.
Is an "anyone with the link" app URL private? #
No. A published app with its own hostname gets looked up in DNS the first time anyone opens it, and passive DNS services record and index those names, so people who were never sent the link can find it. That is how researchers found more than 35,000 open apps published from Grok's app builder in Nov 2026. Put anything with real data behind sign-in or an invite list, and treat secret links as a convenience, not access control.
Do I need a security audit before my first users? #
For most small launches, no. Work through this checklist first. Consider a paid review once you store sensitive data (health, financial, children's data) or sign business customers who ask for one.