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:
1 parent
7b5f1ad2bb
commit
120d3dfc82
24 files changed
+2578
-9
No files matched your search
@@ -1,5 +1,6 @@
|
||||
//! `tsctl`: headless TeamSpeak 3/6 client for development and integration tests.
|
||||
|
||||
mod gateway;
|
||||
mod identity;
|
||||
mod observe;
|
||||
mod query;
|
||||
@@ -42,6 +43,8 @@ enum Command {
|
||||
Observe(observe::ObserveArgs),
|
||||
/// Read and write a channel's chat through an invisible query relay.
|
||||
Relay(observe::RelayArgs),
|
||||
/// Use a tsgw gateway as a user: presence, chat, history.
|
||||
Gateway(gateway::GatewayArgs),
|
||||
}
|
||||
|
||||
#[derive(Subcommand, Debug)]
|
||||
@@ -201,6 +204,7 @@ fn main() -> Result<()> {
|
||||
Command::Query(args) => tokio::runtime::Runtime::new()?.block_on(query::run(args)),
|
||||
Command::Observe(args) => tokio::runtime::Runtime::new()?.block_on(observe::observe(args)),
|
||||
Command::Relay(args) => tokio::runtime::Runtime::new()?.block_on(observe::relay(args)),
|
||||
Command::Gateway(args) => tokio::runtime::Runtime::new()?.block_on(gateway::run(args)),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -223,6 +227,7 @@ fn run_identity(command: IdentityCommand) -> Result<()> {
|
||||
let id = identity::load(&path)?;
|
||||
println!("uid: {}", identity::uid(&id));
|
||||
println!("level: {}", id.level());
|
||||
println!("omega: {}", id.key().to_pub().to_ts());
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user