Blog

A Supabase project with row security and a REST check

Create a Supabase project from the dashboard, add a table with row level security and a read policy, check the REST API with the publishable key, and learn what the panel's own Supabase projects need.

A Supabase project with row security and a REST check

2026-11-29

Create the project

  1. Open the organization and press New project. Type a name and press Generate a password. Supabase makes the database password; do not write it in a file.
  2. Choose a region close to your users, then Create new project. Wait until the status says Healthy.

A table with row security

  1. Open the SQL editor. Run: create table public.probe (id int primary key, note text);
  2. Turn on row level security: alter table public.probe enable row level security;
  3. Add a read policy for the public role: create policy read_probe on public.probe for select to anon using (true);
  4. Insert one row and select it back in the editor.

Check the REST API

  1. Open Project settings and then API keys. The publishable key is for browsers. Never put the secret key in a page.
  2. GET /rest/v1/probe with the apikey header returns 200 and the row.
  3. POST /rest/v1/probe with the same key returns 401 and code 42501 when no insert policy exists. That is row security working.

The panel's own Supabase projects

The panel can create a Supabase-compatible project for a domain that has no app. The keys are shown once. The project needs Docker on the server, so start Docker for the account first. If a create fails, the audit log shows the result and the reason.

Data bridges

The Data bridges page connects Turso, Upstash Redis, Airtable, Neon Postgres, Firestore and Google Sheets. Each needs a secret that the owner types once. Supabase is not in that list. Use the Supabase REST API from a Worker or a Pages Function instead.

All posts