Security
A security model you can check.
HostYourServer runs software on machines you own, so this page sets out what the panel stores, what the agent is allowed to do, how each side proves who it is, and where those protections stop. Every figure is what the code does.
01Accounts
Sign-in that resists guessing and theft.
Passwords, sessions, and codes are stored only as hashes or sealed values, so a copy of the database doesn't let anyone sign in as you.
| Passwords | At least 12 characters, hashed with Argon2id using 19 MiB of memory and 2 iterations. |
|---|---|
| Sessions | A random 256-bit token in a __Host-session cookie that is HttpOnly, Secure, and SameSite=Lax. Only its SHA-256 hash is stored. A session ends after 30 days without use or 90 days after sign-in, and you can sign out any session from your account page. |
| Two-factor | Authenticator codes (TOTP, 6 digits, 30-second steps) that can't be used twice. Turning it on needs your current password. The secret is sealed with AES-256-GCM, and the ten single-use recovery codes are stored as hashes. |
| Wrong guesses | Every tenth wrong password or code in a row pauses sign-in for 15 minutes. After 100, a new device needs a password reset. Browsers you've signed in with are trusted for 180 days and counted on their own, so someone who only knows your address can't lock you out of them. |
| Email links | Confirmation and reset links carry a single-use 256-bit token in the URL fragment, which browsers never send to a server. They expire after 24 hours and 1 hour. Confirming a new account also asks for the password chosen at sign-up. |
| Bot checks | Sign-up and password reset need a Cloudflare Turnstile check, which the server verifies before it does anything else with the request. |
| Changing your email | Needs your password and a single-use link sent to the new address. The old address is told about the change. |
| Addresses stay private | Sign-up and password reset give the same answer, in the same time, whether or not an address has an account. |
| Security emails | You're told by email when your password changes, two-factor is turned on or off, recovery codes are replaced, or wrong codes pause your account. |
02Nodes
Your server dials out. Nothing dials in.
A node is a machine you connect by running the install command. Its agent holds one outbound connection to the panel and proves who it is every time it connects.
| Connection | One outbound WebSocket over TLS. Nothing on your server listens for the panel, so there's no port to open for it. |
|---|---|
| Enrollment | The install command carries a 256-bit token that works once and expires after 60 minutes. It's passed through the environment, not the command line, so other users of the server can't read it from the process list. |
| Identity | The agent generates an Ed25519 key on your server and sends only the public half. Every connection starts with a fresh 32-byte challenge, which the agent signs together with the protocol version and the node's ID, so a signature can't be replayed. |
| Liveness | A heartbeat every 30 seconds. A node that's silent for 90 seconds is marked offline. |
| Removal | Removing a node deletes its public key. Its agent can't connect again, and it stops for good. |
| Signed builds | The installer and the updater verify an Ed25519 signature over every agent build before using it. If the signature doesn't match, nothing is installed or replaced. |
| The agent's own limits | A system user with no login shell, under a systemd unit with NoNewPrivileges, a read-only view of the system, no access to home directories, its own /tmp, half of one CPU, and 256 MiB of memory. It can write only to its servers' folders, its state, and its own binary. |
03Game servers
The panel sends a spec, never a command.
To install or change a server, the panel describes what it wants. The agent checks that description against its own rules and builds everything it runs itself.
| What the panel sends | A spec resolved from a blueprint: the image and its digest, typed install steps, the start command as a list of arguments, ports, config file edits, and limits. It has no field for privileges, devices, host paths, host networking, or the user a server runs as. |
|---|---|
| What the agent checks | Every spec is read into fixed types that refuse unknown fields, then checked again: downloads must use HTTPS to a named host and carry a well-formed hash, every path must stay inside the server's folder, and ports, limits, and commands must be within bounds. Built-in blueprints can't run shell scripts and must use images pinned by digest. |
| Containers | Each server runs as the agent's own user with every Linux capability dropped, no-new-privileges, a read-only root file system, a memory limit equal to the server's memory with no swap, a process limit, and capped logs. Only its own folder is mounted. |
| Other containers | The agent touches only containers that carry its labels and names. Anything else running in Docker on the machine is left alone. |
| Console commands | Single lines of at most 1,024 characters, at most five a second, accepted only from roles that may control servers. Every command is recorded in the activity log. |
04Blueprints
Blueprints and the sandbox.
Every title is installed from a blueprint, a typed document that describes the server. Running bots and your own code means a spec can't be limited to a list of official downloads, so the boundary is the sandbox every server and install step runs in.
| Installer sandbox | SteamCMD, Git, and installer programs run in a separate, short-lived container for each step, never on the machine itself: as the agent's user, with every capability dropped, a read-only root, bounded memory, processes, and time, and only the server's folder mounted. Steps that only move bytes, such as downloads, extraction, and config edits, run in the agent under the same kernel confinement as the file manager. |
|---|---|
| Pinned images | Built-in blueprints run only images from our catalog: official images, Microsoft's registry, the images projects publish themselves, and our own, built from Dockerfiles in our repository and published with provenance. Each is pinned by digest, and a new digest reaches a server only when it is installed or changed again. |
| Verified downloads | Downloads are checked against the SHA-1, SHA-256, or SHA-512 the publisher posts and refused on a mismatch. Publishers that post no hash are allowed only where the reviewed blueprint says so, never from paste sites or raw file hosts. The agent refuses any download whose host resolves to a private, loopback, or link-local address. |
| Built-in only nodes | A node set to run built-in blueprints only, a local setting that needs root on that machine, accepts a server only when the agent can derive the same spec from its own copy of the blueprint and the published version. A compromised panel can then choose only which built-in software, version, settings, ports, and memory a node runs. |
| Custom blueprints | Owners and admins can write their own, which may name any public image, download from any HTTPS address, and run shell scripts during install, all inside the same sandbox. Nodes can refuse them, in the panel or locally, and an imported Pterodactyl egg is only a draft until someone reviews and saves it. |
| Secrets | Passwords and tokens a blueprint asks for are sealed at rest, never returned by the API, and replaced rather than edited. Owners and admins can reveal one through a request that is logged. |
05Files
Every path stays inside the server's folder.
The file manager works on the node itself. The panel forwards each request, and the agent carries it out under rules the Linux kernel enforces.
| Confinement | Every path is checked against a strict grammar, then opened beneath the server's folder with openat2 and RESOLVE_BENEATH, so the kernel refuses any symlink or rename that would lead outside it. Older kernels fall back to a walk that never follows a link. |
|---|---|
| Uploads | Written to a temporary file and moved into place only when complete. Up to 256 MiB per file, sent in chunks of at most 384 KiB. |
| Edits | Saving sends the modification time the editor loaded, so a file that changed in the meantime is refused rather than overwritten. |
| Archives | Extraction skips entries that would escape the folder or create links or devices, and stops at 100,000 entries or 8 GiB. |
| Who can do what | Reading files needs a role that may control servers. Changing them needs a role that may manage servers. |
06Backups
Every transfer has its own key.
Backups stream from the node through the panel into storage, and back again for a restore. Each one is checked end to end.
| Storage | tar archives compressed with zstd, stored in Cloudflare R2 under your organization and server. |
|---|---|
| Transfer tokens | The agent uploads and downloads with a token that belongs to one backup and one direction. Tokens are 32 random bytes, stored as SHA-256 hashes, valid for 24 hours, and rate limited. |
| Integrity | A backup is accepted only when every part is present and the total size matches what the agent sent. Its SHA-256 is recorded, and a restore checks it before anything is replaced. |
| Restores | A restore first takes a safety backup of the current data, then unpacks the archive beside the server's folder and swaps the two only after the archive has been verified. |
| Deletion | Deleting a backup or a server removes the stored archive. A removal that fails is retried every day until it succeeds. |
07Teams
People see only what you give them.
Every organization request is checked against the caller's role, and members can be limited to the servers they need.
| Roles | Owner, admin, member, and viewer, checked on every request. A member can run the console and restart a server without being able to delete it. |
|---|---|
| Per-server access | Members and viewers can be limited to selected servers. A server outside someone's access answers exactly like a server that doesn't exist. |
| Invitations | Single-use links that expire after 7 days. The 256-bit token is stored as a hash and travels in the URL fragment, and accepting needs an account with exactly the invited address. |
| Ownership | Transferring an organization to someone else needs the owner's password. |
| Activity | Changes to servers, nodes, files, schedules, backups, and members are recorded with who made them and when, in the same write as the change. Only owners and admins can read the log. |
08Platform
One origin, no trackers.
The website, the dashboard, and the API are served from a single address on Cloudflare, so there's no cross-origin access to configure.
| Hosting | Cloudflare Pages and Workers, with accounts in Cloudflare D1, each node's connection and metrics in its own Durable Object, and backups in R2. |
|---|---|
| Transport | HTTPS only, with HTTP Strict Transport Security. |
| Requests | Every request that changes something must carry the panel's own origin. Request bodies are typed, size-limited JSON, and unknown fields are refused. |
| In the browser | A Content Security Policy that allows scripts only from the panel itself and Cloudflare Turnstile, with no inline scripts, and forbids framing the panel. Turnstile loads only with the sign-up and password reset forms, and the pages load no analytics or trackers. |
09Limits
What these protections don't cover.
No design removes every risk. These are the ones that remain, stated plainly so you can decide what to connect.
| The agent is root-equivalent | It's in the docker group so it can manage containers, and that is equivalent to root on the server. Anyone who takes over the agent takes over the machine, so only connect machines you're happy to manage this way. |
|---|---|
| Install steps can reach your network | The installer sandbox uses Docker's default bridge network, because SteamCMD and Git need the internet. A container there can also reach addresses on the node's own network, so a custom blueprint could probe it. Only the agent's own downloads are checked against private addresses. Set nodes on sensitive networks to built-in blueprints only. |
| Signatures protect downloads, not the panel | The installer and the updater check builds against the release key the panel provides. Whoever controlled the panel or its TLS certificate could choose what they install. |
| The install token is in your shell history | It works once and expires after an hour, but it stays in the history of whoever ran the command. |
| Open consoles catch up later | When someone loses access to a server, a console they already have open can't send commands, but it can keep showing output for up to 30 minutes. |
| A paused account says so | After repeated wrong guesses, sign-in reports the pause before checking the password, which shows that the address has an account. |
10Reporting
Found a vulnerability? Tell us first.
Email support@example.com with what you found and the steps to reproduce it. Please don't access other people's accounts, servers, or data, and don't degrade the service for others while you test. The same address is published in /.well-known/security.txt.