Skip to content

nest-cloud/nestcloud-rbac-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NestCloud

NPM Version Package License NPM Downloads Travis Linux Coverage

A NodeJS micro-service solution based on Consul, writing by Typescript language and NestJS framework.

Dependency

  • Consul

Rbac Configurations

Please set this configurations into consul kv named nestcloud-rbac-examples-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:3000/heros?user=test

About

A rbac example for nestcloud.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published