New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filtered policies support for casbin redis adapter #29
Comments
@JalinWang plz implement FilteredAdapter interface /cc @tangyang9464 |
Hi, can you also answer the question about the policies being stored in-memory? and now that you will add filtered policy loading option for redis, do I have to create a new enforcer with filtered policies every time I want to check the permissions? |
@sujatapatnaik52 Hi~ Thanks for concerning about Casbin.
For this question, the answer is true.
I'll make a PR to support filtering in days.
No, you don't. You can divide enforcers by domains or use watcher to keep them synced. |
Hi,
I am using the
rbac_with_deny_model
for my usecase with casbin's redis adapter - https://github.com/casbin/redis-adapter. I have the following questions:enforce()
calls to take more time. I can add another instance of casbin to handle this but I was looking to use policy subset loading feature. Apparently this does not exist for redis-adapter yet. Is there a way to add it or should I use only those backend storage libraries that support this?Thank you.
The text was updated successfully, but these errors were encountered: