Buscar

Objetos taggeado con: Supabase

60-second Supabase check. Paste this in the SQL Editor:

select relname from pg_class where relnamespace = 'public'::regnamespace and relkind = 'r' and not relrowsecurity;

Every table it lists has RLS off. If anon still has its grants (the default on older projects), anyone with your public key can read, insert, update and delete rows.

Fix: alter table public.x enable row level security; then add policies scoped to auth.uid().

#Supabase #PostgreSQL #Postgres #RLS #vibecoding #AppSec #webdev

Common one in AI-built apps: an RLS error shows up, the agent swaps in the service_role key in the API route, the error goes away.

That key skips RLS. Now /api/orders/[id] returns whatever id it's given, to anyone signed in.

Fix: filter by id AND user_id from the server-side session (never from the request body), or create the Supabase client with the user's session so your policies apply.

#Supabase #AppSec #infosec #nextjs #postgres #RLS #vibecoding #webdev #IDOR

Unpopular-ish opinion: an MCP server listing its tools without auth is usually not the scary part. Ours does it on purpose (one read-only tool, rate limited).

The scary part is a tool like get_invoice that queries with a service role key and trusts the model to pass the right user id. Signed in is not the same as allowed. Check the caller's permission inside every tool, same rule as an RLS policy.

#MCP #AIagents #Supabase #AppSec #infosec #devtools #vibecoding #webdev #Postgres #LLM

60-second Supabase check, SQL Editor:

select tablename, policyname, cmd, qual from pg_policies where qual ilike '%auth.role()%' or qual ilike '%auth.uid() is not null%' or qual = 'true';

Each row is a policy that only checks "is someone signed in" (or nothing at all). On profiles, orders, messages or uploads, swap it for (select auth.uid()) = user_id.

#Supabase #Postgres #PostgreSQL #SQL #RLS #AppSec #vibecoding #webdev #infosec #security #buildinpublic #indiehackers #Lovable #Bolt #Cursor

A Supabase RLS policy written as "to authenticated using (true)", or using (auth.role() = 'authenticated'), doesn't mean "the right user". It means anyone with an account.

And with "Allow new users to sign up" on (the default), anyone can make one with the public key in your JS. Anonymous sign-ins get the authenticated role too.

One query to find these, and the auth.uid() fix: abbilabs.xyz/guides/supabase-authenticated-role-any-signed-up-user

#Supabase #RLS #vibecoding #AppSec #Postgres #webdev #buildinpublic #indiehackers #infosec

Question for anyone with Supabase anonymous sign-ins turned on: did you go back through your policies?

Anonymous users use the same authenticated Postgres role as real accounts. So "to authenticated using (true)" now means anyone who opens the app, no email needed.

auth.jwt()->>'is_anonymous' is how you tell them apart in a policy.

#Supabase #RLS #PostgreSQL #Postgres #AppSec #vibecoding #webdev #auth #SQL #infosec #database #Lovable

Supabase tip: got a view over a table you locked down with RLS? By default Postgres runs a view with its creator's rights, on Supabase usually the postgres role, which skips RLS. So the view can hand every row to anyone with your anon key.

The Security Advisor flags it as "Security Definer View". Fix on Postgres 15+:
alter view your_view set (security_invoker = true);

abbilabs.xyz/tips/supabase-views-bypass-rls

#Supabase #PostgreSQL #Postgres #RLS #SQL #AppSec #infosec #vibecoding

Built a live chat on Supabase Realtime? Check two permission systems.

Postgres Changes follows your table's RLS select policies, so a using (true) policy streams every new row to anyone holding your anon key.

Broadcast and Presence only check realtime.messages policies on channels joined with private: true, and only once "Allow public access" is off.

Queries + a signed-out test:
abbilabs.xyz/guides/supabase-realtime-authorization-private-channels

#Supabase #Realtime #PostgreSQL #RLS #vibecoding #webdev #AppSec

The media in this post is not displayed to visitors. To view it, please go to the original post.

Hamburská bezpečnostní firma Crissy Field ve spolupráci s Handelsblattem zjistila, že tisíce aplikací vygenerovaných platformou Lovable zpřístupňují databázové záznamy komukoli. Firma vyšla z webového archivu Common Crawl, v němž našla 159 041 projektů postavených v Lovable z období od prosince 2025 do září 2026. Podrobněji analyzovala 34 545 z nich, které ukládají […]
zdrojak.cz/zpravicky/aplikace-postavene-v-lovable-vydavaly-data-bez-prihlaseni-vcetne-cisel-pasu-a-s…

A Supabase pattern I keep running into in AI-built apps.

RLS gets switched on, the app breaks because there are no policies, and the quickest fix the agent (or a forum answer) offers is a policy with using (true). Errors gone. So is the protection: that policy lets every request read the table.

List them with:
select tablename, policyname, cmd from pg_policies where qual = 'true' or with_check = 'true';

#supabase #postgresql #security #webdev #ai #vibecoding

Quick repo check for anything an AI agent has worked on.

git log -p --all -S "sk_live_"

Run it again with sb_secret_, service_role and sk- for Supabase and OpenAI keys. Deleting a key in the latest commit leaves it in every earlier one, and anyone who cloned the repo has those too.

If something shows up, roll the key at the provider first. Rewriting history comes after and is optional if the key is already dead.

#git #security #webdev #supabase #stripe #ai

en respuesta a An Nayal

Full write-up: annayal.com/blog/free-calendly-alternative-open-source/

Code: github.com/Git-Agni/open-cal

#OpenSource #Calendly #NextJS #Supabase

The media in this post is not displayed to visitors. To view it, please go to the original post.

🌟 Spotted today #CodeTrendy → Tiquiz

AI quiz funnels that tag leads in Systeme.io & GoHighLevel

#EmailMarketing #AI #Email #Bootstrapped #Nextjs #Supabase #ChatGPTOpenAI

codetrendy.com/listing/tiquiz

🚀 How to Deploy #Supabase on #AlmaLinux #VPS (Production-Ready Guide)

This guide walks through the steps required to deploy Supabase on AlmaLinux VPS using #Docker and Docker Compose, following a ...
Continued 👉 #reverseproxy #letsencrypt #selfhosting #database #selfhosted #opensource

🚀 How to Deploy Supabase on Al...

The media in this post is not displayed to visitors. To view it, please go to the original post.

🚀 How to Deploy #Supabase on #AlmaLinux #VPS (Production-Ready Guide)

This guide walks through the steps required to deploy Supabase on AlmaLinux VPS using #Docker and Docker Compose, following a production-oriented setup suitable for self-hosting.

You’ll end with:

A fully functional Supabase stack
PostgreSQL, Auth, REST, Realtime, Storage, and Studio
Reverse proxy with ...
Continued 👉 blog.radwebhosting.com/deploy-supabase-on-almalinux-vps/?utm_source=mastodon&utm_medium=social&utm_c… #opensource #database #selfhosted #letsencrypt #selfhosting #reverseproxy

Postgres default worth knowing: new functions get EXECUTE granted to PUBLIC.

In Supabase, functions in an exposed schema show up at /rest/v1/rpc/<name>. So a helper like set_user_role or delete_user may be callable with the public anon key, and if it's security definer with no caller check, that's a problem.

revoke execute on function public.set_user_role(uuid, text) from public, anon, authenticated;

#Supabase #Postgres #SQL #AppSec #webdev #vibecoding #infosec #SaaS #Cursor #Lovable

I built a free in-browser Supabase RLS policy checker.

You run one read-only query in the SQL editor, paste the result, and it points out things like using (true), with check (true), and write policies with no owner check. The analysis runs in your browser.

It's for the write side, which an outside scan can't test.

abbilabs.xyz/tools/supabase-policy-checker

#Supabase #RLS #Postgres #AppSec #webdev #vibecoding #SaaS #indiehackers #devtools #Lovable #Bolt