GitHub

I fuzzed my own Supabase RLS — and found a cross-tenant leak (opens in new tab)

Discussed on DEV

Row-Level Security is the kind of thing that looks done. The policies are there, the app works, your tests are green. So you move on. The problem is that your tests test your code — they never test the policies. And RLS is remarkably easy to get subtly wrong: a USING clause with no matching WITH CHECK, so reads are locked down but writes aren't a FOR ALL where you meant FOR SELECT a forgotten ENABLE ROW LEVEL SECURITY on one table out of forty a service_role key that quietly bypasses everythi...

Read the original article
Sign in to keep reading the full article.

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help