TalePanel security model and open gaps
A game panel hands people a console, a file manager and a mod installer on your machine. TalePanel treats all of that as untrusted input. This page summarizes the security model. The authoritative documents are SECURITY.md and the changelog.
Reporting a vulnerability
Section titled “Reporting a vulnerability”Do not open a public GitHub issue. Email info@diengdoh.com with a description, steps to reproduce, the affected version and your assessment of impact. Reports are acknowledged within 48 hours. The aim is a fix within 7 days for high-severity issues (RCE, auth bypass, SQL injection, data disclosure). Please allow 30 days before public disclosure.
Security fixes go to the main branch and the most recent minor release.
What a default install guarantees
Section titled “What a default install guarantees”A panel installed with scripts/install.sh:
- Generates every secret with
openssl rand -hex 32: JWT signing, refresh tokens,TOTP_ENC_KEY, and the PostgreSQL and Redis passwords. - Has no seed account and no default password. The owner is created during install.
- Requires owner and admin passwords of at least 12 characters with a digit and a symbol.
- Encrypts TOTP secrets at rest with AES-256-GCM.
- Encrypts server backups with ChaCha20-Poly1305 under a panel-managed key before the archive is written, so both the local copy and any off-site upload are sealed. The key is stored encrypted in the panel database (never on the node), can be rotated, and older backups stay restorable.
- Stores refresh tokens as SHA-256 hashes and signs access tokens with HS256. Logging out blocklists the access token’s ID.
- Rate-limits per client IP with a Redis sliding window: 30 requests per minute on
/auth/*, 120 per minute elsewhere. - Terminates TLS in Caddy with automatic Let’s Encrypt certificates.
- Sends
X-Frame-Options: DENY,X-Content-Type-Options: nosniff, a strict Content-Security-Policy,Referrer-Policy: strict-origin-when-cross-originand a Permissions-Policy. - Refuses to start with placeholder secrets.
Accounts and sessions
Section titled “Accounts and sessions”- Passwords are hashed with bcrypt.
- Access tokens live in the browser’s memory only, never in
localStorage. A reload restores the session from an httpOnly refresh cookie. - Refresh tokens rotate on use, with a 30-second grace period so parallel tabs do not log you out.
- Expired sessions are deleted automatically: every 6 hours the API removes sessions that expired more than 30 days ago.
- Optional TOTP two-factor login with ten single-use recovery codes. Only SHA-256 hashes of the codes are stored, a code works once even under parallel requests, and every use is audit-logged. See Two-factor login.
- Owners can require 2FA for admins and owners (Admin → Integrations → Require 2FA for admins). Staff without 2FA then reach only their own account until they set it up, and their API keys stop working. See Two-factor login.
- With SMTP set up, users get an email when their account is signed into from a browser that has not been used from that network (IPv4 /24, IPv6 /48) in the last 30 days. It names the time, IP, browser and sign-in method; each user can turn it off.
- A user who lost both the authenticator and the recovery codes, or forgot the password, is helped by an operator with
tale-cli admin disable-2faortale-cli admin reset-password. Both write an audit entry. - Every server route checks membership and a permission. See Roles and permissions.
- Write actions are written to an audit log. The client IP comes from the trusted proxy chain, and secrets are redacted, including 2FA and recovery codes.
- API keys (
tp_...) are stored as SHA-256 hashes and shown once. A key is limited to the scopes and servers picked for it and may only call a fixed list of server routes; account, 2FA, admin, node, file manager, mod, invitation and key-management routes refuse keys. See API keys. - Optional
ADMIN_IP_ALLOWLISTin the panel.env(comma-separated IPs or CIDRs) restricts/api/v1/admin/*and the node management routes to those addresses. Other addresses get403. Empty, the default, changes nothing; a malformed value stops the API at startup.
Hostile input
Section titled “Hostile input”- SQL is always parameterized.
- Console input with control characters, including line breaks, is rejected for every caller. Quick-command parameters are restricted further.
- Files: every file operation stays inside the server’s own directory and never follows a symlink planted there. Config writes are atomic.
- Archives: zip-slip is blocked, symlinks are skipped, and extraction stops at 200,000 entries or 20 GiB.
- Mod downloads only reach public addresses over https on port 443, with the address pinned per hop, redirects re-checked and proxies ignored. This blocks SSRF into your network or cloud metadata. Downloads are capped at 512 MiB.
- Alert webhooks must be https on port 443 to a public host, with the same protections and no redirects.
- Names: world names
[A-Za-z0-9_-]{1,64}, player names[A-Za-z0-9_]{1,32}. - Request bodies are limited to 1 MiB by default, with larger limits for uploads, file edits and daemon callbacks.
Panel and daemon
Section titled “Panel and daemon”- Each node gets its own token at enrollment. The panel stores only a SHA-256 hash; the daemon compares tokens in constant time, and an empty token never matches.
- Enrollment tokens are single-use and expire after 15 minutes.
- Panel and daemon talk over mutual TLS. The panel runs a private CA and issues each node a certificate on its first start; the node’s key never leaves the node. The panel checks the node’s certificate by CA and node UUID (not hostname), the node accepts only the panel’s own client certificate, and the node token is still checked on every request.
- Certificates renew while running, 30 days before expiry (daemon v0.15+). The owner can rotate the panel CA without downtime; a node accepts a new CA only with a cross certificate from a CA it already trusts. See Node certificates and CA rotation.
- Since v0.14 a node accepts only mutual TLS: it refuses plaintext connections and exits if it cannot get its certificate from the panel. Only for a panel older than v0.12,
TALEDAEMON_REQUIRE_MTLS=0andTALEDAEMON_ALLOW_LEGACY_BEARER=1in the node’s.envbring back the old token-only transition mode. - Game server processes do not inherit the daemon’s secrets, such as its node token.
- When the daemon runs as root (the default container), every game server runs under its own unprivileged Linux user (
tpsrv<uid>) with no extra groups,no_new_privs, a minimal environment and its own temp directory. Its directory belongs to it with mode 0700. The node’s own files (TLS key, backups, rclone and downloader data, config) are root-only, so a malicious plugin cannot read the node token, the node certificate or other servers’ files. File work the daemon does in a server’s directory runs with that server’s file permissions, so planted symlinks cannot steer it elsewhere. Leftover processes are killed when a server stops, starts or is deleted.TALEDAEMON_SERVER_ISOLATION=auto|uid|offcontrols this;autoturns it off and logs an error on file systems that ignore file owners. - Since v0.16 a sandbox adds three layers on top (
TALEDAEMON_SERVER_SANDBOX=auto|strict|off,autoby default):- A system call filter (seccomp): game servers cannot debug other processes (
ptrace), mount anything, create namespaces, or usebpf,io_uring,userfaultfd,perf_event_open, the kernel keyring, kernel modules,kexec,reboot, swap, clock or hostname changes. - A network guard (nftables): game servers cannot connect to anything on their own node (the daemon’s port, other servers, other local services; DNS stays allowed) or to the cloud metadata address. Internet and player traffic are unchanged. It needs the
NET_ADMINcapability, which the daemon’s compose file grants. - Memory and task limits per server (
memory.max,pids.max) next to the CPU limit, where the daemon may manage cgroups. In the default Docker container the cgroup file system is read-only, so they are not applied there. - Admin → Nodes shows on every node card which layers are active.
strictmakes the daemon refuse to start without the filter and the network guard.
- A system call filter (seccomp): game servers cannot debug other processes (
- Offline Hytale binaries are copied per server, so one server cannot modify another server’s jar.
Known gaps
Section titled “Known gaps”These are open or not on by default. Plan around them:
- No certificate revocation list. A node or panel certificate stays valid until it expires (2 years) or its CA is rotated out. A leaked node token can still be used to request a node certificate, so treat the token like a private key; removing the node in the panel revokes it. Nodes on a daemon older than v0.15 cannot follow a CA rotation; update them before you rotate. See Node certificates and CA rotation.
- No container per server. Each server has its own Linux user and sandbox (see above), but servers on one node still share the process list (
psshows other servers’ command lines, not their environment) and the kernel. The network guard does not filter other machines on your LAN or services on the Docker host reached through its gateway address; use a host firewall for those. Provisioning (the Hytale downloader) still runs as root while the server is stopped. For plugins from people you do not trust, run one daemon per trust boundary. - No self-service account recovery. A user who lost both the authenticator and the recovery codes, or forgot the password, needs an operator to run
tale-cli admin disable-2faortale-cli admin reset-passwordon the panel host. There is no email-based reset. See Two-factor login. - Admin routes are reachable from any address by default. Set
ADMIN_IP_ALLOWLISTif you want to restrict them. - Test coverage is incomplete. The injection-relevant paths have unit tests; the rest is reviewed by hand.
Your responsibilities as operator
Section titled “Your responsibilities as operator”- Keep the panel and daemon hosts patched. Keep
fs.protected_hardlinks=1on daemon hosts (the default on current distributions). - Keep PostgreSQL and Redis off the public internet. The installer keeps them on the internal Docker network; do not publish their ports.
- Protect
/opt/talepanel/deploy/panel/.env. It is mode 600 and owned by root; keep it that way. - Back up the PostgreSQL database off the panel host. TalePanel does not back up its own control plane.
- Copy server backups off the node. They are stored next to the server and encrypted with the panel-managed key. Export that key (Admin → Integrations → Backup encryption) and keep it safe — a lost panel database makes encrypted backups unrecoverable. See Backups.
- Rotate your CurseForge API key if it leaks.
- Only enable the Hytale account link on servers whose plugins you trust.
- If you process personal data (player IPs, emails), publish a privacy policy and honour deletion requests.
Built by BitaceS · sudowl.com · Partner:
HytaleTalk
Free forever · AGPL-3.0 · Not affiliated with Hypixel Studios. · Impressum · Datenschutz
