Row Level Security determines whether a demo leaks all user data or shows a blank screen on login, so it should be the first thing you handle when building in half a day.

Key Takeaways

  • Supabase integrates Postgres, Auth, and Edge Functions in a single project, letting you build a demo with login functionality in one afternoon.
  • There are two ways RLS can ruin a demo: enabling it without writing policies, so the API returns nothing; or forgetting to enable it, so any role with grants on the table can read and write.
  • Free tier projects are paused after 1 week of inactivity, so remember to restore the project before your next client meeting.

One missing line of SQL can expose all your users' data in a demo, or show a blank screen the moment a client logs in to try it. On Supabase, both outcomes trace back to the same place: Row Level Security (RLS).

That's why this article treats Supabase as a working tool for the Forward Deployed Engineer (FDE), not just a convenient choice for side projects. When a client asks, "Can you show us something this afternoon?", you need a backend: with login, a real database, and a bit of server-side logic. And you need to make sure user A can't see user B's data.

Why One Afternoon Is Enough

Supabase describes itself as a Postgres-based development platform. Every project comes with its own Postgres database, usable for web, mobile, or AI applications. The team says they are reimplementing Firebase's features with enterprise-grade open source tools, released under the Apache-2.0 license.

Under the hood is PostgreSQL. This database traces its origins back to 1986 and has been ACID-compliant since 2001. When the demo turns into a pilot, the client's engineers won't have to learn an unfamiliar database.

For an FDE, the most valuable point is this: Auth uses the project's own Postgres database. User records live in a separate schema, right next to your business data.

Auth supports multiple methods, including social login and phone login via third-party providers. Keeping users and data in one place means one fewer system to integrate.

Example: Drivers Can Only See Their Own Delivery Orders

Suppose the client is a delivery company. They want each driver, after logging in, to see only the delivery orders assigned to them. The core of the demo needs just one table and one policy:

create table deliveries (
  id bigint generated always as identity primary key,
  driver_id uuid not null references auth.users(id),
  address text not null,
  status text not null default 'pending'
);

alter table deliveries enable row level security;

create policy "driver sees own deliveries"
  on deliveries for select
  using (auth.uid() = driver_id);

According to the Supabase docs, the login token works with RLS policies to restrict database access down to individual rows. When a driver makes a request with their own token, they only get

driver_id

the rows that match them. No additional permission layer needs to be written in the frontend.

Next, the client wants estimated delivery times. Edge Functions are server-side TypeScript functions that run distributed across global edge nodes, closer to users. They run on Deno, an open source runtime with built-in TypeScript support:

Deno.serve(async (req) => {
  const { stops } = await req.json();
  const minutes = stops.length * 12; // 演示假设:每个站点 12 分钟
  return new Response(JSON.stringify({ eta_minutes: minutes }), {
    headers: { "Content-Type": "application/json" },
  });
});

Functions can be deployed via the Dashboard, CLI, or MCP. In the terminal, just run

supabase functions deploy eta

The formula is deliberately simple: at a first meeting, the client cares more about seeing the whole flow work end to end than about a clever algorithm.

Two Ways RLS Can Ruin a Demo

The milder failure is enabling RLS but forgetting to write policies. The Supabase docs are explicit: once RLS is enabled, the API returns no data for the publishable key until policies are created. In the example above, remove the

create policy

statement, and the driver logs in successfully but sees 0 delivery orders, leaving the client to think the system is broken.

The more serious failure is forgetting to enable RLS. For a table in an exposed schema without RLS enabled, any role with grants on that table can read and write it. If the demo runs on the client's real data, that's a security incident, not a display issue.

So this final check is mandatory. Create two test accounts, assign each a few delivery orders, then log in with each account in turn. Each account must see exactly its own subset: no more, no less.

What Can the Free Tier Do?

The Free tier includes a 500 MB database running on shared CPUs with 500 MB of memory, and supports 50,000 monthly active users. That's more than enough for a demo. The limits that really matter lie elsewhere.

Free projects are paused after 1 week of inactivity, and each account can have at most 2 active projects. Suppose you build the demo on Monday and the follow-up meeting is ten days later: by then the project has been paused. Restore the project the day before the meeting; when the demo moves into a pilot, upgrade to the paid Pro tier.

Also remember that Edge Functions are written in TypeScript. If the client's existing logic is in another language, you'll need to port it to TypeScript or run that part elsewhere. Ask about this during the requirements discovery phase.

What to Learn First

Start with SQL and how to write RLS policies, because most of a demo's risk lives there. Then learn the CLI. It can run Supabase services locally, manage hosted projects from the terminal, and supports migrations and declarative schemas, letting you rebuild the entire demo inside the client's own project.

If you're aiming for an FDE role, turn the delivery exercise above into a portfolio project. Don't just write "familiar with Supabase" on your resume; state the outcome: you built a demo with login, row-level access control via RLS, and server-side functions, and note how long it took.

Clients won't remember which tools you used. What they'll remember is: two drivers logging in side by side, each seeing only their own delivery orders.

Was this article helpful?

Thanks for your feedback!

Next on the roadmap · Phase 1: Foundational Awareness Migrating a client repo from Black to Ruff without a thousand-line PR Astral reports Ruff is over 99.9% Black-format compatible, with diffs small enough for client teams to actually review.