ksp gateway
DocsCLIksp gateway

ksp gateway

Command Reference

Run a protocol translation bridge terminating KSP sessions and forwarding to standard web services.

Purpose

Run a protocol translation bridge terminating KSP sessions and forwarding to standard web services.

Syntax

Command-line specification
bash / powershell
ksp gateway --config <PATH> [OPTIONS]

Options & Flags

Option FlagDescription
--config <PATH>Path to gateway routing configuration table (TOML format).
--port <PORT>External listening port for incoming KSP client connections.
--tls-terminateEnable 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.