mirror of
https://github.com/block/buzz.git
synced 2026-11-27 19:52:31 +00:00
feat: add read-only deployment moderation dashboard (#1999)
Signed-off-by: npub1dccv64krpcpse5cmkzfeh998cftungyatw3djt8jwdw6g43f7fyqzzmrf7 <6e30cd56c30e030cd31bb0939b94a7c257c9a09d5ba2d92cf2735da45629f248@sprout-oss.stage.blox.sqprod.co> Co-authored-by: npub1ntr8jjcqq6gt06q5avvqttfjgpwshmra22pcmcagdnukw4ja4nqqsa9g54 <9ac6794b000690b7e814eb1805ad32405d0bec7d52838de3a86cf967565dacc0@sprout-oss.stage.blox.sqprod.co> Co-authored-by: npub1dccv64krpcpse5cmkzfeh998cftungyatw3djt8jwdw6g43f7fyqzzmrf7 <6e30cd56c30e030cd31bb0939b94a7c257c9a09d5ba2d92cf2735da45629f248@sprout-oss.stage.blox.sqprod.co>
This commit is contained in:
38
docs/admin/README.md
Normal file
38
docs/admin/README.md
Normal file
@@ -0,0 +1,38 @@
|
||||
# Read-only deployment moderation dashboard
|
||||
|
||||
Buzz can expose a private, deployment-wide read-only dashboard from the existing
|
||||
relay process. It shows open moderation reports and recent product feedback.
|
||||
|
||||
Configure `BUZZ_ADMIN_HOST` to activate the dashboard. A private ingress limits
|
||||
access to the operator VPN or approved source IPs.
|
||||
|
||||
Required configuration:
|
||||
|
||||
```text
|
||||
BUZZ_ADMIN_HOST=admin.example.com
|
||||
BUZZ_ADMIN_WEB_DIR=/srv/buzz/admin-web
|
||||
```
|
||||
|
||||
The relay requires the configured admin host and matching browser origin.
|
||||
Requests and responses are bounded and uncached. The deployment routes admin
|
||||
traffic through the private ingress.
|
||||
|
||||
When the UI runs in a separate pod, proxy `/api/admin/v1/*` to the relay while
|
||||
preserving the admin `Host` header. A `NetworkPolicy` grants the admin pod access
|
||||
to that relay path.
|
||||
|
||||
Read routes:
|
||||
|
||||
- `GET /api/admin/v1/reports`
|
||||
- `GET /api/admin/v1/reports/:id`
|
||||
- `GET /api/admin/v1/feedback`
|
||||
- `GET /api/admin/v1/feedback/:id`
|
||||
|
||||
Report reads accept optional `communityId`, `status`, `reportType`, `targetKind`,
|
||||
`after`, `before`, and `limit` parameters. Limits are capped at 200. Feedback is
|
||||
a bounded newest-first summary from the existing product-feedback repository.
|
||||
|
||||
For local review, run `just admin-seed` before `just admin`. The seed command
|
||||
also uploads real image and diagnostic fixtures to local MinIO. Feedback search
|
||||
and filters run over the bounded browser result set; the **Acted on** checkbox is
|
||||
stored in that browser's local storage.
|
||||
Reference in New Issue
Block a user