This release opens a fresh install at whatever address reaches it over plain HTTP, corrects namespace device counters left wrong by a rolling upgrade to v0.31, and lets the checkout directory name the Docker Compose project again. That last change needs attention before you upgrade an install that lives outside a directory named shellhub.
The checkout directory names the Compose project
Upgrading? Installs since v0.22.0 ran as Compose project
shellhubwhatever their directory was called. From v0.32.0 the project takes the directory's name, so an install in/opt/shellhub-prodwould come up as a new, empty project.bin/docker-composedetects this from the running containers and refuses to start until you add one line to.env.override:COMPOSE_PROJECT_NAME=shellhubIf you already ran
docker compose down, there are no containers left to detect: set the line before upgrading, or the gateway's certificates start empty under the new name.
Two checkouts on the same Docker daemon no longer share containers. COMPOSE_PROJECT_NAME and --project-name still take precedence (#8084).
Postgres keeps its data in an anonymous volume. docker compose down removes the container, and the next up starts with an empty database. Use stop and start to restart an install.
A fresh install answers at any address over plain HTTP
Without automatic HTTPS, the gateway serves the console at any host name or IP. A new install opened at http://<server-ip> reaches the setup page, and an agent pointed at that IP connects. With SHELLHUB_AUTO_SSL=true the site stays on SHELLHUB_DOMAIN, the one name its certificate covers (#8083).
SHELLHUB_DOMAIN now accepts an IPv4 address and labels that start with a digit, such as 1password.com or sslip.io names. Before, these crash-looped the server. /info keeps an IPv6 host whole.
Namespace device counters are recounted
During a rolling upgrade to v0.31, replicas still on v0.30 counted some device writes twice, and nothing corrected the drift afterwards. A migration recounts each namespace's device counters once while the server starts, and leaves correct ones untouched (#8102).
Also in this release
Fixes
- Writing to a resource that another request deletes at the same moment answers 404 instead of 500: API keys, access policies, SSH identities, public keys, devices, namespaces and tags (#8073, #8074)
SHELLHUB_ENTERPRISE_ADMIN_USERNAMEandSHELLHUB_ENTERPRISE_ADMIN_PASSWORDare removed. Nothing read them: the Admin Console opens for any user with admin rights, starting with the account created on the setup page (#8088)bin/setupopens the setup page at the instance's configured URL instead ofhttp://localhost(#8087)- Console: the web endpoint device picker searches on the server, so devices past the first 20 can be picked; observers no longer see a rename button on container pages; Enter on a link inside a table row follows the link; a perpetual license shows "Never" as its expiry (#8068, #8085, #8104, #8106)
API changes
- The OpenAPI spec documents the device choice limit and the 400, 404 and 409 answers when a choice is refused (#8105)
Cloud
- Invitation emails are limited: a namespace emails an address at most once an hour, and an address receives at most five invitation emails an hour from all namespaces
- Choosing which devices to keep is refused above the device limit, and for a subscribed namespace
- Concurrent SAML sign-ins no longer share one service provider
- A bucket read error no longer overwrites an archived recording. The bucket credentials need
s3:ListBucket: without it, a missing recording reads as a bucket error
Under the hood
- The console's device chooser tabs, session table columns, tag name rule and lockout countdown share one implementation each (#8072, #8103, #8107, #8111)
- The invitation notification carries the inviting namespace (#8109)
- Dependency updates via Dependabot and Renovate
Full Changelog: v0.31.1...v0.32.0