Let reviewers label decisions from the Grafana review dashboard #24
Loading…
Reference in a new issue
No description provided.
Delete branch "review-labels"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Reviewers can now mark a decision False positive or Should be blocked from the review dashboard. Labels are recorded for retraining and change nothing live.
How it works
centinela-labels), so the request comes from Grafana's server inside the cluster. Only people who can sign in to Grafana can label, and nothing new faces the internet.review.listenservesPOST /v1/labels, which needsCENTINELA_REVIEW_TOKENas a bearer token. The token is env only, at least 32 characters, or startup fails.X-Grafana-Userheader that Grafana's data source proxy adds, and the time from the server. Neither can be set in the label itself.review.labels/CENTINELA_LABELS(one JSON line each) and logged asmsg=label. A new Labels panel lists them, and the Requests table gains a Status column.Testing
Bearer, an unknown label, a bad id, a body that isn't JSON, an oversized body.go vetandgo test ./...pass.Rollout (gitops, after merge)
centinela-labelsthat sends the token as a secure header, set[dataproxy] send_user_header = true, and update the review dashboard copy.review.listen: 0.0.0.0:9110, andCENTINELA_LABELS=/var/lib/centinela/labels-$(POD_NAME).jsonlas env;centinela-reviewService on port 9110, and a NetworkPolicy admitting only Grafana to that port.🔎 ojo scan results
No findings.