跳到正文
DEV Community· ProofForge·· 5 小時前AI 評分60

Lovable 應用程式購買指南:買家可做的 Supabase 檢查及須向賣家索取的資料

Buying a Lovable-built app: the Supabase checks a buyer can run, and what only the seller can show

AI 導讀

ProofForge 整理了一份購買 Lovable 製作的應用程式時的 Supabase 核查指南,分列買家可自行檢查的項目及須向賣家索取的資料。買家可檢查瀏覽器資源中的 Supabase URL、anon key、疑似密鑰和回應標頭;RLS 政策、登出讀取與雙帳戶測試,以及 service_role key 的使用方式則要由賣家提供或協助核實。

正文

ProofForge

Lovable apps are fast to build and popular on marketplaces. Most use Supabase for the database and login. That gives a buyer a short, specific list of things to check. This guide covers what you can see from outside and what to ask the seller.

What you can check yourself, from outside

Only scan or test an app you own or have permission to test. For a listing you do not own, start with what any visitor already receives, and ask the seller for permission before anything deeper.

  1. Find the Supabase URL and key in the bundle. Open the site, DevTools, Network, JS. Look for a *.supabase.co URL and a long eyJ... key. Decode the middle section. "role":"anon" is expected. "role":"service_role" is a serious problem.
  2. Check for secret-shaped strings. Prefixes like sk-, sk_live_ and AKIA should not be in browser code.
  3. Check /.env, /.git/HEAD and source maps. A real file is a leak. An HTML fallback page is not.
  4. Look at response headers. Missing CSP and framing headers are low severity but easy to fix.

What only the seller can show you

The anon key is only safe when Row Level Security (RLS) is correct. A buyer cannot confirm that from outside without the seller's help. Ask for:

  • A list of tables with RLS on, and the policies for each operation (select, insert, update, delete).
  • A signed-out read test and a two-account test: user B must not read user A's rows.
  • Which Edge Functions use the service_role key, and where that key is stored.
  • Whether the database was ever public. If it was, ask what was in it and whether users were told.
  • Storage buckets: which are public, and whether any hold personal files.

Ownership items that matter as much as security

  • Supabase project ownership transfer, not a shared login.
  • Domain, hosting, GitHub repo, payment account, email sender and analytics, each with written transfer steps.
  • A full key rotation at handover, written into the agreement. Never paste a live key into a contract.

What a clean check does and does not mean

A clean public check is evidence about the requests that ran. It does not cover server code, logged-in behavior, or account transferability. Treat it as a way to ask better questions.

Platform page with the checks for Lovable apps: https://proofforge.live/check/lovable
Buyer checklist: https://proofforge.live/checklist/before-you-buy-an-ai-built-app
Buying on a marketplace: https://proofforge.live/due-diligence

來源:DEV Community · dev.to