Re: Proposal: Introduce row-level security templates

2024-03-27 Thread Aadhav Vignesh
Hi Stojan, > I do think there should be the option to attach it immediately to > tables, something like `CREATE POLICY TEMPLATE ATTACH TO > AS ...` but it’s not a deal-breaker for me. I would say that because templates are not active until they’re > attached, the logic for “validating” the

Re: Proposal: Introduce row-level security templates

2024-03-20 Thread Stojan Dimitrovski
Hi Aadhav Vignesh, Interestingly, Alexander asked for ideas for GSoC projects at Supabase (I'm on the Auth team), and I proposed the RLS templates idea. As you already pointed out, the idea comes out of us seeing how RLS policies are used in real-life and the pain points associated with managing