Skip to content

v0.13.0

Choose a tag to compare

@github-actions github-actions released this 19 Nov 17:07
· 9 commits to main since this release

The first release that is not marked as a pre-release. Hytale server updates with a maintenance window, API keys for automation, each game server under its own Linux user, a live console over SSE, scheduled tasks, server templates, 2FA recovery codes, a try-it-locally demo, a new look with an optional game theme, and a long list of fixes.

Added

  • API keys for scripts, bots and monitoring: Settings → API keys. A key acts as its user but only with the rights picked for it (Power, Console, Manage, Backups, Players; reading servers is always allowed) and, optionally, only on chosen servers. It never gets more than its user has on a server, and it never reaches account, admin, node, file manager, mod, invitation or key-management routes: keys may only call an explicit list of server routes (models.APIKeyRoutes), everything else is refused. Keys look like tp_… and are sent as Authorization: Bearer tp_…; only their SHA-256 hash is stored, the key is shown once. Each key has an optional expiry (30 days, 90 days, 1 year or never), shows when and from where it was last used, and can be revoked at once; a disabled account's keys stop working. At most 25 keys per account. Actions made with a key are marked with the key's name in the audit log. API: GET/POST /api/v1/api-keys, DELETE /api/v1/api-keys/:id. Migration 047 replaces the unused api_keys table from the first schema. examples/api/talepanel.sh takes TALEPANEL_API_KEY and prints the API's error message when a call fails.
  • Hytale server updates. The panel now records which Hytale build it installed on each server (shown next to the version on the server page) and compares it with the newest build of the server's channel (Release or Pre-release). When a newer build exists the server page shows Update available with an Update now button (optional player warning 0–15 minutes when the server is running). A new task type Hytale update in the Schedules tab is the maintenance window: at each run it does nothing if the server is up to date; otherwise it warns the players, takes a backup (the update stops if the backup fails), stops the server, installs the new build and starts the server again if it was running. It also runs on a stopped server, which stays stopped. If the node keeps the old files (download failed, local hytale-bin, older daemon) the update is reported as failed and the server comes back on the old build. Progress goes to the server console as [TalePanel] lines. A server on a pre-release build is never switched back to release automatically (release servers cannot open pre-release worlds). The newest three pre-update backups per server are kept. Servers installed before this release show the build as unknown until their next update. API: GET/POST /api/v1/servers/:id/update; task type update. Migration 046 adds the build columns, the update task type and the update backup trigger. The node daemon now tells the panel after each install whether it downloaded new files.
  • Per-server process isolation, step 1. When the node daemon runs as root (the default container), every game server now runs under its own unprivileged Linux user (tpsrv<uid>, UIDs from 2000000, never reused after a server is deleted) with no extra groups, no_new_privs, a minimal environment and its own temp directory. Its directory belongs to it with mode 0700, and the node's own files (TLS key, backups, rclone and downloader data, config) are root-only, so a malicious plugin can no longer read the node token, the node certificate or other servers' files. The daemon does its file work in a server's directory (file manager, mods, worlds, backups, restores, imports, plugin scan) with that server's own file permissions, so a server that swaps files for symlinks cannot steer it into node files or other servers. Processes a server leaves behind are killed when it stops, before it starts and before it is deleted. Existing servers are converted when the daemon starts. TALEDAEMON_SERVER_ISOLATION=auto|uid|off (default auto: on as root, if the data directory keeps file owners) and TALEDAEMON_SERVER_UID_BASE control it.
  • The daemon image runs tini as PID 1, so processes a game server orphans are reaped instead of piling up as zombies. The image no longer makes /srv/taledaemon world-writable.
  • Theme switch in the user menu (top right): Classic or Game. The choice is stored per browser. Classic is the default.
  • Game theme: a hand-drawn pixel-art night scene behind the panel (moon, pine forest, campfire and torches), stone-framed panels and game-style buttons. The server list becomes a server select like in a game's multiplayer menu: tabs for all/online/stopped servers, a block icon per server status, keyboard selection (arrow keys, Enter to open, double-click) and Open, Start/Stop, Restart, New Server and Delete buttons. The scene is drawn in the browser, no image files are downloaded; with "reduce motion" enabled in the operating system it stays still, and it pauses in background tabs.
  • tale-cli admin disable-2fa --email <address> [--revoke-sessions]: turns off 2FA for a user who lost their authenticator, writes an audit entry. Replaces the SQL workaround in SECURITY.md.
  • tale-cli admin reset-password --email <address>: sets a new password (owner policy) for a user who forgot it, signs them out everywhere and writes an audit entry.
  • 2FA recovery codes. Enabling 2FA now shows ten single-use recovery codes (with Copy and Download .txt); each one signs you in once in place of the authenticator code ("Use a recovery code" on the 2FA login step, dash and case don't matter). Settings → Security shows how many are left and can generate a new set (asks for your password and an authenticator code; the old codes stop working). New endpoints POST /api/v1/auth/2fa/recovery-codes and GET /api/v1/auth/2fa/recovery-codes/status; the confirm response carries recovery_codes. Migration 044 adds the user_recovery_codes table. Users who enabled 2FA before this release have no codes yet and can generate them under Settings → Security.
  • Optional ADMIN_IP_ALLOWLIST (comma-separated IPs/CIDRs) restricts /api/v1/admin/* and the admin node routes to known addresses. Empty (the default) changes nothing; a malformed value stops the API at startup.
  • GitHub issue forms (bug report, feature request), contact links and a pull request template.
  • examples/demo/run-demo.sh: the whole stack on your own machine with simulated Hytale servers (players join and chat, console commands work), three servers from templates and two schedules, so the panel can be tried without a VPS or a Hytale download. examples/demo/compose.yml runs the same demo with nothing but Docker (docker compose -f examples/demo/compose.yml up -d --build). examples/api/talepanel.sh: a small API client for scripts and cron jobs.
  • Server templates: the create-server form starts with template cards and a "Blank" option. Five built-in templates ship with the panel (migration 045): Survival small (2–10 players, 3 GB RAM), Survival community (10–40 players, 6 GB RAM), Creative / build server (4 GB RAM), Minigame lobby (network hub) and Testing / modding sandbox (pre-release, --accept-early-plugins). A template only fills in defaults; values entered in the form win, and the same rules apply as for settings chosen by hand: --allow-op still needs an admin, a network role still needs the network.manage permission. Built-in templates are read-only.
  • Admin → Templates: create custom templates, save an existing server's settings as a template, delete custom templates. API: GET /api/v1/server-templates, POST/PATCH/DELETE /api/v1/admin/server-templates, POST /api/v1/admin/server-templates/from-server/:id; POST /api/v1/servers accepts template_id and now also crash_limit, crash_window_s, launch_flags and network_role.
  • GET /api/v1/servers/activity: players online right now (per server and in total) and the number of players per hour over the last 24 hours, limited to the servers the caller can see. Counted from the player sessions the panel already records.
  • Scheduled server tasks: a Schedules tab on the server page runs restarts (optionally with an in-game warning 1–15 minutes beforehand), console commands and broadcast messages on a cron schedule, with presets for hourly, every 6 hours, daily 04:00 and weekly. Tasks run only while the server is running, at most every 5 minutes, and with the console role of the user who saved them: if that user loses access to the server or the role a command needs, the run is skipped and the reason shown. API: GET/POST /api/v1/servers/:id/tasks, PATCH/DELETE /api/v1/servers/:id/tasks/:taskId.
  • Live console: log lines, status changes and metrics now reach the server page over Server-Sent Events instead of being polled every second. A reconnect resumes after the last line shown, so nothing is lost or shown twice; streams end after 30 minutes and reconnect on their own. If the stream cannot connect three times in a row the page falls back to polling; the console header shows Live or Polling (click it to retry). API: POST /api/v1/servers/:id/stream-ticket returns a single-use ticket (valid 30 s) and GET /api/v1/servers/:id/stream?ticket=…[&after=<log id>] streams log, status and metrics events (permission server.view, at most 10 open streams per user). The access token is never put in a URL, and the request log redacts ticket query parameters. The Caddy template keeps the stream out of gzip.

Changed

  • Releases are no longer marked as pre-releases on GitHub and drop the -beta suffix (this is v0.13.0). The version stays below 1.0 while larger changes are still expected.
  • The panel knows its own version without APP_VERSION (it is built into the API), and the update notice under Admin appears only for a strictly newer release. Before, every release was a GitHub pre-release, so the check always got a 404 and never showed an update.
  • New default look, matching talepanel.com: warm dark palette with gold and ember accents, Alegreya and JetBrains Mono fonts, the voxel logo in the sidebar, on the login page and as favicon, squarer corners and visible borders on form fields. Fonts and icons are now served by the panel itself; the panel no longer loads anything from Google Fonts.
  • The dashboard shows real data: servers and how many are running, nodes with online/offline count (offline nodes shown as a warning), players online, node CPU/RAM/disk usage for admins, and player activity per hour. Values that aren't known yet show a dash instead of a number.
  • The notification bell lists open alert events and links to Alerts.
  • Creating a server checks the RAM limit like editing one does: at least 512 MB and no more than the node has. Before, any value was accepted at creation.
  • Login and registration use plain wording ("Sign in", "Password", "Create account"); the help menu links to the docs, Discord and GitHub issues and shows the installed version.

Fixed

  • A server stayed "installing" for good when the API restarted during an update or reinstall. A server that has been installing for more than 60 minutes is now set to stopped (with a note in its console log), so it can be started or reinstalled again.
  • TestNodeCSR_signsForAuthedNode failed when the router tests ran before it: they left the panel CA in the shared test database.
  • After a reinstall whose download failed, the node reported the server as stopped before it had put the old server files back, so a start right then could find no server files.
  • Off-site backups to OneDrive, Google Drive, Dropbox, S3 and B2 failed: the panel sent "obscure": null, which the node rejected. The panel now sends an empty list and the node accepts both.
  • Webhook and Discord alerts were mostly never delivered: they were sent with the request context, which is cancelled as soon as the API has answered.
  • Deleting a server you may not delete: the node wiped the server's files before the API checked the permission. The check now runs first.
  • Anyone who knew an invitation's token could decline it; now only the invitee can.
  • crash_limit: 0 in the server settings caused a database error (500) instead of a validation error (400).
  • Migrating a server onto a node that already runs a server on the same port was allowed; it is now refused.
  • Failed node calls lost the node's error text, so the panel showed a generic error.
  • An interrupted file upload reported "N file(s) uploaded" although files were missing.
  • The player page showed "Invalid Date" in the session history: the API sent join_at, the panel reads joined_at.
  • The node held a lock across the metrics read, so a slow server could stall start, stop and crash handling of other servers.
  • The session cleanup worker now stops on API shutdown.
  • CPU, RAM and disk alert rules never fired: the event was stored with the node ID in the server column, which the database rejected. A global rule now also raises its own event for each affected node instead of being suppressed for 15 minutes after the first one.
  • Node RAM was reported 1024 times too high (sysinfo 0.30 reports bytes, the daemon divided by 1024 once). Existing nodes correct their stored total on the next daemon start.
  • Per-server CPU always showed 0 % and node CPU was the average since boot; the daemon now measures CPU between samples.
  • Plugin commands were added again on every plugin scan (every 5 minutes), filling the Game Control panel with copies. Migration 042 removes the copies and prevents new ones.
  • Cross-node migration failed for every server archive over 2 MB (the daemon's import route kept the default body limit). The archive is now streamed to disk, up to 2 GiB.
  • A server that missed its startup timeout was shown as crashed but kept running unmanaged; Stop/Kill no longer reached it and Start launched a second process on the same data. It is now stopped.
  • A node set to "draining" was switched back to "online" by its next heartbeat.
  • Stop on a crashed or already stopped server (or an unreachable node) left it in "stopping" for good, which blocked reinstall and migration. The previous status is restored.
  • Invited server admins got 403 when saving server settings.
  • Switching a CurseForge mod to another version lost its project ID, so its versions could not be listed again.
  • Player detail page: name, playtime and status were empty, and op/mute/ban/whitelist could only be turned on; the session list showed no join time.
  • Editing a node's "Max Servers" always failed with 400.
  • Deleting a user who still owns servers returned 500; it now returns 409 with an explanation.
  • Invitations sent with different upper/lower case in the email address did not appear under "My invitations".
  • The daemon held an internal lock while writing to a server's console, which could stall other servers' start/stop while one server hung.
  • Removing a plugin, or a disabled mod (.disabled), deleted the panel entry but left the file on disk, and the next scan added it back. With the same file name in mods/ and plugins/, toggling flipped both entries. Mod routes take ?dir=mods|plugins now.
  • Two starts of the same server at nearly the same time (double click, a user start racing an auto restart) could launch two processes on the same data.
  • Downloading a large file from the file manager read it whole into the node's memory; downloads are streamed now.
  • Stopping a server that exited right after the stop command waited the full 30 s timeout and then sent a kill signal.
  • A failed MariaDB database creation left a half-created database behind that blocked every retry, and deleting a server left its MariaDB database and user behind.
  • Entering a wrong password or 2FA code when confirming or turning off 2FA signed the user out.
  • The server page showed "0/64" players; it shows the players online now.
  • Warnings and SEVERE lines from the Hytale server showed as INFO in the console, while a chat line containing "exception" showed as an error.
  • Server headers showed "vrelease"; patchlines are shown as "Release" / "Pre-release".
  • Ban, unban and whitelist returned raw internal error text with HTTP 400.
  • The dashboard displayed made-up numbers: a fixed weekly CPU/RAM chart, a drawn player curve, "N operational" even for offline nodes, "0 players" on every server card, and four sample notifications.
  • The RAM bars in the server list were filled with random values. The list now shows the configured RAM limit.
  • Console output contained raw ANSI colour codes from the Hytale server, shown as [m noise. They are now stripped.
  • The 2FA settings page used light-theme colours and was hard to read on the dark background.
  • The help menu showed a hard-coded "v1.0.0" and links that went nowhere; the login page had a "Lost credentials?" link without a function. Both fixed or removed.

Security

  • The panel stack now sets TRUSTED_PROXIES for Caddy. Before, the API saw every request as coming from Caddy: all users shared one login rate limit (one client could lock everyone out) and audit log entries had Caddy's IP.
  • Restoring an encrypted backup refuses an archive that is not encrypted. Someone with write access to the off-site storage could otherwise swap in an unauthenticated zip (e.g. with a malicious mod).
  • Alert webhook URLs (which contain their credential) are redacted from the audit log.
  • The node daemon no longer follows a symlinked mods/, plugins/, universe/ or worlds/ directory when scanning, toggling, removing or deleting, and file reads and downloads open the file without following a symlink swapped in after the path check. A server's files could otherwise reach into another server's data.
  • 2FA recovery codes are stored only as SHA-256 hashes and spent atomically, so the same code cannot sign in twice, even in parallel. Every use is audit-logged (without the code). Disabling 2FA, by the user or with tale-cli admin disable-2fa, deletes them.
  • The request audit log now redacts code (TOTP and recovery codes) and partial_token from /auth/totp/* bodies; before, the TOTP codes and the 5-minute partial login token were stored in plain text.

Upgrade notes

  • Run the installer's Upgrade mode on the panel and on every node: server updates and per-server isolation need the new daemon. Migrations 042–047 run when the API starts. See UPGRADING.md.

Build

  • The web panel has no ESLint warnings left (unused code removed, any types replaced).
  • CI runs gofmt, ESLint (@nuxt/eslint, new), cargo fmt --check and the daemon's test suite. The daemon was reformatted once with cargo fmt.
  • Release images are built per architecture on native GitHub runners (amd64 and arm64) instead of under QEMU emulation, with a build cache and timeouts. The v0.12.0-beta release hung for hours in the emulated arm64 web build. A release can be re-run for an existing tag from the Actions tab.