You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What's your scenario? What do you want to achieve?
I'd like to understand how to use casbin properly in a large project. Most examples are simple "alice, bob, read, write, data". I understand I can group individual users into and assign permission "write" to a role rather than individual user. However I still have to allow a role to "write" to resource. If I have million of resources (say blog posts) it will require me to make a policy with millions of entries. That seems quite inefficient.
I feel I'm missing something here?
The text was updated successfully, but these errors were encountered:
Thanks for the link! It says "A well-written model and policy will abstract out the duplicated logic for each user/tenant and reduce the number of rules to a very small level (< 100)".
Perhaps I'm not understanding how to use casbin correctly then.
If I have 100 USERS each having owning 50 ITEMS, then there are already 5000 policies per permission I have to write for users to be able towrite their items. Much more if I allow users to write other people's items.
What's your scenario? What do you want to achieve?
I'd like to understand how to use casbin properly in a large project. Most examples are simple "alice, bob, read, write, data". I understand I can group individual users into and assign permission "write" to a role rather than individual user. However I still have to allow a role to "write" to resource. If I have million of resources (say blog posts) it will require me to make a policy with millions of entries. That seems quite inefficient.
I feel I'm missing something here?
The text was updated successfully, but these errors were encountered: