ksp gateway
ksp gateway
Command ReferenceRun a protocol translation bridge terminating KSP sessions and forwarding to standard web services.
Networking & Diagnostics
RFC § 12 — Ingress Gateway BridgingPurpose
Run a protocol translation bridge terminating KSP sessions and forwarding to standard web services.
Syntax
Command-line specificationbash / powershell
ksp gateway --config <PATH> [OPTIONS]
Options & Flags
| Option Flag | Description |
|---|---|
| --config <PATH> | Path to gateway routing configuration table (TOML format). |
| --port <PORT> | External listening port for incoming KSP client connections. |
| --tls-terminate | Enable dual TLS/KSP termination on the same ingress interface. |
Example Usage
Example command
ksp gateway --config gateway.toml --port 9876
Expected Output
════════════════════════════════════════════════════════════ ══ KSP Enterprise Ingress Gateway ══ ════════════════════════════════════════════════════════════ [+] Binding interface: 0.0.0.0:9876 (Dual-stack IPv4/IPv6) [+] Loaded 4 routing rules from gateway.toml [+] Route 1: stream /api/* → http://internal-backend:3000 [+] Route 2: stream /ws/* → ws://internal-realtime:8080 [✔] Gateway ready. Accepting encrypted KSP sessions...
Implementation Notes
Used in production architectures to expose internal microservices safely to edge KSP mobile and web clients.