Skip to content

TGK 0.5.0

Latest

Choose a tag to compare

@github-actions github-actions released this 30 Nov 13:40
· 3 commits to main since this release

Added

  • Agents (MCP) can use open SSH tabs: list_sessions lists the terminal tabs open in TGK, and run_command and the
    file tools take session instead of host to work over a tab's own connection (no new sign-in, also for hosts that
    ask for a one-time code and for Quick Connect tabs, which follow the defaults for all hosts). read_terminal reads
    a tab's screen and history, and send_to_terminal types text and keys into it, for shells and programs a separate
    command cannot reach (after su, in a container, a device console). Typing needs approval in Ask mode and is refused
    in Read only. See docs/AGENTS.md, "Open sessions".
  • Sync server packages with automatic updates: the sync server now has releases of its own (server-vX.Y.Z,
    apart from the client's; changes in docs/SERVER-CHANGELOG.md), with ready-to-run Linux builds and
    tgk-server-manage.sh, which installs the server on any systemd Linux (a Proxmox LXC too) and then looks after it:
    every night it installs a newer server release of the same MAJOR version (checked against SHA-256 sums; the
    database is snapshotted first, and a version that does not start is rolled back and skipped) and backs up the
    database. A new install has self-registration off. See docs/SERVER.md.
  • tgk-server --known-proxy <ip|cidr>: trusts X-Forwarded-For/-Proto from a reverse proxy on another machine
    (e.g. HAProxy ending TLS for a subdomain). Before, only a proxy on the same machine was trusted, so behind another
    one every client had the proxy's address and they all shared one sign-in rate limit.
  • tgk-server backup <file>: a consistent copy of the database while the server runs (no sqlite3 needed), and
    --version.

Changed

  • The tab strip is the window's title bar on Windows: the system title bar above the tabs is gone, and the strip
    has its own minimize, maximize/restore and close buttons at the right (the sign-in screen has them too). Its empty
    space works like a title bar: drag it to move the window or snap it to the screen's edges, double-click it to
    maximize, right-click it for the window menu. Resizing from the edges, Win+arrow keys and the Windows 11 snap layouts
    on the maximize button work as before. Linux and macOS keep the system title bar for now. --system-titlebar brings
    the old title bar back.
  • Sync keeps edits made on two devices: when another device changed the same entry before this one's change
    reached the server, the two are merged instead of the last one silently winning: fields changed on one device only
    are kept from that device, a field changed on both keeps this device's value (TGK says so), and an edit wins over a
    delete. TGK also notices a server restored from an older backup and uploads again what it lost. This needs a sync
    server with protocol 2 (tgk-server 1.0.0); TGK refuses older servers before using your password, and such servers
    in turn ask TGK 0.4 and older to update.
  • Agent access Full now means full: no more approvals for sudo or for the built-in protected paths (keys,
    .env, /etc/shadow, credentials), including commands that only might reach them (globs, variables, recursive
    searches). Only the protected paths you add to a host or group still ask. Read only and Ask are unchanged.
  • tgk-server no longer needs the ICU library (libicu), which minimal containers lack.

Fixed

  • Vault sync keeps what newer clients wrote: saving an identity, known host, saved tabs or the vault settings no
    longer drops fields added by a newer TGK; tunnel types, sign-in methods and agent modes from a newer TGK are kept (and
    never used as something else) instead of making the host or identity unreadable; and an item this version cannot
    read is hidden instead of showing a stale copy that could be saved over the newer one.
  • Agents on Windows: an agent going away ends its calls. When its tgk-mcp ended abruptly (the client closed),
    TGK saw a reset instead of end-of-file and let the agent's calls run on, with their approval dialogs still open.
  • TGK_CONFIG_DIR sets TGK's config directory on every platform (it also holds the agent socket then). On
    Windows, where .NET ignores an APPDATA override, the agent tests used to find a TGK running on the machine instead
    of their own; they now pass there too, and scripts/test.sh runs on Windows (Git Bash).
  • tgk-server under systemd (or any start from /): it no longer watches the whole file system for settings
    files before listening, which took minutes and hundreds of MB of memory; it now starts in a moment.
  • Agents (MCP) from Claude Desktop on Windows: tgk-mcp could not reach TGK when started by an MSIX-packaged
    client (Claude Desktop's Code tab), which sees AppData redirected, and reported "TGK is not running" although TGK
    was serving. The agent socket is now in %USERPROFILE%\.tgk; tgk-mcp also names the socket error it got.

What's Changed

  • Agents: socket for MSIX clients, open SSH tabs, Full access that asks for nothing built in by @AlexandruMindra in #5
  • TGK_CONFIG_DIR, agent tests isolated on Windows, a dropped agent ends its calls by @AlexandruMindra in #6
  • Server ready for production: own release line, sync protocol 2, hardening by @AlexandruMindra in #7
  • Website for tgk.aptsolutions.ro by @AlexandruMindra in #9
  • Client: the tab strip is the window's title bar on Windows by @AlexandruMindra in #8

Full Changelog: v0.4.0...v0.5.0