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
[Bug] inconsisitent cache when updating policy & adding a deny rule #1065
Comments
@JalinWang CachedEnforcer lacks maintenance and seems to be used by very few people. You can try to improve its api with low priority |
can't agree more with @tangyang9464 |
If there are no complaints and no work already in progress here, I'd like to work on a PR for this. We just switched to the CachedEnforcer to reduce allocations from regex and are running into these edge cases now. |
@michaelknowles the contribution is welcome! |
Closed as stale |
CachedEnforcer
can not handle the update requests, i.e., it does not invalidate the cache.Also, if
AddPolicy()
add a user deny rule, e.g.,alice, data, read, deny
, or role deny rule, e.g.,admin, data, read, deny
, the cache is also buggy. Do we need to consider such case?Screenshot about the lack of cached version update in
CachedEnforcer
:The text was updated successfully, but these errors were encountered: