An open API service indexing awesome lists of open source software.

https://github.com/nest-cloud/nestcloud-rbac-examples

A rbac example for nestcloud.
https://github.com/nest-cloud/nestcloud-rbac-examples

Last synced: 4 months ago
JSON representation

A rbac example for nestcloud.

Awesome Lists containing this project

README

        

[travis-image]: https://api.travis-ci.org/nest-cloud/nestcloud.svg?branch=master
[travis-url]: https://travis-ci.org/nest-cloud/nestcloud
[linux-image]: https://img.shields.io/travis/nest-cloud/nestcloud/master.svg?label=linux
[linux-url]: https://travis-ci.org/nest-cloud/nestcloud

# 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.

```yaml
kind: Account
name: test

---

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

---

kind: RoleBinding
role: admin
accounts:
- test

```

## How to run

```bash
yarn
yarn start
```

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