-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
code healthProactive technical investment via refactorings, removals, etc.Proactive technical investment via refactorings, removals, etc.enhancementRelates to new features or improvements to existing featuresRelates to new features or improvements to existing featuresverawoodReleased in VerawoodReleased in Verawood
Description
Situation
In the current library's permission system, we use Bridgekeeper to implement rules that are checked at enforcement points to make decisions. Those rules are a combination of role checks with attribute/context checks.
Our current matcher only supports explicit role assignment (with the permissions of the role and with inheritance of roles).
We need a way to perform attribute/context checks at our enforcement points, ideally using Casbin.
Examples of usage
CAN_CREATE_CONTENT_LIBRARY
Conditions: global_staff or course_creator.
CAN_VIEW_THIS_CONTENT_LIBRARY
Conditions: global staff, attribute ‘allow_public_read’, explicit read permissions (admin, author, read).
References
- Libraries Roles and Permissions Migration Plan: https://openedx.atlassian.net/wiki/spaces/OEPM/pages/5252317270/Libraries+Roles+and+Permissions+Migration+Plan#Permissions-and-validations
- AuthZ Long-Term (bridgekeeper): https://openedx.atlassian.net/wiki/spaces/OEPM/pages/5210112002/Open+edX+AuthZ+Framework+Long-Term+Vision#What-about-Bridgekeeper%3F
Metadata
Metadata
Assignees
Labels
code healthProactive technical investment via refactorings, removals, etc.Proactive technical investment via refactorings, removals, etc.enhancementRelates to new features or improvements to existing featuresRelates to new features or improvements to existing featuresverawoodReleased in VerawoodReleased in Verawood
Type
Projects
Status
In Grooming