How to implement a RBAC system in Moleculer? #1193
-
HI! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
There are many ways to approach implementing configurable RBAC support in a Moleculer system but how this would look is highly dependent on your system and what is in scope as far as access control requirements. Consider the following questions:
Answering these questions can bring you closer to the reality you are seeking to implement and Moleculer can definitely support whatever direction you want to take (from my experience). That being said, due to the complexity, you likely will not find a plug-and-play solution that meets your needs exactly. Think of Moleculer as the "glue" for tying these concerns together; you may need to incorporate multiple modules/approaches to get the desired outcome. What's Built-inThere are multiple security/auth modules in the Security section of the Moleculer documentation for modules which aim to help in this area. Additionally, the supported API GW module moleculer-web has There are several examples for Next StepsBeing that this is such a high-level topic that can go is so many directions, the best I can do is leave the answer very high level as well, for now. I highly recommend trying to answer some of the questions at the top; make sure you have an solid idea of what auth* looks like in your system so that you can approach RBAC appropriately. I'd be happy to go into more details and share some of my personal experience if you have more concrete questions to follow-up with. Good luck! |
Beta Was this translation helpful? Give feedback.
There are many ways to approach implementing configurable RBAC support in a Moleculer system but how this would look is highly dependent on your system and what is in scope as far as access control requirements. Consider the following questions: