VOLTTRON / volttron

VOLTTRON Distributed Control System Platform
https://volttron.readthedocs.io/
Other
458 stars 216 forks source link

enable VOLTTRON instance to limit who can subscribe to a given pubsub topic #369

Open zbeech opened 8 years ago

zbeech commented 8 years ago

related to #321

zbeech commented 8 years ago

We still need to update the subscriptions (removed unauthorized subscribers) when the protected-topics file is changed.

zbeech commented 8 years ago

If an unauthorized agent calls pubsub.subscribe it will silently fail. A jsonrpc.UNAUTHORIZED exception is raised, but the agent won't see it because pubsub.subscribe runs in its own greenlet.

craig8 commented 8 years ago

I have been able to restrict who can subscribe based upon using an XPUB/XSUB device socket. This does not in fact do it for specific topics, but the whole bus.

craig8 commented 7 years ago

Restricting who can subscribe is going to be different path than publish restrictions. @shwethanidd @zbeech and @craig8 need to collaborate on this to get it done during the implementation of faster pubsub in 4.1