Default RLS Policies. #11792
Replies: 3 comments 3 replies
Can you share a sample of those? If there's a convincing case we could try to propose this enhancement to the PostgreSQL dev team. |
|
I have to put these same 4 policies on each table, there isnt anything super special about them apart from they check if the user is logged in via the supabase auth. There are a couple of tables where they would be overridden in my case as i use an extra auth code layer on top of the auth to make it extra secure when signing up. but that would be overridden when adding a specific set of rules to that table. So what im asking for is A way to set a default set of policies to all tables |
|
We discussed this internally and are considering showing "existing" RLS policies for other tables in the RLS editor. We'll work on some RLS improvements over the next month. Thanks for the feedback @The-Code-Monkey I'll convert this one to a discussion for now (in the Feautre Requests category) |

Uh oh!
There was an error while loading. Please reload this page.
Feature request
Is your feature request related to a problem? Please describe.
I am setting up a CMS which automatically picks up new tables from the public schema and allows the user to edit the entries.
But my problem is that I have to create the same 4 RLS policies for each table.
Describe the solution you'd like
A way to specify default RLS policies for all tables, but these will be overwritten by Table specific RLS policies
Describe alternatives you've considered
There isn't really any alternatives apart from doing this manually every time I want to add a table. I guess maybe a clone button on RLS policies so you can copy them over easier.
Additional context
If you want any more info or access to the CMS that im building to see what i mean let me know.
All reactions