Skip to content

Add permission system #301

Closed
Closed

Description

@m4tx

We already have some simple auth, but we also need some sort of permission system that would allow checking if a user has sufficient permissions to access specific resources. The idea is probably something in the lines of check(user, object, action) pattern, but there are several open questions:

  • How should we define actions and how much of this could be automated?
  • How should we store the permissions in the database?
  • Should we support some sort of groups (think "Moderators", "Admins", "Reviewers", etc.)? Should we support storing them (along with the permissions) in the database/hardcoded in the server binary/both?

Activity

  1. added theissue type on Apr 27, 2025
  2. wheregmis commented on May 7, 2025

    @wheregmis

    Maybe using postgres with https://github.com/cmackenzie1/torii-rs ?

  3. ototech7 commented on Oct 12, 2025

    @ototech7

    hey @m4tx, this sounds like a great step forward. i’ve worked on auth and permission layers before, both RBAC and policy based ones, using postgres and serde configs. i’d like to help design or prototype the permission system here, maybe start with a simple check trait and later add group/role support and db storage.

  4. added this to the v1.0 milestone on Dec 24, 2025
  5. seqre commented on Aug 23, 2026

    @seqre
    Member

    I think we should approach it from the full AAA perspective (authentication, authorization, and accounting) and proper RBAC. Modern applications require good security and doing anything less could hurt the project in the long run.

    Regarding the implementation, I'd go into solution baked into the framework rather some add-on checks to ensure proper coverage of routes, helping users design their roles and ensure what has to be protected is protected.

  6. locked and limited conversation to collaborators on Aug 29, 2026
  7. converted this issue into a discussion #645 on Aug 29, 2026
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

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions