https://github.com/ops-center/auditsink-to-rbac
https://github.com/ops-center/auditsink-to-rbac
auditsink kubernetes nats-streaming
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ops-center/auditsink-to-rbac
- Owner: ops-center
- Created: 2019-04-05T05:28:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-10T12:19:36.000Z (over 6 years ago)
- Last Synced: 2025-04-14T14:17:11.962Z (6 months ago)
- Topics: auditsink, kubernetes, nats-streaming
- Language: Go
- Size: 14.3 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Audit: audit-policy.yaml
Awesome Lists containing this project
README
## AuditSink to RBAC
#### Prerequisite
- `go get -u github.com/searchlight/auditsink-to-rbac`### Start Minikube in one window
- `cd /home/$USER/go/src/github.com/searchlight/auditsink-to-rabac`
- `./minikube-start-dynamic-backend.sh`
- `kubectl apply -f audit-policy.yaml`
### In Second window
- `cd /home/$USER/go/src/github.com/searchlight/auditsink-to-rabac`
- `./nats-streaming-server --cluster_id=auditsink-cluster --store file --dir ./data --max_msgs 0 --max_bytes 0`
### In third window
- `cd /home/$USER/go/src/github.com/searchlight/auditsink-to-rbac`
- `go run main.go`
##### Now your are set. Your every ResponseComplete will be written to `audit.log` file and `Role`s and `RoleBinding`s will be saved to `-roles.yaml`