1
Disable RLS policies
Source: supabase/supabase#38801 · opened by @sandymcfadden
Recently when developing a project I spent a fair bit of time troubleshooting and RLS issue I was facing. I found myself really wanting to be able to disable a RLS policy so I didn't lose it, but still didn't have it active. There didn't seem to be a good way to do that. While I was thinking about ways to do that I took a stab at it. There is likely a better way to approach it but for something that should be temporary and debugging purposes I thought this might work. My thought was to add a disable option to policies and when used it would technically delete the policy, but also save all the details about it in IndexedDB in the browser. Disabled policies still show with active policies, but clearly marked as disabled, and you can enable them again in which case it would technically create a new policy using the saved details and then remove it from IndexedDB. There are still some rough edges, but I took a quick pass at building this out here but didn't wa…
No pledges yet. Be the first to back this.
Comments
Similar requests
Default RLS Policies.
3 votes · 0 comments
Add Feature to Test + Debug Row Level Security Policies
47 votes · 0 comments
Better protection against failing to protect tables with RLS
1 vote · 0 comments
Make it possible to view raw RLS policy SQL in the Supabase Dashboard
18 votes · 0 comments
Extension to the current "Copy as Markdown" function
1 vote · 0 comments
No comments yet.