You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I disabled all of the other authz plugins (just the file based plugin was enabled by default) thinking that it would have no other choice but to use exhook for authorization requests, but it seems that it will always the use default action instead.
What did you expect to happen?
I expected the broker to fallback to the registered client.authorize exhook before defaulting to the default action set in the configuration.
How can we reproduce it (as minimally and precisely as possible)?
Disable all authz plugins
Add an exhook that implements OnClientAuthorize
Subscribe and/or publish to a topic
Anything else we need to know?
My gRPC handler implements:
OnProviderLoaded: Responds with {Name: "client.authenticate"}, {Name: "client.authorize"}
OnClientAuthenticate: Allows all for now
OnClientAuthorize: Also allows all for now
I am testing the broker using emqtt_bench:
./emqtt_bench pub -t /devices/test/events -h localhost -p 1883 -s 16 -q 0 -c 10 -I 10
What happened?
I disabled all of the other authz plugins (just the file based plugin was enabled by default) thinking that it would have no other choice but to use exhook for authorization requests, but it seems that it will always the use default action instead.
What did you expect to happen?
I expected the broker to fallback to the registered client.authorize exhook before defaulting to the default action set in the configuration.
How can we reproduce it (as minimally and precisely as possible)?
Anything else we need to know?
My gRPC handler implements:
{Name: "client.authenticate"}, {Name: "client.authorize"}
I am testing the broker using emqtt_bench:
./emqtt_bench pub -t /devices/test/events -h localhost -p 1883 -s 16 -q 0 -c 10 -I 10
From the dashboard I can see only OnClientAuthenticate is the only hook that is invoked:
EMQX version
OS version
Docker container:
emqx/emqx:5.0.6
Log files
The text was updated successfully, but these errors were encountered: