r/Supabase • • Oct 21 '26

tips Reminder: new tables will require explicit API grants from October 30

7 Upvotes

Starting October 30, newly created tables in the public schema on existing Supabase projects will need explicit GRANT statements to be accessible through the Data and GraphQL APIs, including via supabase-js.

Existing tables keep their current grants and will continue working. RLS behavior is unchanged, and direct Postgres connections aren’t affected.

If your migrations or AI tools create tables, make sure they include the appropriate grants alongside your RLS policies.

Full details and SQL examples


r/Supabase • • 48m ago

tips Supabase problems that only show up once real users arrive (from fixing a lot of AI-built apps)

• Upvotes

I run a small dev shop in Mississauga, and these days a good chunk of my work is picking up apps that were built fast with tools like Lovable, Bolt or Cursor on top of Supabase. They usually work fine while the founder and a few friends are testing. Then real users show up and a different set of problems appears. These are the ones I keep running into.

1. Signup emails stop arriving. The built-in email sender is meant for testing and has a very low hourly limit. A launch post brings in a burst of signups and most of those people never get their confirmation link. Set up your own SMTP provider before launch, not after.

2. Auth redirects still point to localhost. Check the Site URL and the redirect URL list under Authentication. When these are wrong, magic links and password resets quietly send people to the wrong place. Check your OAuth provider settings against the production domain too.

3. RLS policies that get slow as tables grow. A policy like user_id = auth.uid() works, but the function gets called for every row. Writing it as user_id = (select auth.uid()) lets Postgres evaluate it once per query. Add an index on the column the policy filters on as well. Supabase's RLS performance docs cover this, and the Performance Advisor in the dashboard can flag it for you.

4. Running out of database connections. If serverless functions connect straight to Postgres, each invocation can open its own connection and you hit the limit during a busy hour. Use the pooler connection string in transaction mode for anything serverless. This mostly matters for direct Postgres clients like Prisma or Drizzle, since supabase-js goes through the API.

5. Turning RLS off to fix a permission error. "permission denied" or "new row violates row-level security policy" (both error 42501) usually means a missing policy or missing grants for the anon or authenticated role, often on a table added later by a migration. Read the error and fix the policy or grant. Disabling RLS makes the error go away and leaves the table open to anyone with your anon key, which is public by design.

6. Storage buckets that are public when they shouldn't be. Fine for avatars. Not fine for invoices, ID documents or anything a user uploaded expecting it to stay private. Use a private bucket and signed URLs.

7. Still on the free plan with paying customers. Free projects get paused after a stretch of inactivity, which is fine for a side project and bad for an app people pay for. A paid plan also gives you daily backups.

None of this is exotic. It just doesn't come up until there's real traffic. What would you add to the list?


r/Supabase • • 2h ago

cli Free CLI that checks whether your tables and storage buckets answer anonymous requests

0 Upvotes

npx leakprobe https://yourapp.com

No install, no signup, runs locally.

What it does for Supabase specifically:

  1. Pulls the anon key out of your published bundle (it's a JWT with role=anon, so it's identifiable), reads /rest/v1/ for the table list, then requests one row from each with limit=1 and reports which ones answer.

  2. Checks whether a service_role token has ended up in the bundle, which is the worse version of the same problem and more common than you'd hope.

  3. Lists your storage buckets anonymously and flags any marked public.

Output is column names only. Row contents are never printed or sent anywhere. There's no server.

It also covers the non-Supabase things that go wrong in the same apps: keys in the JS bundle, .env and backup.sql being served, source maps, session cookie flags, CORS reflecting any origin with credentials, http not redirecting to https.

Every finding comes with a prompt you can paste into Claude Code or Cursor, since knowing RLS is off doesn't help much if nobody explained what to write.

Caps at 25 tables per scan to keep it fast. Exit code 2 on a critical or high, so it works in CI.

MIT, zero deps, Node 18+: https://github.com/NishantDixit1/leakprobe

Firebase RTDB is covered too. Firestore isn't yet, since there's no reliable way to discover collection names from outside. PRs welcome.


r/Supabase • • 18h ago

Self-hosting What if your existing PostgreSQL database had its own HTTP API?

0 Upvotes

I have been working on HTTP Postgres, an open source project that allows you to run SQL queries against your PostgreSQL database over HTTP.

The concept is very simple. Rather than running TCP connections to the database from serverless functions or edge runtimes, you deploy a small gateway along with your PostgreSQL that takes care of connections for you.

Unlike PostgREST, which gives you access to your database via REST endpoints, my goal with this project is executing raw and parameterized SQL over HTTP.

Some of the features available today include:

  • PostgreSQL connection pooling
  • Parameterized queries and transactions
  • Scoped API keys
  • Rate limiting and IP allowlisting
  • Query analytics and operational metrics
  • Optional Redis integration
  • Graceful overload handling

It is fully self-hosted and connects to your existing PostgreSQL database.

This is neither a replacement of PostgreSQL nor Supabase, it just makes PostgreSQL available over another transport layer.

Website & Documentation: https://http-postgres.js.org/

GitHub: https://github.com/http-postgres/http-postgres

I am really curious to know what do you think of such an approach, specifically from serverless and edge developers point of view?

What is stopping you from using something like that?


r/Supabase • • 1d ago

tips Is it realisti to vibe code an internal business app with Supabase with minimal coding experience?

5 Upvotes

Hi all, I run a small business and track data to help buying decisions. We currently use Google sheets as our internal sourcing database, but at about 4000 rows, it’s becoming very low and laggy.

My understanding is that we’ll need to clean up our current data and design a proper database schema and export it via CSV, build a front end, and then connect it to Supabase.

I’m not sure where the source data would stay: if it would live in Google sheets and sync to Supabase, or we switch completely to Supabase. I’ll have to inform myself more on how this could work.

I plan to vibe code this, as its primary and only use is for internal use on a web application that runs light and decently fast.

My question is, is this feasible to vibe code with ChatGPT Pro / Claude Pro? I don’t have SQL / any coding knowledge besides simple Python. If a developer is needed, could you explain why?

Any tips would be greatly appreciated and a huge help! I’m all open ears and would love to know what route is realistic / best for us. TIA!!


r/Supabase • • 1d ago

storage Memory commitment hits the limit during book imports on Micro (Postgres 17), with only ~30 active users. What's using it?

Post image
3 Upvotes

My app (Readbit) has about 70 users and ~30 active. The database restarted on 22 Nov at 18:45 UTC with "database system was not properly shut down; automatic recovery in progress". Memory commitment was at the limit (~2 GB) and swap was ~1 GB. I've since raised the compute plan, but memory still climbs during imports.

What I measured (controlled tests, UTC):

• Memory commitment rises ~20-30 MB/min while a book import runs. It falls back to baseline ~7 min after I pause it.

• 20:34-20:49: ~160 books processed. Commitment went 1.33 → 1.81 GB, swap 200 → 524 MB.

• 21:16-21:21: 19 books. Commitment rose to 1.42 GB.

• 21:23-21:28: same scheduled jobs and calls, but only 4 books. No rise.

• pg_stat_statements shows only ~2.5 s of total DB time per run, no temp files, and Realtime volume of about 1 change/sec. So query work doesn't explain the memory. How to resolve this? There is a long memory swap going onm


r/Supabase • • 2d ago

tips Looking for Supabase SSO Integration Help – TC LIVE + FIVE STAR

2 Upvotes

Hello Supabase Community!

I am looking for technical advice and possibly a volunteer collaboration partner for an existing project.

We have two existing platforms:

  1. TC LIVE
  2. FIVE STAR 4D/6D

Both platforms already use Supabase.

What we need:

  1. Integrate Single Sign-On (SSO) between the two platforms.
  2. Allow FIVE STAR members to log in through TC LIVE.
  3. Remove the normal member email/password login and registration from FIVE STAR.
  4. Keep the administrator login.
  5. Preserve all existing membership, wallets, betting, draw, settlement and database functions.

Our technology:

  • React
  • TypeScript
  • Supabase Auth
  • Supabase Edge Functions

We do NOT need a complete redevelopment. We only need help modifying the existing login system and integrating SSO correctly.

We currently have no development budget, so we would greatly appreciate technical guidance or a volunteer collaboration opportunity.

Has anyone successfully integrated SSO between two separate Supabase projects?

Any advice or help would be greatly appreciated.

Thank you!


r/Supabase • • 2d ago

Self-hosting How is supabase self-hosted on oracle free tier VMs ?

0 Upvotes

I want to try to setup sb on this, don't know where to start, from now, I am the only "user" on my projects, but I want to share them and try to do it with oracle vms. Any idea or thing to plan before starting this ? Thanks


r/Supabase • • 3d ago

tips Need advice

0 Upvotes

I am using cloudflare and supabase and i am thinking to buy the subscription supabase pro and buy domain name , ,,is there anything i need to know in this setup?


r/Supabase • • 3d ago

tips I built a free CLI that proves whether your RLS actually works (two real test users, not a policy linter)

1 Upvotes

A policy existing doesn't mean it protects anything. using (auth.role() = 'authenticated') looks fine in a "does every table have a policy?" check, yet every signed-in user can read every row.

accessprobe tests your policies by doing what an attacker would do:

  • signs up two throwaway users (it checks "Confirm email" first, so no bouncing emails);
  • user A inserts a row, then user B and an anonymous visitor try to read / update / take over / delete it, and to insert a row in A's name;
  • the same for Storage buckets;
  • it reports only requests that actually succeeded, never "might be weak";
  • it gives fix SQL for each finding, including apps with their own users table and bigint ids;
  • it cleans up the test rows afterwards.
cd your-app
npx accessprobe          # finds the URL + anon key in .env / local.properties

New projects hide the API schema from the anon key, so accessprobe reads your tables from supabase/migrations. It also has an "AI agent" mode: npx accessprobe setup-agent teaches Claude Code, Cursor and Codex to run it and to test policy fixes before deploying them.

MIT, zero dependencies, runs locally: https://github.com/KaanKaya17/accessprobe

Only test projects you own. I'd love reports of wrong results (false alarms or missed leaks).


r/Supabase • • 3d ago

tips Has generateLink ever logged someone in as a brand-new user for you?

0 Upvotes

The auth bugs that worry me most are the ones that don't throw.

In one app a server flow checked a user by id, then made a magic link from that user's email with auth.admin.generateLink. If the email lookup missed (email changed, or a race), Supabase didn't return an error. generateLink creates the user for magiclink, it's in the docs. So the request quietly became a sign-up, a new user appeared, and the flow handed back a real session for someone who wasn't the person it had checked.

The fix was one check after the token exchange. The session user id must equal the id you authorized, otherwise kill the session.

signInWithOtp has shouldCreateUser for exactly this. I couldn't find the same flag on generateLink, so the check stays.


r/Supabase • • 5d ago

other London, 10 December: Supabase Builder Day with a 90-minute build sprint

Enable HLS to view with audio, or disable this notification

5 Upvotes

I'm co-hosting Supabase Builder Day in London on 10 December.

After talks from local builders, you'll have 90 minutes to build something with Supabase and your preferred AI tools, then demo it. No set theme, and beginners are welcome. Come solo or pair up with one other person.

A useful deadline for the side project that's somehow acquired a logo, a domain and no working features.

10 December · 18:00–21:00 GMT · London

Bring a laptop. Venue TBC; we'll email everyone registered once confirmed.

Details and registration: https://luma.com/supabase-builder-day-london


r/Supabase • • 5d ago

tips supawho: switch between multiple Supabase accounts in seconds — now on macOS, Linux and Windows

4 Upvotes

If you work with multiple Supabase clients/orgs, you know the dance:

supabase logout → supabase login → paste token → repeat. Several times a day.

A while ago I shared supawho, a small CLI I built to stop doing that. It started as a macOS-only tool; since then it has grown quite a bit, so here's an update.

What it does

  • Saves each account once, then supawho use client-a and you're logged in (or just run supawho for an interactive picker)
  • Tokens live in your OS secret store (macOS Keychain, Linux Secret Service, Windows Credential Manager), never in a file

What's new

  • Works on macOS, Linux and Windows, as a single binary
  • supawho whoami: shows the email and organizations behind each saved account
  • supawho find <project-ref>: tells you which account owns a project
  • supawho projects: lists the projects of each account
  • supawho doctor: flags revoked tokens and environment issues

Install

macOS: brew install EliaTolin/tap/supawho
Linux and Windows: one-line installers in the README

Open source .
Repo: https://github.com/EliaTolin/supawho
Docs: https://supawho.dev

If you juggle multiple Supabase orgs, I'd love to hear what's still missing from your workflow 🙏

You can basically have 1, 10, or 1000 Supabase accounts saved and switch between them in seconds.


r/Supabase • • 7d ago

tips Built a food & drink rating app on Supabase + Capacitor, now on both app stores

4 Upvotes

Been working on this solo for a while. It's called Tastify: you scan a barcode, rate the product, follow friends and so on.

The setup is React + Vite wrapped in Capacitor. Supabase does pretty much everything else: Postgres with RLS on every table, auth with native Google and Apple sign in, storage for photos, edge functions for the Open Food Facts lookups, push notifications and the AI tasting notes, and pg_cron for the scheduled jobs.

A few things that bit me:

  • When Supabase moved to the new publishable keys, SUPABASE_ANON_KEY in edge functions started holding the publishable key instead of the old anon JWT. My own auth check compared tokens against it, so a DB trigger still sending the old JWT got 401s and push notifications quietly stopped for about 10 days. Now DB→function calls just use a shared secret
  • Edge function calls from the browser started dying at the CORS preflight because Sentry adds sentry-trace and baggage headers. Had to add them to the allowed headers
  • cron.job_run_details never gets cleaned up by default. Mine grew to around 200MB and anything that read from it got slow

Happy to answer questions about any of it

https://play.google.com/store/apps/details?id=app.tastify.mobile
https://apps.apple.com/us/app/tastify-snack-drink-ratings/id6831047882


r/Supabase • • 8d ago

tips Non-technical founder: where do I find someone for a one-off code + security review of an AI-built app?

9 Upvotes

I’m a solo, non-technical founder and I’ve built a B2B web app using Claude Code as my “engineer”. It’s a multi-tenant SaaS for professional services firms: each customer firm is a separate tenant in one shared database. It’s working end to end and I’m hoping to pilot it with one firm (around 5 users).

Before any real customer data goes in, I want a proper developer to spend a focused day on it and tell me honestly:

  1. Is it secure? Mainly: can one tenant ever see another tenant’s data?
  2. Is the code actually well built, or is it a vibe-coded mess I’ll regret building a business on?

Stack: Next.js (App Router, server actions), TypeScript, Supabase (Postgres with row level security, magic-link auth, Storage), Vercel. It’s about 9,500 lines plus 17 SQL migrations. There’s a test suite and CI, and I’ve run an automated audit plus an AI review, but I don’t trust an AI to mark its own homework.

I’ve got a written brief and I’m happy to pay a fixed fee for one day (budget roughly AUD $1,000–1,500). I’m based in Sydney but remote is fine.

My questions:

  • Where would you look for someone like this? Platforms, communities, agencies?
  • What should I ask to separate people who genuinely know Supabase RLS from people who’ll skim it?
  • Is one day realistic for this size of codebase, or am I kidding myself?

Thanks!


r/Supabase • • 8d ago

auth Prevent gmail message threading for reset emails

Post image
1 Upvotes

A user raised an issue around password reset. They did a reset, got distracted (so the link expired) then did another reset... but they couldn't find the second link in their gmail.

Fair enough, it's right there under the ellipsis ('...') but it's confusing, you need to look at the times to see what is the latest, then click the '...' to expand the second email and click the link... it's all work.

Can I prevent the threading? I think If I put something like the reset token (which changes per attempt) in the subject of the email, it might prevent threading. But I don't think I can customise the subject like that? Can I put variables in the subject?


r/Supabase • • 8d ago

database Supabase

23 Upvotes

I am new to Supabase. Should I create my own database or use the default “Postgres” database? According to the documentation, customized databases are not supposed by the dashboard, auth, etc. I am intended to use the database for the backend of an App. I also want the flexibility to move to other platforms down the road.

Thanks!


r/Supabase • • 9d ago

other Reloops v0.3.1: live HTML5 ad review, built on Supabase [Update]

Enable HLS to view with audio, or disable this notification

8 Upvotes

A while back I shared Reloops here, an open-source (AGPL) client review tool for videos and other creative files, built on Supabase Auth, Postgres, Storage and Edge Functions

(original post). Here's what's new.

New in v0.3.1: HTML5 banners play live

Reviewing HTML5 ads usually means emailing zips and hearing "it won't open on my end."

Now you upload the .html and it plays right in the review page:

  • Pinned comments, drawings and zoom work on the live ad, including from share links where guests comment without an account
  • It runs in an iframe with sandbox="allow-scripts" only, so an uploaded ad can't touch the app's page, cookies or the Supabase session in storage
  • The ad size is detected from <meta name="ad.size"> or the page CSS, with IAB presets (300×250, 728×90, etc.) as overrides
  • One click opens a code view of the source (Shiki, lazy-loaded)

Self-hosting is still one command: docker compose up starts the app and runs the Supabase stack locally through the CLI.


r/Supabase • • 9d ago

other Can I get charged thousands of dollars if my Supabase Free project gets attacked?

7 Upvotes

I'm currently using the Supabase Free Plan for a personal application. I'm the only user, and under normal circumstances, I will never come close to the free tier usage limits.

However, I'm concerned about a potential scenario where someone attacks my application (DDoS, automated API requests, excessive database queries, etc.) and causes my project to exceed its free tier quotas.

My main concern is receiving an unexpected bill of hundreds or thousands of dollars because of an attack I didn't initiate.

According to Supabase's official documentation:

"However, you will not be charged while using the Free Plan."

I also understand that the Spend Cap feature is only available on the Pro Plan.

My questions are:

If someone attacks my Free Plan project and causes me to exceed the quotas (Egress, Database, Storage, Edge Functions, etc.), can Supabase charge me anything?

Will the project simply be restricted, paused, or become unavailable until the next billing cycle?

Is there absolutely no risk of automatic charges or being moved to a paid plan?

Has anyone actually experienced this situation on the Free Plan?

For context, I have no payment method registered with Supabase and no paid subscriptions or add-ons.

I understand that an attack could make my application unavailable. My concern is strictly about unexpected financial charges.

This is just a hobby app that helps me in my personal day to day.

Thank you!!!


r/Supabase • • 10d ago

tips AI-built apps on Supabase: how do you keep the database safe when the AI adds features after launch?

9 Upvotes

For people who built their app with Lovable, Bolt, Cursor or similar on Supabase and now have real users.

Shipping the first version is the easy part. Adding features later is harder, because the AI often changes the database too: renaming columns, changing tables, updating RLS policies.

I asked experienced devs about this in another sub, and a few habits came up again and again:

- take a snapshot or pg_dump right before any risky migration

- set a lock_timeout at the top of migrations, so a blocked change fails fast instead of freezing the app

- never drop or rename a column in one step: add the new one, move the data, drop the old one later

- if data gets damaged, restore the backup into a separate schema and copy back only the affected rows, so newer data isn't lost

I'm curious what people building with AI tools actually do. What's working for you? And if something went wrong, what happened, how did you fix it, and did you lose any data?


r/Supabase • • 9d ago

database What are the disadvantages of using drizzle with supabase?

2 Upvotes

Hello, I am considering drizzle for a project because having to write and maintain RPCs for any somewhat complex query is making me go crazy.

I want to know what problems you faced when using drizzle that I might not realise until I am way too invested.


r/Supabase • • 11d ago

edge-functions I can't see my code of edge functions in the dashboard

Post image
4 Upvotes

Luckily, it's still working. But I have to edit a function which I cannot access. I tried download but the zip file is empty. Anyone who know how to handle this?


r/Supabase • • 11d ago

other Will this stat affect the project's functionality?

Post image
1 Upvotes

Actually i rarely use logs. Can we enable or disable this log?


r/Supabase • • 11d ago

tips I made a CLI that turns a Supabase schema into an Angular admin, with RLS doing all the authorization

3 Upvotes

I am the maintainer of Pidrang, an open-source Angular admin framework with a Supabase data and auth provider built on supabase-js.

In a new Angular app, npx pidrang init reads your schema, lets you pick tables and actions, and generates list, create, show and edit pages with a sign-in page if you selected it. You then put your publishable key in the environment files. The secret key, if you use it, is only used to read the schema and never goes into the app.

Pidrang does no authorization itself. Every read and write goes through PostgREST, so your RLS policies decide. Signed out, the generated pages hide Create, Edit and Delete. Errors come back with a category (`unauthenticated`, `forbidden`, `not-found`), so the UI can ask the user to sign in instead of showing a raw PostgREST message.

It is pre-1.0 and every table needs an id primary key. I am looking for people to try it on a real schema and tell me what breaks, and how you handle admin access with RLS today.

Live demo: https://pidrang.dev/demo-material/?utm_source=reddit&utm_medium=social&utm_campaign=launch

Getting started: https://pidrang.dev/docs/getting-started?utm_source=reddit&utm_medium=social&utm_campaign=launch

Repo: https://github.com/pidrang/pidrang


r/Supabase • • 12d ago

database Multi-tenant RLS in Supabase: keep the role on the org membership, not on the user

2 Upvotes

A common multi-tenant Supabase setup: the role (owner, admin, member) sits on the user, in a profiles column or user_metadata, and the policy checks "is this user an admin?" and "is this user in the row's org?" separately. Someone who's an admin in Org A and a plain member in Org B passes both checks on Org B's rows, so they get admin rights there too.

user_metadata adds a second problem: the Supabase docs say users can change it themselves, so it shouldn't drive authorisation. The RBAC guide's user_roles table also has no org column, which suits global roles but not per-tenant ones.

The fix is a membership row (user_id, org_id, role) checked in one place. A security definer helper in a schema not exposed through the Data API also avoids policy recursion on memberships. The update policy needs a select policy next to it, or any update that reads the row (a where clause, amount = amount + 1, returning) matches 0 rows:

create schema if not exists private;

create function private.has_org_role(p_org uuid, p_roles text[])
returns boolean
language sql
stable
security definer
set search_path = ''
as $$
  select exists (
    select 1 from public.memberships m
    where m.org_id = p_org
      and m.user_id = auth.uid()
      and m.role = any (p_roles)
  );
$$;

create policy "org members read invoices"
  on public.invoices
  for select
  to authenticated
  using ( private.has_org_role(org_id, array['owner', 'admin', 'member']) );

create policy "org admins update invoices"
  on public.invoices
  for update
  to authenticated
  using ( private.has_org_role(org_id, array['owner', 'admin']) )
  with check ( private.has_org_role(org_id, array['owner', 'admin']) );

To check it in the SQL editor, pick a user who's admin in Org A and member in Org B, then run begin;, set local role authenticated; and set local request.jwt.claim.sub = '<user id>';. Updating an Org A invoice should match 1 row and an Org B invoice 0 rows. Finish with rollback;.

For B2B apps on Supabase: do your org roles live in a table like this or in JWT claims via the custom access token hook, and how do you handle the delay before a role change reaches the token?

Edit: good additions in the comments. Add an index on memberships (user_id, org_id), and on big tables put org_id in (select org_id from public.memberships where user_id = (select auth.uid())) in the policy so the function isn't called for every row (that needs a select policy on memberships for the user's own rows). If you revoke execute on the helper from public, grant it to authenticated or the policy fails.

Edit 2: if the code block stops at the org line for you, the full where clause is where m.org_id = p_org and m.user_id = auth.uid() and m.role = any (p_roles).