Lovable、Bolt、Replit、Cursor 和 v0 應用程式上線前的 18 項安全檢查
Security checklist before launching a vibe-coded app: 18 checks for Lovable, Bolt, Replit, Cursor and v0
ProofForge 整理了適用於 Lovable、Bolt、Replit、Cursor 和 v0 應用程式的 18 項上線前安全檢查,涵蓋金鑰與機密資料、資料存取、瀏覽器設定、伺服器邏輯及上線後維護。
Before you launch an app built with Lovable, Bolt, Replit, Cursor or v0, spend 20 minutes on the things that most often go wrong. This list is about what a stranger can see once the app is live.
Keys and secrets
- Search the deployed JavaScript for
sk-,sk_live_,AKIAand Supabase JWTs with"role":"service_role". None should be there. - Make sure only publishable keys (Stripe
pk_, Supabase anon) are in the browser. - Move every secret to a server function or server-side environment variable.
- If a secret was ever pasted into a chat, committed, or shown in a screenshot, rotate it.
Data access
- Supabase: Row Level Security on for every table with user data. No
USING (true)on private tables. - Firebase: no
allow read, write: if true. Rules should check the signed-in user and ownership. - Storage buckets: private by default. Public only where you mean it.
- Test with two accounts. User B must not read user A's rows.
Public files
-
/.env,/.git/HEADand other config files return 404, not contents. - Production source maps are off, or not served publicly.
Browser settings
- HTTPS only, with a redirect from HTTP.
- Security headers: a CSP, HSTS,
frame-ancestorsorX-Frame-Options,X-Content-Type-Options. - CORS limited to your own origins. No wildcard with credentials.
Server logic
- Admin routes check the user's role on the server, not only in the UI.
- Prices and permissions come from the server. A browser that sends the price can send $0.
- Payments are confirmed by webhook, not by a success page.
After launch
- Set spend limits on AI and email APIs.
- Recheck after each significant release. AI tools change code with every prompt, and a clean launch can regress.
A scan from outside covers items 1 to 3, 5 to 6 (signals only), 9 to 13. It cannot cover server logic or logged-in behavior, so items 8 and 14 to 16 need your own testing.
Free read-only checks for a site you own: https://proofforge.live/tools . Builder-specific guides: https://proofforge.live/check . Full free scan: https://proofforge.live
來源:DEV Community · dev.to