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?
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:actions and how much of this could be automated?