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.
- Host: GitHub
- URL: https://github.com/nest-cloud/nestcloud-rbac-examples
- Owner: nest-cloud
- Created: 2019-04-27T02:55:21.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-12T01:42:51.000Z (over 2 years ago)
- Last Synced: 2025-01-19T04:44:53.226Z (5 months ago)
- Language: TypeScript
- Size: 1.13 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
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
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