Building a Multi Tenant Node-RED Service

I was recently approached about adding Multi Tenant support to the core of Node-RED, I had to explain that due to the nature of NodeJS this isn't really a good idea as there is no way to get clean separation between the different users. But it is possible to build a system that spins up distinct instances for each user.

Over the month of October I'll be releasing a series of blog posts outlining all the components needed to build such a system and finally how to assemble them into a proof of concept deployment.

The first post is now live here

I will update that post with links to the subsequent articles as they go live and I'll try and remember to come back and post them here as well.

12 Likes

Hi Ben,
really nice initiative! A very basic question about "to the core": does this mean that (once your project is finished) when I install Node-RED from NPM, it will have multi-tenancy out of the box (baked into the core). I mean inclusive a http proxy and all related stuff... Or is this a completely separate project, that needs to be installed separately?
Thanks!
Bart

@BartButenaers the original request Ben received was about adding it to the core. You'll be familiar with the many discussions on that in this forum and our stated position that the node-red core is not suitable for multi-tenancy. The work Ben has been doing is building a multi-tenant service around the outside of Node-RED.

2 Likes

Part 2 - Building a Node-RED Storage Plugin

https://www.hardill.me.uk/wordpress/2020/10/05/node-red-storage-plugin/

4 Likes

Part 3 - Building Authentication Plugins

https://www.hardill.me.uk/wordpress/2020/10/08/node-red-authentication-plugin/

4 Likes

Part 4 - Custom Node-RED Docker Container

https://www.hardill.me.uk/wordpress/2020/10/12/custom-node-red-container-for-a-multi-tenant-environment/

3 Likes

Part 5 - Proxying for multiple Node-RED Instances

https://www.hardill.me.uk/wordpress/2020/10/15/proxying-for-mulitple-node-red-instances/

5 Likes

Part 6 - Managing Multi Tenant Node-RED instances

https://www.hardill.me.uk/wordpress/2020/10/19/managing-multi-tenant-node-red-instances/

3 Likes

Hey Ben, this looks awesome. I am not a subject matter expert here, however, I think I get the idea (sort of). It definitely helps to understand principles of multi-tenant environments. Thanks a lot.

Part 7 - Advanced Multi Tenant Node-RED Topics

https://www.hardill.me.uk/wordpress/2020/10/22/advanced-multi-tenant-node-red-topics/

2 Likes

Part 8 - Working Example of Multi Tenant Node-RED

https://www.hardill.me.uk/wordpress/2020/10/26/multi-tenant-node-red-working-example/

1 Like