M4: tsgw gateway and tsc-gateway-proto

- tsc-gateway-proto: versioned JSON envelope (tsgw.v1+json), client and
  server messages, identity-challenge auth (ECDSA P-256 over a signed
  challenge), unique ids for TS3 (SHA-1) and TS6 (SHA-256, verified on
  6.0.0-beta13.1), hash-cash level.
- tsc-gateway (tsgw): axum WebSocket server; hub with one observer, a
  relay pool and a lookup query session; login by signature or token;
  permission mirroring via permoverview (server group/client/channel
  group/channel-client levels, skip and negate); per-user filtered
  presence (snapshot + diff deltas); channel/server chat relay with
  server-known nicknames, rate limit, idle relay teardown, pinned
  channels; SQLite tokens, history and audit; Dockerfile; admin guide.
- tsctl gateway client; smoke test covers gateway presence, chat both
  ways and refusal of unknown identities on TS3 and TS6.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
This commit is contained in:
Claude committed 2026-09-25 14:30:44 +00:00
1 parent 2380c970fb
commit 9b529ceff6
24 files changed
+2578 -9

No files matched your search

+5
View File
@@ -15,6 +15,11 @@ capture teaches something new.
"Unknown argument"):
- `initserver`: `virtualserver_address`, `virtualserver_version_sign`
- `initserver` / `notifycliententerview`: `client_is_streaming`
- **Confirmed**: unique ids differ. TeamSpeak 3 uses `base64(SHA1(omega))`
(28 characters), TeamSpeak 6 uses `base64(SHA256(omega))` (44 characters),
where omega is the base64 public key string. The same identity therefore has
a different `client_unique_identifier` on each server generation
(`tsc-gateway-proto::UniqueIds`).
- **Confirmed**: TS6 has no raw ServerQuery port; SSH query on 10022 and HTTP
WebQuery on 10080 (HTTPS 10443).
- **Reported**: beta13 made the Init1 puzzle difficulty adaptive to the server's