A NodeJS micro-service solution based on Consul, writing by Typescript language and NestJS framework.
Please set this configurations into consul kv named example-service-rbac.
kind: Account name: test --- kind: Role name: admin rules: - resources: ["hero"] verbs: ["get", "list"] --- kind: RoleBinding role: admin accounts: - test
How to run
yarn yarn start
Then visit http://localhost:3004/heros?user=test