github shellhub-io/shellhub v0.32.1

one hour ago

Replace a device that came back with a new MAC address

A VM recreated with a new network interface keeps its device key and hostname but reports a new MAC address, so it enrolls as a new pending device. Accepting it used to fail with 409 device duplicated, because the old offline device still held the name. The accept now also finds the offline twin by its device key, and the console turns the 409 into a Replace confirmation that merges the old device's name, sessions and tunnels into the new one. The pairing pre-check and the provisioning key auto-accept match by key the same way. (#8155)

/mcp takes only API keys

Breaking: /mcp now returns 403 to a caller that authenticated with a user login token. A namespace API key is the only credential it accepts, as the MCP docs already said. Idle MCP sessions expire after 10 minutes; a client whose session expired gets a new one on its next request. (#8120, #8117)

PATCH /api/devices/{uid} is gone

Breaking: the rename route deprecated since v0.27 is removed. Rename with PUT /api/devices/{uid}, which applies the device name rule that PATCH skipped. (#8114)

The agent sends its token only where it was told to

On a redirect, the agent now refuses a target on another hostname, a downgrade from https/wss to http/ws, and a fourth redirect in a row, before it resends the device token. This covers both the reverse tunnel and the REST client, and the log names the rule that refused the redirect. (#8125)

Closing a session stops what it started

When an SSH connection closes, the agent kills the session's whole process group instead of only the command it started. A background child (sleep 60 & wait) no longer outlives the session. (#8136)

Limits on what requests can store

Requests that store a name or a list now refuse oversized values with a 400, and the OpenAPI spec states each bound:

  • Names in request bodies (SSH identities, access policies, public keys) are 1 to 64 characters. The console stops input at 64.
  • Each user or API key holds at most 100 live SSH identities per namespace. At the limit, the console and the SSH client both say to remove a key first. Consumed and expired identities don't count.
  • Provisioning keys take at most 3 tags, following the same tag rule as the tag routes, plus 10,000 allowed identities of up to 64 characters and a webhook secret of up to 256.
  • Device pairing and auth bound info.*, identity.mac and public_key (4096, enough for an RSA 4096 PEM key).
  • The web endpoint TTL maximum is 2147483647, the largest value the database stores. Larger values used to come back as a 500.

(#8137, #8152, #8124, #8150, #8161)

Cloud and Enterprise

  • Breaking: web endpoint addresses are now random, and renewing an endpoint gives it a new address, so a link shared before the renewal stops working. Existing endpoints keep their address until their next renewal.
  • The admin CSV exports write a cell that starts with =, +, - or @ as text, so a spreadsheet won't run it as a formula.

Other fixes

  • The Docker connector stores container keys in SHELLHUB_PRIVATE_KEYS itself instead of its parent directory, and still reads keys an earlier version left in the parent, so device UIDs don't change. (#8119)
  • The web terminal refuses a private key it cannot sign with, before it tries to connect. (#8135)
  • Sign-in and MFA errors stay on the screen that raised them. (#8123)
  • The server and UI images upgrade busybox for CVE-2026-140044. (#8160)
  • wsconnadapter returns frame flush errors from Write. (#8159)

Dependency updates: Go modules (echo, mcp-go, golang.org/x, gronx, go-shellwords, docker compose), UI packages, GitHub Actions, mockery and @redocly/cli.

Full Changelog: v0.32.0...v0.32.1

Don't miss a new shellhub release

NewReleases is sending notifications on new releases.