Skip to content

Improve RBAC security documentation #36816

Done

Description

@freethejazz

Improve documentation

Link

Custom Claims & Role-based Access Control (RBAC)

Describe the problem

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.

Additional context

Pertinent migrations in the slack clone:

Activity

  1. added
    documentation
    on Jul 2, 2025
  2. added
    external-issue
    on Jul 2, 2025
  3. shivamwayal37 commented on Jul 5, 2025

    @shivamwayal37

    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! 🚀

  4. Manisha1679 commented on Sep 16, 2025

    @Manisha1679

    hi, I would like to work on this issue if it is not assigned to anyone.

  5. added
    auth
    and removed on Jun 3, 2026
  6. added a commit that references this issue on Nov 26, 2026
    49bda39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    authdocumentationexternal-issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions