Get the latest tech news
Multi-Tenant Authorization with Zenstack
Scaling a solo-developer project with an open source authorization solution. I recently launched a SaaS product that utilizes a multi-tenant architecture where users could be associated with multiple accounts.
Moving the Authorization logic from Supabase RLS policies into a schema file adds tighter coupling with the application code, which ended up being ideal for me. I normally find myself re-creating the same hooks and API routes, but I was able to delete a huge portion of my codebase and drop in Zenstack's generated code. The time I spent migrating over to Zenstack was quickly made up for by the speed at which I was able to iterate due to the tight coupling of authorization policies with my application code.
Or read this on Hacker News