Sign authentication with ZeroMQ

It's hard for me to understand the ZeroMQ messaging system, so before I dive in, I would like to find out if anyone knows if what I really want to do is possible.

I want to configure a pubsub server with ZeroMQ, which will publish certain data streams and subscribe to some of these streams, the user must be authenticated to find out if they have access to these streams. Everything I saw has a subscription with the zmq.SUBSCRIBE command.

Can this be changed for authentication? Does he support it out of the box?

+6
authentication message-queue zeromq
source share
1 answer

No, there are no such functions. ZeroMQ works at a lower level, and it is likely that auth-features will never be in the kernel.

Since pubsub is implemented on top of IP multicast, I can suggest writing an auth server that will manage the network router and block all multicast traffic to the client by IP / port until this client is authorized. Of course, you can choose the auth method in this case.

If you can sacrifice the stability and performance of ZeroMQs for development costs, just take ActiveMQ. It has authentication features .

+7
source share

All Articles