© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
S
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
Join
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
ROW LEVEL SECURITY ISSUE
S
Supabase / help-and-questions
3y ago
row level security and react query
S
Supabase / help-and-questions
4y ago
Help with row level security
S
Supabase / help-and-questions
12mo ago
StorageApiError: new row violates row-level security policy
S
Supabase / help-and-questions
4mo ago