Files
BetterDesk/betterdesk-server/api
UNITRONIX ea88c58a9e feat(server): add RustDesk-client API endpoints to Go server (Phase A)
Consolidate the RustDesk-client API surface onto the Go server (port 21114) as an additive, fully backward-compatible first step.

DB layer: add AuditConnection/AuditFile/AuditAlarm, UserGroup, DeviceGroup and Strategy models with 30 Database interface methods. Both SQLite and PostgreSQL gain the 6 new tables via additive CREATE TABLE IF NOT EXISTS migrations (no existing schema is altered). 7 round-trip + backward-compat migration tests pass.

API layer: new client_audit_handlers.go (audit conn/file/alarm POST public + GET behind audit.view, server-key, server-key/fingerprint, peer-key/{id}) and client_group_handlers.go (user-groups, device-group, strategies GET/POST). Routes registered in server.go; authMiddleware allowlist exempts the public client-reporting POSTs and server-key reads in a method-aware way so audit GETs stay protected. 4 handler tests pass.

No existing routes, schemas or the Node.js port 21121 surface are changed; existing instances are unaffected.

This commit was made possible thanks to Insolve.
2026-05-30 18:52:42 +02:00
..