Skip to content
A rbac example for nestcloud.
TypeScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src some adjustments Apr 27, 2019
.gitignore
README.md
package.json
tsconfig.json
tslint.json
yarn.lock

README.md

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 example-service-rbac.

kind: Account
name: test

---

kind: Role
name: admin
rules:
  - resources: ["hero"]
    verbs: ["get", "list"]

---

kind: RoleBinding
role: admin
accounts:
  - test

Requirement Components

  • @nestcloud/common
  • @nestcloud/consul

Optional Components

  • @nestcloud/consul-service
  • @nestcloud/consul-loadbalance
  • @nestcloud/boot
  • @nestcloud/config

How to run

yarn
yarn start

Then visit http://localhost:3004/heros?user=test

You can’t perform that action at this time.