Skip to content

How to implement a RBAC system in Moleculer? #1193

Answered by ccampanale
CheaterScript asked this question in Q&A
Discussion options

You must be logged in to vote

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:

  • Do you need RBAC for inter-service communication, only external API consumption, or both?
  • What does your system do as far as authentication? (RBAC is a form of authorization control usually built on top of or along side authentication.)
  • What sort of API are you exposing (REST, GraphQL, etc.) and are you using custom or support Moleculer modules to expose it?
  • Where are your roles derived from? Do you want central dynamic role administration suppor…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@CheaterScript
Comment options

@ccampanale
Comment options

@CheaterScript
Comment options

Answer selected by CheaterScript
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants