# Does Node-RED support Federated Logic when it comes to multiple deployed node-RED instances?

**URL:** https://discourse.nodered.org/t/does-node-red-support-federated-logic-when-it-comes-to-multiple-deployed-node-red-instances/68221
**Category:** General
**Tags:** security
**Created:** [26 September 2022 07:44 UTC](https://discourse.nodered.org/t/does-node-red-support-federated-logic-when-it-comes-to-multiple-deployed-node-red-instances/68221 "2022-09-26T07:44:55Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Shan](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@Shan](https://discourse.nodered.org/u/Shan)
#### Post date: [26 September 2022 07:44 UTC](https://discourse.nodered.org/t/does-node-red-support-federated-logic-when-it-comes-to-multiple-deployed-node-red-instances/68221/1 "2022-09-26T07:44:55Z")

</div>

## Description

If one has more than 2 instances of node-RED deployed on distinct hardware and has authentication setup up, is there a feature where the end-user can generate a single Bearer Token which can be used to deploy dedicated flows on all the instances using the HTTP API?

### Potential Benefits

since node-RED does provide HTTP APIs to control / manage flows, nodes etc. it might be beneficial to have tools like Ansible configure these instances in a cluster to execute dedicated flows from a single control device.  
However, assuming that each instance generates a different Bearer Token to interact with the APIs it might become tedious to manage multiple Bearer Tokens.

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [26 September 2022 18:56 UTC](https://discourse.nodered.org/t/does-node-red-support-federated-logic-when-it-comes-to-multiple-deployed-node-red-instances/68221/2 "2022-09-26T18:56:58Z")

</div>

> [@Shan](#):
>
> If one has more than 2 instances of node-RED deployed on distinct hardware and has authentication setup up, is there a feature where the end-user can generate a single Bearer Token which can be used to deploy dedicated flows on all the instances using the HTTP API?

Possibly, kind-of. By moving the authentication/authorisation to an external shared service such as a reverse proxy. That way you avoid the problem completely since both sets of admin endpoints will not be accessible without the same authentication. Much easier than messing with node-red's authentication.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [10 October 2022 18:57 UTC](https://discourse.nodered.org/t/does-node-red-support-federated-logic-when-it-comes-to-multiple-deployed-node-red-instances/68221/3 "2022-10-10T18:57:33Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
