Skip to content

feat: Add RBAC #60

Description

@AnonymousXC

Background

A lightweight RBAC layer is needed to protect resources while keeping permission logic straightforward using Casbin (available via the FOCA archetype.

Permission

Action Authenticated User Manager Owner
Read any resource
Create a resource
Update a resource
Delete a resource
Set permissions on a resource

Suggested Implementation Steps

  1. implement the permissions above (in a access_control.conf file).
  2. automatically assign the creator as owner on POST/CREATE operations.
  3. create endpoints to allow Owners to assign/revoke Manager or Owner roles to other users on resources they own.
  4. add a guard in the role-removal and resource-deletion endpoints

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions