© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
2 replies
Lucas - Documenso

Row level security and sorting on foreign tables

So I'm starting my first little project on Supabase and am attempting to remove all need to write CRUD functions bar some more exotic stuff.

The issue with this however is that RLS won't stop a user from updating a column such as
updated_at
updated_at
or worse
role
role
meaning that we need to store those in
entity_meta
entity_meta
tables with read-only permissions.

In doing this though we now are unable to perform sorting since sorting on a foreign table value isn't currently supported with PostgREST afaik.

Am I going crazy or is there a better pattern for these things?
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

ROW LEVEL SECURITY ISSUE
SupabaseSSupabase / help-and-questions
3y ago
row level security and react query
SupabaseSSupabase / help-and-questions
4y ago
Help with row level security
SupabaseSSupabase / help-and-questions
12mo ago
StorageApiError: new row violates row-level security policy
SupabaseSSupabase / help-and-questions
4mo ago