feat(feedback): POST /v1/feedback files crash and bug reports as Gitea issues
A CLI user sends a crash report or /bug report with their own token; the registry files it as an issue in the private feedback repo, titled "[<tenant slug>] <kind>: <title>", with a provenance block (tenant, user, product, version, device, kind, time received) above the body. The caller gets the issue number only. - route group "feedback"; user tokens only; tenant from the principal - 10 reports per person and hour (in memory) - FEEDBACK_GITEA_URL / _REPO / _TOKEN; no token answers 503 - Gitea errors become 502 feedback_failed without body, URL or token - audit event feedback.submitted Refs platform/werkpilot#86 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q9inRayW7ztyk1uAtwMJPR
This commit is contained in:
1 parent
69c15be333
commit
553f4c52fe
13 files changed
+718
-16
No files matched your search
@@ -108,6 +108,7 @@ func TestOpenAPISpec_loadsAndIsConsistent(t *testing.T) {
|
||||
{"POST", "/v1/licences/heartbeat"},
|
||||
{"POST", "/v1/licences/ci"},
|
||||
{"POST", "/v1/licences/00000000-0000-0000-0000-000000000001/revoke"},
|
||||
{"POST", "/v1/feedback"},
|
||||
{"GET", "/.well-known/licence-keys.json"},
|
||||
{"GET", "/v1/tenants/00000000-0000-0000-0000-000000000001/managed-services"},
|
||||
{"GET", "/v1/tenants/00000000-0000-0000-0000-000000000001/contracts"},
|
||||
|
||||
Reference in new issue
Block a user