Skip to content

ADR-0010: SSH tunneling ​

Status: Accepted (2026-11-29)

Decision ​

  • The optional ssh-tunnel module provides local TCP port forwarding only. It has no reverse forwarding, no SOCKS or dynamic forwarding, no UDP and no Unix sockets.
  • Each forwarded connection is a direct-tcpip channel opened inside ossiframe-ssh on the server's existing connection. It reuses that connection's authentication and pinned host key and opens no new SSH connection. It runs no remote command.
  • Listeners bind only to 127.0.0.1. The address is a constant; no command or Rust API accepts a bind address.
  • Tunnels start and stop only on the user's action or an explicit call by the app's own code. Nothing starts automatically or reconnects, and there is no background process: tunnels end with the connection or the app.
  • The transport is behind cargo features: forward in ossiframe-ssh and tunnels in ossiframe-desktop. The tunnels manager is a public Rust API that does not need the terminal, filesystem, provisioning or AI features. Doctor enables none of them and registers no tunnel_* command; drift tests and a CI guard check this. Generated apps get tunnels only with --enable-tunnels.
  • The module registers no operations, so plans, the operation engine and the AI copilot cannot use it. Forwarded data is never logged, stored or inspected; only byte counts are kept.
  • Resources are bounded: running tunnels, connections (pending opens included) and saved configurations.

Consequences ​

  • Forwarding is not a read-only capability. A database client, admin tool or HTTP client used through a tunnel can change the remote service. Ossiframe does not see, review or track that traffic. It is also not tied to the operation lock.
  • While a tunnel runs, any program on this computer can connect to its loopback port. Loopback is not authentication.
  • The destination is reached from the server, so a tunnel can reach services on the server's private network that the SSH user's server can reach.
  • The steering text is unchanged: forwarding channels are not remote commands and give no shell or file access over IPC.

Released under the MIT License.