You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation is mostly helpful, however it leaves off a critical step of applying RLS to the newly created user_role and user_permissions table. There lines of SQL present in the slack clone migration files, but this should be present in the documentation to prevent footguns related to particularly sensitive portions of an application. Yes, if you're implementing RBAC you probably should have a good handle on RLS by now and it should be intuitive to you, but I think it's more caring to your users to provide those details up front and help them prevent auth related security issues.
Describe the improvement
Docs should include details for enabling RLS on newly created RBAC tables, as well as setting appropriate RLS policies to secure them. It may also be worth revisiting best practices here to verify the slack clone approach is a broadly recommended approach to securing these new RBAC tables.
Hey! 👋 I’d love to work on this issue and put together a PR that fills in the missing RLS steps and adds some example policies for the RBAC tables. I took a look at the Slack Clone migration file and have a pretty good sense of what should be included to help others avoid running into security issues.
Would be great if you could assign this to me — excited to contribute! 🚀
Activity
shivamwayal37 commentedon Jul 5, 2025
Hey! 👋 I’d love to work on this issue and put together a PR that fills in the missing RLS steps and adds some example policies for the RBAC tables. I took a look at the Slack Clone migration file and have a pretty good sense of what should be included to help others avoid running into security issues.
Would be great if you could assign this to me — excited to contribute! 🚀
Manisha1679 commentedon Sep 16, 2025
hi, I would like to work on this issue if it is not assigned to anyone.
docs(rbac): enable RLS on the RBAC tables (supabase#48394)