-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[Question] Why is the permission check inconsistent #1394
Comments
@dhonor-dyj Please provide a minimum reproduction. |
[request_definition] [policy_definition] [role_definition] [policy_effect] [matchers] This is the model definition |
The problem is that after you add policies p and g, the user will be checked several times. Not always, but after a few seconds, the user will be checked. The check method is BatchEnforcce(). |
I can't reproduce this problem based on your description. Please provide model(we already have), policy, and code that can reproduce this problem. |
resolved, The reason is that an error occurs when watcher is used for synchronization. Each time the database is changed, the instance is not excluded during synchronization, and the default loadPolicy() function is used to reload the policy during synchronization. During the loading process, a new check fails. |
After the policy is added, the data is checked. It is found that the check is true at the beginning, false later, and true again a few seconds later
The text was updated successfully, but these errors were encountered: