PeekLok

Can strangers sign up to my app if I hid the sign-up page? A Supabase check for Lovable and Bolt apps

Short answer: yes, unless sign-ups are switched off. Supabase's docs show that a new account can be created with one request to your project's /auth/v1/signup address, using only your public key, and that key is in your page code. Removing the sign-up button or page doesn't close that door. Only the sign-up setting does. That matters because many apps' database rules only ask “is this person signed in?”, so an account anyone can create may unlock data meant for your real users. Here are four checks.

Free scan: check my app Just your web address. Results in seconds. No signup, no card.

This guide is for Lovable and Bolt apps that use Supabase for login, either your own Supabase project or the builder's built-in backend. Lovable's built-in backend has its own Users settings, Bolt's has Authentication settings, and projects connected to your own Supabase project use the Supabase dashboard. It's common for an internal tool, a client portal or an app still in testing to have no public sign-up page, which is exactly when this is easy to miss.

1. Check whether new sign-ups are allowed

Supabase's docs list a setting called Allow new users to sign up: “If this config is disabled, only existing users can sign in.” Supabase's own password guide shows sign-up as a plain web request with just the apikey header, and its API keys guide says the publishable (anon) key is meant to be public. So if this setting is on, anyone who opens your site can create an account, with or without a sign-up page.

If your app is meant to be open to the public, keep sign-ups on. Then the important part is check 3: make sure being signed in isn't enough to see other people's data.

2. Keep email confirmation on for a live app

Supabase's docs say that on hosted Supabase projects, users must verify their email to sign in by default. Turning Confirm Email off “assumes that the user's email does not need to be verified in order to sign in and implicitly confirms the user's email in the database.” In Lovable's built-in backend the matching setting is Auto-confirm email, under More → Users → Settings → Email. Lovable's docs say it makes testing easier, but “without confirmation, anyone can sign up with an address they don't own.” In Bolt, the Email settings include “Require users to confirm their email after signing up.”

AI builders sometimes switch confirmation off to make testing smoother. Before launch, check it's back on, especially if any of your rules or code trust a user's email address.

3. Find rules that let any signed-in user see everything

Supabase's Security Advisor docs describe a common mistake: a policy such as for select to authenticated using (true) “allows ANY authenticated user to read ALL rows, including other users' sensitive information.” The Advisor's RLS Policy Always True warning flags always-true rules for adding, changing and deleting rows, but Supabase's lint code skips read rules that use using (true), because those are often meant to be public. So for reads, check yourself. In the SQL Editor, run this read-only query:

select tablename, policyname, cmd, roles, qual, with_check
from pg_policies
where schemaname = 'public'
  and roles && array['authenticated', 'public']::name[]
  and (qual = 'true' or with_check = 'true');

Each row is a rule where being signed in (or being anyone at all, for public) is enough. That's fine for a product list or blog posts. For tables with customers, orders, messages or anything personal, the rule should compare the row's owner with auth.uid() instead. If you can't tell, test it: sign up a fresh account with nothing in it and see what it can load. Our two-user check for Lovable apps walks through the same idea.

4. Check anonymous sign-ins

Supabase can let visitors use an app without an account (Lovable calls the setting Enable anonymous users). Supabase's docs warn: “Anonymous users use the authenticated role.” So every rule written for authenticated also applies to them, unless it checks the is_anonymous claim in the user's token. The Security Advisor shows an “Anonymous sign-ins enabled” notice (lint 0012) when this is on. If your app doesn't need guest access, leave it off. If it does, Supabase's docs show a restrictive policy that blocks anonymous users from the actions only real accounts should do.

Fix prompt to paste into the Lovable or Bolt chat

Review who can create an account in my app and what a new account can see. Tell me whether new sign-ups are allowed, whether email confirmation is required, and whether anonymous sign-ins are on. This app should [only allow users I invite / allow anyone to sign up] — set the sign-up setting to match, keep email confirmation on, and turn anonymous sign-ins off unless a feature needs them. Then list every RLS policy in the public schema that applies to authenticated or public and uses true as its condition. For each one on a table with user or customer data, replace it with a policy that only lets users reach rows where the owner column equals auth.uid(). Leave tables that are meant to be public, like a product list, as they are, but tell me which ones you left. Show me a table of every setting and policy you changed.

After the AI makes changes, sign up a brand-new test account (if sign-ups are still meant to be open) and check it sees only its own data. Then run the query in check 3 again. AI fixes can look right and still miss a table.

What PeekLok's scan checks

PeekLok doesn't check your sign-up or email confirmation settings, and it doesn't create accounts. The quick check reads your page code for secret keys and Supabase keys and checks five security headers. The deeper check, after you prove the app is yours, tries to read your Supabase tables with the public key and, with two test logins (Supabase login), checks whether one user can read the other's row in a table you pick. For sign-up settings, use the checks above.

Sources

Related

Get a free scan

PeekLok’s quick check needs just your web address: it looks for secret keys and Supabase keys in your page code and checks five security headers. The deeper check, after you place a short ownership token, also looks for Supabase tables anyone can read with the public key and, with two test logins (Supabase login), whether one user can see the other’s data. It doesn’t check your sign-up settings, so use the steps above for those. Only scan apps you own. First scan free. Weekly re-checks will be $12 US a month once payments open.

Start my free scan