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 7b5f1ad2bb
commit 120d3dfc82
24 files changed
+2578 -9

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
# Gateway for the ts3 development server (dev/docker-compose.yml).
# cargo run -p tsc-gateway -- --config dev/tsgw-ts3.toml
[server]
# Inside the container the voice port is always 9987.
voice_port = 9987
[query]
transport = "raw"
addr = "127.0.0.1:10011"
user = "serveradmin"
password = "tsc-dev-admin"
allowlisted = true
[listen]
bind = "127.0.0.1:7787"
[relay]
idle_teardown_secs = 30
[history]
path = "dev/.state/tsgw-ts3.db"
+22
View File
@@ -0,0 +1,22 @@
# Gateway for the ts6 development server (dev/docker-compose.yml).
# cargo run -p tsc-gateway -- --config dev/tsgw-ts6.toml
[server]
# Inside the container the voice port is always 9987.
voice_port = 9987
[query]
transport = "ssh"
addr = "127.0.0.1:10022"
user = "serveradmin"
password = "tsc-dev-admin"
allowlisted = true
[listen]
bind = "127.0.0.1:7788"
[relay]
idle_teardown_secs = 30
[history]
path = "dev/.state/tsgw-ts6.db"