-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Remote hooks called before ACL rules are applied #1191
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
Comments
@ritch ACL check is done from one of the remote hooks. Can we ensure it's called before any other remote hooks? |
If you create the hook after boot it should run in the expected order. |
@raymondfeng @ritch I think the expected behavior would be to have the ACL check be the first call in the stack. Or at least it should be configurable to work that way. It has some pretty serious implications, if you're not aware of this right now! |
@raymondfeng @ritch I strongly believe this should be fixed ASAP. Any before remote hook defined at the |
@ritch thanks! |
Right now ACLs are called after before remote hook. That means this stack of calls:
I'd expect ACLs to be checked prior calling before remote hooks and not the other way round.
Example:
with this ACL
Even though the Loopback explorer displays a 401 error, the console displays "before remote hook". In my opinion, this should not be the case.
The text was updated successfully, but these errors were encountered: