© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•6mo ago•
13 replies
Napolean_Solo

Using RLS for CLS

Hi,

I wanted to know if it is acceptable to use RLS for CLS.

Basically, I create an UPDATE policy that makes sure other columns remain the same as old record except only allowing 2 certain columns to be different.

In effect, I am enforcing column level security. I do understand the fact that i will have to fetch the row each time I want to update. But this trade-off should be acceptable right?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

What gets precedence in RLS and CLS?
SupabaseSSupabase / help-and-questions
3y ago
RLS for Columns?
SupabaseSSupabase / help-and-questions
3y ago
RLS policies using PostGIS tabl
SupabaseSSupabase / help-and-questions
3w ago
Using ANY operator in RLS policy
SupabaseSSupabase / help-and-questions
4y ago