github GlassHaven/Haven v5.30.0

latest releases: v6.0.6, v6.0.5, v6.0.4...
6 months ago

v5.30.0 — WireGuard / Tailscale routing for non-SSH transports (#149)

bb010g asked in #149 for the per-app WireGuard / Tailscale tunnels to apply beyond just SSH-family transports. They now do.

Per-transport coverage

Transport How it tunnels
SSH / Mosh / ET JSch Proxy (existing path, lifted to one dispatch site)
VNC Tunnel.dial() → TunneledSocket → VncClient.start(socket, host)
SMB TunnelSocketFactory → SmbConfig.builder().withSocketFactory(...)
Reticulum socketDialer lambda → reticulum-kt's TCPClientInterface
rnsh rides Reticulum, no rnsh-side change
RDP localhost SOCKS5 listener → vendored RFC 1928 SOCKS5 client in IronRDP
rclone localhost SOCKS5 listener → HTTPS_PROXY env on the rclone process

Refcount-aware: multiple profiles sharing one tunnel share one userspace handle (wireguard-go or tsnet), torn down only on the last release. The "near + new SMB profile both routing through upwg" case shares one WG handle, not two.

Legacy SOCKS5 / SOCKS4 / HTTP proxies are now also honoured for non-SSH transports — bb010g's stretch ask.

Verified end-to-end live

The SMB-over-WireGuard case from the issue (Samba server reachable only via the user's per-app WG tunnel) was driven through MCP-controlled integration tests on a real Pixel 8 + workstation. Refcount transitions, tunnel sharing, and round-trip file content all confirmed. Other transports (VNC / RDP / Reticulum / rclone / Tailscale path) are wired through the same abstractions and unit-tested but not yet exercised live — please report anything that breaks.

Smaller fixes

  • #148 Desktop-tab Disconnect now reads as a tab-close ✕ icon. Reset Zoom too.
  • README cleanup (downloads-badge stale-cache fix, language-count update, RELEASE.md docs blurb).

MCP coverage

The agent transport gained tunnel-side and connection-lifecycle tools so #149 integration tests can be driven without touching the device UI: list_tunnels, list_live_tunnels, create_tunnel, delete_tunnel, set_profile_routing, connect_profile, create_connection, delete_connection. Used these to drive the verification cycle described above.

Implementation notes

Comprehensive design overview on #149's implementation comment — covers the dual-surface Tunnel abstraction (dial for in-process Kotlin transports, localhost SOCKS5 listener for FFI-bound transports), the cross-cutting helpers (TunneledSocket, TunnelSocketFactory, TunnelResolver, ProxySocketFactory), and the per-transport rollout commits.

Full Changelog: v5.29.0...v5.30.0

Don't miss a new Haven release

NewReleases is sending notifications on new releases.