Skip to content
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

ACL for subscriptions are disabled globally #795

Open
drahnr opened this issue Apr 24, 2018 · 5 comments
Open

ACL for subscriptions are disabled globally #795

drahnr opened this issue Apr 24, 2018 · 5 comments

Comments

@drahnr
Copy link

drahnr commented Apr 24, 2018

Instead of disabling ACL checks for the default security plugin, all auth plugins can not filter subscriptions.

@karlp
Copy link
Contributor

karlp commented Apr 24, 2018

Can you elaborate on this please? example config, what branch/version of code you're working with?

@drahnr
Copy link
Author

drahnr commented Apr 24, 2018

master src/read_handle_server.c line 702, the #ifdef 0 contains elaboration why it was disabled.

The issue is, while it is true for the default plugin, the subscription ACLs are never neforeced at all, no matter which plugin.

The proper solution would be to put the (disabled) checks in the default plugin, but remove the #ifdef 0 + comment from the actual call to the acl callback provided by the plugin.

@ralight
Copy link
Contributor

ralight commented Apr 24, 2018

You'll be happy to hear that version 1.5 does pass acl subscription checks to the authentication plugins.

@drahnr
Copy link
Author

drahnr commented Apr 25, 2018

@ralight is 1.4.15 not going to receive this fix? Otherwise I have to stick with a custom patched instance.

@ralight
Copy link
Contributor

ralight commented May 2, 2018

@drahnr I'm afraid that 1.4.x will not get this, because it is a change in functionality rather than a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants