github GlassHaven/Haven v5.68.18

latest releases: v6.0.4, v6.0.3, v6.0.2...
4 months ago

πŸ”’ Remote-desktop connections now pin the server's TLS certificate on first use β€” a security review of every connection type found the VNC (VeNCrypt/X509) and RDP TLS paths accepted any certificate, leaving both open to man-in-the-middle interception. Both now record the certificate the first time you connect and refuse a changed one until you explicitly accept it β€” the same trust-on-first-use model as SSH host keys, sharing one trust store. From the same review: silent SSH connects (background and agent paths) fail closed on an unknown host key instead of proceeding; mail accounts configured for TLS now require STARTTLS rather than silently falling back when the server doesn't offer it; VNC remoteβ†’local clipboard sync is opt-in (default off), so a compromised server can't quietly read what lands on the phone's clipboard; backup encryption moved from 100k to 600k PBKDF2 iterations under a versioned envelope; rootfs archive extraction guards against zip-slip path traversal and deletes symlink-safely; and the terminal's native JNI layer got bounds/overflow hardening. The new host-key and clipboard strings are translated in all 11 languages.

πŸ€– send_to_agent no longer garbles messages to plain shells β€” it always wrapped the message in bracketed-paste markers, so a target that never enabled bracketed paste (a plain busybox/dash shell) received the markers as literal text and mangled the command. It now wraps only when the target has actually turned bracketed paste on (#226).

πŸ”Œ The agent (MCP) endpoint now self-heals and no longer stalls on non-ASCII β€” two fixes to the agent transport that the SSH terminal beside it already got right. The endpoint's accept loop is a background thread that the OS can kill when it trims the app; nothing was restarting it, so a still-up carrier could sit in front of a dead endpoint until you toggled the setting. It now revives on the same triggers the SSH sessions use (return-to-foreground and network-available). Separately, the request parser counted characters against a byte length, so any tool call carrying a multibyte character (an emoji, CJK, an accented letter) stalled until a 70-second timeout β€” it now reads the body by byte length and returns instantly. Both were reproduced and fixed on-device.

πŸ”’ Agent endpoint security hardening β€” a staged review of the agent (MCP) transport, bringing it to the same bar as the SSH stack (docs/design/mcp-backbone.md). The request parser now caps body and header size (an oversized Content-Length could exhaust memory) and rejects cross-origin browser requests to the loopback endpoint. Beyond that, three changes tighten who an agent client is and what it may do:

  • Pairing tokens. A paired client is now identified by a 256-bit secret it was issued when you approved it β€” not by the name it claims. It sends that token on every request; only its SHA-256 is stored on the device. A client that presents no token (or a wrong one) is treated as new and must be approved again. Approving a client on the phone is the one and only way in.
  • Un-pairing takes effect immediately. Removing a client (from the tool or Settings β†’ Agent endpoint β†’ Paired clients) now revokes its token on the spot, not just after the next app restart.
  • Tunnelled traffic is never treated as on-device. The "trust local clients" option applies only to genuine on-device clients; a client reaching the endpoint through a reverse tunnel still has to be approved, even though it arrives on 127.0.0.1. Loopback trust is also off by default now.

Each of these was verified on-device against the live endpoint. Existing clients re-approve once on first connect after updating; configure your client (or the failover proxy) to send the token it's issued to stay paired across reconnects.

πŸ“– The agent's full tool surface is documented β€” docs/mcp-tools.md lists every tool an agent can call, its arguments, and exactly when Haven asks for your approval (every call / once per session / never), generated from the live code so it can't drift. Under the hood the transport was re-architected into a shared protocol module and per-domain tool providers, with no change to how any tool behaves.

Full Changelog: v5.68.17...v5.68.18

Don't miss a new Haven release

NewReleases is sending notifications on new releases.