Changelog
Changelog, page 6 of 11
Every change to Hfog Panel, Hfog Local, Hfog Connect and Hfog Remote, newest first.
Upgrade notes and known issues are in the release notes.
Latest changes (continued)
Browser installer: a DNS step after Check
- Check → DNS → Setup → (Licence) → Admin → Install. The DNS step asks the server's domain (moved from Setup; the publisher's server also the website's domain, offered from
COMPANY_DOMAIN/ the saved setup), lists every record to add at the DNS provider (type, name, value: srv., cp., rs., fm., dbs., api., ftp.; hq., pay., hook. on the official edition; @, www., cdn., docs. and the website's domain on the publisher's server; mail., smtp., imap. and MX as optional, since Email is chosen on Setup) with a copy button each and Copy all (zone-file lines), and Check DNS looks them all up at once (3 s each; again every 20 s while the page is open), with ✔ / ✘ and what each name points to. Continue works only when every required record points here, and the setup server checks again itself before it moves on. DNS is required: no domain-less install from the browser. One list:dnsRecordsininternal/setupweb. Tests: step order, the records and the live check with a fake resolver, the server's own check, the panel's DNS step; 8 new texts in 20 languages.
The installers never stop without a word
- Fixed:
bash official-install.shshowed the logo and ended with no message when the panel port was free: the browser installer's port check (hf_port_userinbrowser-setup.shnow) failed underset -o pipefailwhen grep found nothing. The same mistake fixed insetup-template.sh(Let's Encrypt rate-limit message without a date, the paid edition's empty build log),server-fixes.sh(nginx version),autofix.sh(free disk);grep -qafterjournalctl(install.sh) andopenssl pkeyutl -help(get.sh) could be killed by SIGPIPE and read as "no" — on get.sh that refused a correctly signed package on OpenSSL 3 without Python's cryptography module. install.shandsetup-template.shprint one line when a command stops them unexpectedly:Stopped at line N of FILE: COMMAND — see /var/log/hostfog-install.log(ERR trap,set -E; logo.shhf_err_line); a stop that already says why prints nothing more.install.sh --browserrun directly from the filesofficial-install.shunpacked says to runofficial-install.shagain instead of installing the paid edition without the publisher's later steps.- The setup page: the company account's password is no longer written to the install log ("Show details"); a re-run's Done page says the password is unchanged and how to set a new one; a setup server answering on the last try is no longer reported as not answering.
- Fixed (browser installer): a publisher's setup whose later step failed is no longer stuck for good —
hfog-agent setup-code's link works once the panel has its administrator (only Try again follows), and a failed install nobody came back to for a day is removed like a finished one; a stop before install.sh restarts its log shows this run's reason ("Stopped at line …", or the output's last line) and details instead of the previous run's; Try again is no longer marked failed by a poll before the new run starts; the activity log masks the licence key.TestCloudRDNSno longer fails now and then. tests/check-installer.sh: the port check on a free port underset -euo pipefail, a scan forx="$(… | grep …)"without|| truein everyset -escript, the stop line (and none after a deliberate exit), the password mask.
Strict input checks on both sides, from one source
- Browser and server share one rule set. The Go rules (
backend/api/internal/check) write their limits, character sets, reserved user names, common-password list and typing runs tofrontend/shared/lib/rules.data.json, and their test cases tofrontend/shared/test/rules.cases.json(HFOG_WRITE_RULES=1 go test ./internal/check/); a Go test fails when either file is out of date, and the panel's tests run every Go case againstrules.ts, so the two sides give the same answer to each input. The browser now also checks reserved names, common passwords, typing runs, look-alike letters in domains and every other kind: IP address, network, list of addresses, host (name or IP), folder path, website folder, cron schedule, database and mailbox name, one line and several lines of text. - Every input is checked in the browser, not only the ones that opted in. A value the server checks names its rule (
data-rule), any other text input is one line without control characters, a textarea several. The rule is checked when you leave the input and before the form is sent; a form with a broken rule is not sent and the reason shows under the input. Every form of the panel (with the browser installer), Mail, Files, DB Studio and Hfog Local was gone through (about 170 inputs got their rule); a test in each app walks every input and fails when one the server checks has none. - The strength meter never says "Strong" for a password the server refuses: a common one ("Welcome2026!!"), too short, built from the username or email, a typing run or too few different characters shows "Weak" with the reason, in the installer's admin step and the panel's first-run setup (both now compare it with the username and email typed).
- Server: every request body is read strictly — a JSON key twice, text after the value, broken escapes or nesting too deep are refused (
check.JSON: the panel and its API, the token API, licence and partner endpoints, payment webhooks (also: id and kind must be texts, at most 1 MB), Files, DB Studio, Mail, the browser installer, Hfog Local's window API); a NUL or other control character (besides tab and line breaks) in any field is refused as a field error of that field (panel, token API, Mail, the installer, Hfog Local); unknown fields are ignored; bodies have size limits (token API 8 MB, Hfog Local 8 MB). Typed values are kept trimmed and in Unicode's composed form (check.Clean, used byCtx.Post). - One home: hand-written patterns replaced by
internal/check— website and FTP folders and protected-folder paths (check.Folder), backup SFTP and mail-relay hosts (check.Host; IPv6 relays now accepted), the installer's domain and email checks (check.Domain/check.Email). New passwords for backup and panel-archive passphrases and VPS root passwords follow the password rules. Existing passwords and passphrases keep working. - Tests: Go cases for every rule (also run by the browser),
TestRulesData(drift),TestJSON,TestBodyStrict,TestTokenAPIStrict,TestWebhookEvent,TestPostClean, Hfog LocalTestDecode; browser tests for the shared cases, blur and submit blocking, the meter ("Welcome2026!!" = Weak) and the every-input walker in all five apps. 9 Mail texts added in 20 languages (the panel already had them).
Strong input checks in every panel, with the reason under the input
- One home for the rules:
backend/api/internal/check(Go) — account user names (3–16, a–z/0–9, a letter first, the agent's whole reserved list), panel logins (3–32, a–z 0–9 _ . -), new passwords, emails, domains, ports, IP addresses and networks, folder paths, database and mailbox name parts, cron schedules and one-line / several-line text. Each returns a specific reason ("At least 12 characters.", "Only a–z and 0–9.", "That name is reserved. Choose another.") that the screens put under the input. The panel'sValidUsername/ValidPassword/ValidDomain/ValidEmail/ValidIP/ValidCronSchedulenow use it; the duplicate reseller, staff and admin user-name patterns are gone. - New passwords (Server Admin, Reseller, Control Panel, team members, password resets, mailboxes, FTP, databases, MongoDB, Web Disk, protected folders, apps, the website account): 12–128 characters, no quotes, backslashes or control characters, at least 5 different characters, not a common password or a typing run ("Password123!", "Welcome2026!!", "123456789012"), not the username or email with a few characters around it. Existing passwords keep working: only new and changed ones are checked. Generated passwords already meet the rules.
- Domains: typed with letters of another alphabet they are kept in their xn-- form (bücher.de → xn--bcher-kva.de); a part mixing Latin with Cyrillic or Greek look-alikes ("pаypal.com") is refused; a trailing dot is dropped; each part at most 63 characters, 253 in all, an ending of letters. Emails use the agent's shape (no quoted parts, spaces or line breaks). The agent's
is_domain/v_emailaccept xn-- endings. - More forms answer with field errors instead of a page error: account import, billing order, free licence, mailing lists, Node.js/Python/Ruby environment, MySQL/MongoDB remote addresses, MongoDB names and passwords, DNS cluster, protected folders, team join, Web Disk share links (now also through Files), Files' new names, renames, copies, zips and permissions, DB Studio's import file, and Mail's forwarding, settings, contacts, event attendees and recipients. Files refuses new names with invisible direction marks (an existing name can still be renamed). Cron schedules check each field's range (
61 * * * *is refused). - Browsers check the simple rules while you type (
frontend/shared/lib/rules.ts,data-rule="password|username|login|domain|email|port"on an input; the reason shows under it like any field error); the server stays the authority. The password strength meter uses the same rules. - Tests: Go table tests for every rule with hostile input (look-alike letters, CRLF, NUL, shell and SQL characters, direction marks, very long values) and a fuzz test (
FuzzDomainEmail); the reserved list against the agent's; screen tests that each bad value comes back under its input (TestInputRulesOnScreens,TestNameFieldErrorsin Files,TestInputRulesInMail); browser tests (inputRules.test.tsx: the rules, a rule shown before sending, the server's reasons under the inputs). 26 new texts in 20 languages.
The official installer finishes in the browser
bash official-install.shwith no options now uses the same browser installer ascurl -fsSL https://cdn.<domain>/latest | bash: it unpacks, checks the server, starts the setup page and prints the logo, one linkhttps://<IP>:<port>/setup?code=…and a QR code. Check → Setup → Admin → Installing → Done happen in the browser, in the panel's look. No Licence step: the page shows "Official edition".- Setup asks what the terminal install asked: the domain (offered: the build's
COMPANY_DOMAIN, or a re-run's), the website's domain (empty = the same), the email, email/DNS/PostgreSQL/Docker, and the publisher's parts (website, download servercdn., docs, paid edition, company account), all ticked. - Installing covers the whole setup: install.sh's steps, then the company account, download server, website, docs and paid edition, each a line with progress (one share for both). A later step that fails is tried again on its own (the panel already has its admin). Done lists the panel's addresses, the sites, the company account (its password once), the install command for other servers, the DNS records and the to-do list.
- One home per step:
setup-template.sh --after-install --result FILEruns its own steps after the panel from the unpacked files (the setup page runs it afterinstall.sh --from-setupin the samehostfog-installunit, withHOSTFOG_EDITION=official); the terminal path runs the same code.hfog-api installer inittakes--official-env,--after,--domainand--website(browser-setup.shpasses them). - Unchanged: any option (or no TTY with options) keeps the terminal install; an installed server is updated (
update.sh), no browser; a server whose install stopped halfway carries on in the terminal. Run again while the setup page waits, the installer only prints a new link. - DNS checks: every name at once with a 3 s limit (
hf_dns_checkinlogo.sh, from install.sh's earlier fix), now also in install.sh's panel certificate step, the one-file installer's site certificates and the setup page's live check (parallel, 3 s). - Fixed:
HOSTFOG_EDITION=officialthroughget.sh's browser path was lost when the setup page started install.sh (the server was written as the paid edition). - Tests: setupweb (
TestPublisherSetup,TestJobScript,TestInitPublisher), panel UI (publisher Setup, Installing and Done; Official edition on Admin),check-installer.sh(a small one-file installer run with and without options, step names against the page's lines,hf_dns_check). 7 new texts in 20 languages.
Hfog Tunnel addresses directly on the tunnel domain
- A tunnel domain of its own gives addresses right on it:
<name>.<tunnel domain>(app.hfog.run,myshop.hfog.run), no.port.label. Its DNS is two records:*and@. When the tunnel domain is the main domain (emptyCOMPANY_TUNNEL_DOMAIN, or a server owner's single domain) the addresses stay<name>.port.<domain>, apart fromsrv.,cp.,mail.and the other names. Old<name>.port.<tunnel domain>addresses on a domain of its own are not kept (owner's decision). - The tunnel domain is kept apart from the main domain: its bare name and
www.show a plain Hfog Tunnel page (no redirect, no link, address or name of the website), an unknown name shows "No tunnel here" (404), the offline page names nothing of the main domain; static pages only, no cookies. Its certificate is its own:*.<tunnel domain>and the domain itself (Let's Encrypt's DNS check throughhfog-acme-dnswhen its zone is on the server, as for any wildcard; otherwise one certificate per tunnel and one for the bare name andwww.). No email addresses on it. - One place per language decides the form:
company.TunnelSuffixOf/TunnelSuffix/TunnelHost(hfog-api and Hfog Local),Ctx.TunnelSuffixFor/TunnelOwnDomain/TunnelDNSNamesfor a server's own tunnel domain, the agent'stun_suffix/tun_own(lib/98-tunnel.sh, also used byhfog-dns-setup, the one-file installer andbuild.sh). The frontends take the suffix from the API: Hfog Local's/api/statetunnelSuffix, the Tunnels screen'ssuffixanddns. - Reserved tunnel names:
hqandportadded to the existing list (www,mail,smtp,imap,ftp,api,cdn,docs,pay,hook,srv,rs,cp,fm,dbs,ns1/ns2,admin,status,hfogserver,hfoglocal…). - Server Admin › Tunnels: you type the domain (filled in with the suggested one) and the screen shows the links it gives and the DNS records it needs (
*and@, or*.port); the server-ready email lists the same records. - Hfog Local: Tunnel page, Share dialog, Help and
hostfog shareshow<name>.<tunnel domain>;sources.jsonre-signed. hfog-agent dns-setuplists a tunnel domain of its own as its own table with only*and@; the installer's summary and to-do list do the same. Website, help site (free links, own server, Tunnels, API, DNS set-up), README andclaude/notes use the new addresses.- Tests: both forms and the reserved names (
TestTunnelHostin both company packages,TestTunnelSuffixForms,TestTunnelReservedNames, the Tunnels screen and Hfog Local'stunnel.test.tsx), the new agent checktests/checks/tunnel-agent.sh(forms, pages, Nginx site served by a real nginx),check-installer.sh(dns-setup and installer DNS names). - The translations'
_keys.jsonfiles (missing from the tree) are back; 6 new texts in 20 languages. - More tunnel tests (edge cases, handlers, hostile input, fuzz
FuzzTunnelNameOfHost, 200-goroutine load, real nginx with a stand-in tunnel server) and the fixes they found: a trailing dot (hostfog.com.) no longer turns the main domain into a domain of its own (Go and agent); the host parser ignores case and a trailing dot and gives only valid names; Switch on checks the domain as the agent does (labels up to 63 characters); unknown names on the tunnel domain get "No tunnel here" over http without the wildcard certificate too.
Optional tools removed; translations built, not stored
- Removed (owner-approved): the load test (
tests/load), the Playwright dialog and link testers (tests/ui), the throw-away-server tests (tests/real-install.sh,tests/deploy-test.shand their folders) and the API client SDKs (integrations/sdk, withintegrations.sh --sdk-testand the help page Developers › SDKs; the API explorer's OpenAPI description stays). The WHMCS and Blesta modules are unchanged. - The translations'
<code>.jsonfiles (panel, panel emails, Mail) are no longer kept in the source:tools/languages/build-all.shmakes them from_keys.jsonandsrc/<code>.txt(byte for byte the same files).build.shruns it in its first step; after a fresh unzip run it once beforego test,npm testortests/check-lang.py, which stop with a "run tools/languages/build-all.sh" message without them.
One README
source/README.mdis the only README: what it is, quick start (config,build.sh,official-install.sh, local run), folder map, then backend, frontends, desktop apps, agent, installer and scripts, integrations and SDKs, tests, translations, keys, releases, commands and the address reference. The 30 other READMEs,backend/os/BUILD.mdandpackaging/UPDATES.mdwere merged into it and removed; outdated paths (installer/,backend/agent/,backend/os/packaging/, the PHP reference) were corrected on the way.- The WHMCS and Blesta zips get a short README made by
scripts/build/integrations.sh(pointing to the set-up guide on the help site). The SDK packages no longer list a README (pyproject, Cargo, gemspec, package.json, the NuGet project); usage per language is on the help site's SDKs page. claude/: CONTEXT-FOR-NEW-CHAT, PROJECT-A-TO-Z, PROJECT-STATUS and ROADMAP-1.1 merged into CLAUDE.md and TASKS.md (open owner items, decisions and the roadmap after 1.0) and removed. The old notes besidesource/(launch drafts, Lynis and phpMyAdmin how-tos, the start-here and build-and-install files) are gone; the project zip's README points tosource/README.md.
HQ fixes: prices, tables, lists, focus
- One home for licence prices: Licence keys › Selling shows the plans' prices from Plans & pricing (read-only, with a link there) instead of its own Solo/Pro/Unlimited fields (£4.99/£9.99/£19.99 defaults,
lic_price_*). The old tiers' price (licences from before plans, bulk partners, tier changes, monthly revenue) is now the catalogue price of the plan on that tier (Ctx.LicTierPrice); the savedlic_price_*settings are no longer read. - Licensed servers: version, OS and accounts are one line under the server, so the table fits its card at 1280 and 1440 px (the IP button was cut off).
- User analytics: only a chart (or its empty note) is centred in a chart card; lists such as Most used screens and Devices start at the top.
- Help: the search box has one focus ring (the box's), not two.
- Managed customers: the panel address shows without
https://, ends in … when long, and the full address is in its tooltip.
Developer docs folder removed
docs/(the developer docs and the engineering guide) is gone, and with ittools/docs/make-guide.py(the developer-guide PDF). Code comments, READMEs, build messages andclaude/notes no longer point into it: they explain in place or point to the help site; the local-run commands with sample data are inbackend/api/README.md.
One domain for everything; Hfog Tunnel addresses on their own domain
config:COMPANY_DOMAIN="hostfog.io"is the website and every service (panelssrv.rs.cp.hq.on the panel port,mail.fm.dbs.api.cdn.docs.pay.hook., thecontact@/no-reply@/security@addresses);COMPANY_WEBSITEis empty (the same domain: the bare domain serves the website, no redirect). NewCOMPANY_TUNNEL_DOMAIN="hfog.run": only the Hfog Tunnel addresses (*.port.<tunnel domain>); empty =COMPANY_DOMAIN, the old single-domain tunnel names.- Plumbed like
COMPANY_WEBSITE:company.sh(load,hfog.run,-X …CompanyTunnelDomain),build.shasks Tunnels after the website (--tunnel-domain=;--yeskeeps the saved value),company.TunnelDomain()in hfog-api and Hfog Local, the website, help site and Hfog Local window (COMPANY_TUNNEL_DOMAIN), the server package'sconfig, Hfog Local's README and signedsources.json(re-signed, now with placeholders),tests/check-company.sh(the tunnel domain is a company domain). - Hfog Local: free links, the Tunnel page, Share dialog, Help and
hostfog sharenameport.<tunnel domain>; it still reaches the publisher's server onapi.<domain>. The website's and help site's tunnel examples use the tunnel domain; the help site also fills the company into page descriptions. - Server Admin › Tunnels on the publisher's own server offers
port.<tunnel domain>;hfog-agent dns-setuplists a tunnel domain outside the panel's domain as its own table (not in the zone file). The tunnel server itself is still switched on in that screen, otherwise unchanged. - One-file installer: the summary's DNS part lists the A records per domain (the domain: all names; the tunnel domain: only
*.port), and the to-do list says to switch on Hfog Tunnel withport.<tunnel domain>until it is on. - LICENSE, project notes (
claude/, CLAUDE.md's address table),keys/README.md, the launch drafts and test fixtures use the one domain.
Clean-up: frontend code, second pass
- Panel: one
Buttonfrom the kit instead of 54 hand-made busy buttons; one copy button (CopyTextButton, used byCopyButton, Email and Domains);useEditFormfor the New/Edit dialogs of Cloud hosts, images, plans and pools;takeParam(lib/router.ts) for the setup code and the wizards'?new=; the browser installer's steps share one submit helper; the sign-in pages share their badge and message (@hf/shared/ui/SignIn). - Comments without history or notes to the reader; the unused
eslint-disablelines removed (the project has no ESLint); three duplicate CSS rules merged. No feature, screen or look changed.
Release folder: one file
build.shputs one file inreleases/:official-install.sh(formerlyreleases/install.sh), the one-file installer with the server, download server, website (Hfog Local, Hfog Connect and the WHMCS/Blesta modules as its downloads) and documentation inside.- Everything else goes to the work folder
build/next tosource/:hfog-local/,hfog-connect/,hfog-panel/(the server package),integrations/andbuild.log. It is kept between builds, so--server-onlyreuses the last desktop build.desktop/build.shwrites tobuild/hfog-connect/by default. - Folders from earlier builds in
releases/are left as they are. The private-key check coversreleases/andbuild/. - Docs, notes and
tests/deploy-test.shuse the new names.
Git branch previews removed
- Removed: the
<branch>.preview.<domain>websites of Git branches, the previews part of the Git screen (previews on/off, branches, keep days, the previews table, Rebuild / Remove), the package limit Git previews (0 = unlimited), thepreview.deployedwebhook event, thepreviewscount in the API's Git repositories, the agent's preview mode andHFOG_PREVIEW, and the help page. - Live branch deploys stay. The screen Deploys & previews is renamed Live deploy (
git-deploys; the oldgit-previewsaddress and team permissions open it): the live branch deploys to its website on every push, with the deploy script and build log. The job ishfog-api git-deploys(formerlyhfog-api previews), the agent commandgit-deploy-build(formerlygit-preview-build). - Updating:
update.shreplaces the old cron line, andhfog-api migrateremoves preview websites made by an older version (their Nginx/Apache sites, files and DNS names in the live domain's zone). The tablesgit_previewsandpkg_previewsare kept, unused. A*.previewDNS record made for previews can be deleted. - Not affected: Hfog Deploy's pull-request previews (
<name>--pr-<n>on the apps domain) and Maintenance mode's private preview link.
Browser installer
curl -fsSL https://cdn.hostfog.io/latest | bashwith no options checks the server, draws the logo and within about 20 seconds prints one link,https://<server IP>:<panel port>/setup?code=XXXX-XXXX, and a QR code of it (hfog-api installer qr, encoder ininternal/qrterm). The SSH window can be closed: the setup page runs as the systemd unithostfog-setup(hfog-api installer serve,internal/setupweb) on the panel port, with a self-signed certificate for the IP that the panel keeps until it has a real one.- The browser steps, in the panel's look (HF mark, top bar, wizard step strip,
HfLoader;src/install.tsx,src/install/):- Check: system, memory, disk, public IP, ports 80/443/25/panel (precheck.sh); another control panel or websites already served stop it.
- Setup: domain (optional, with a live check that
srv./cp.point here), email, and what to install: websites and MariaDB always; Email and DNS on, PostgreSQL and Docker off by default. - Licence: free trial or key, checked with the licence server (
licence-setup.sh check|trial). - Admin: the login, a password strength meter and the licence it will run with.
- Installing: live percentage, steps ticking off, Show details with the log's tail; a reload or later visit carries on; a failure shows why, with Try again.
- Done: addresses, whether real SSL is in place, licence, Open my panel. The "server is ready" email has the same.
- The setup page runs install.sh itself (
install.sh --yes --from-setupwith the chosen options, as the unithostfog-install) and reads its step lines. New install.sh options:--browser,--from-setup,--admin-file(the login as a bcrypt hash;hfog-api admin setup-admin),--no-domain(one panel on the IP),--postgresqland--docker(step "Extra software"). Unattended installs in the terminal are unchanged:… | bash -s -- --yes --domain … --email … --trial|--licence KEY, orbash latest --yes …aftercurl -o latest. - One install address:
cdn.hostfog.io/latest;InstallCommand()returns thecdn.command. The separate short install address is removed (its Nginx and certificate names,HFOG_EXTRA_DNS, DNS hints, website, help site, licence email, docs and checks). - At step "Panel on port" the setup page moves behind nginx (
/etc/nginx/hostfog/setup-proxy.conf, keeping the setup's certificate for the IP). After Done it removes itself (unit, state, nginx file, download folder). After 24 hours without a visit it stops; while it waits,hfog-agent setup-codemakes a new link (and starts it again), and other hfog-agent commands say the install is in the browser. The SSH login message shows during the setup and is removed with the admin login. - Security: one package for the setup code rules (
internal/setupcode, also used bysvc_setup.go): 8 characters, stored as SHA-256 only, valid 24 hours, usable once, exchanged for a browser token (HttpOnly, Secure, SameSite=Strict cookie). 10 wrong codes per address in 15 minutes or 20 in total void it. Every call is JSON with theX-HF-Setupheader, same origin, and is refused once the panel has an administrator. Log:/var/log/hostfog-setup.log. Only the setup page, its API and the panel's built files are served. - Also: trial days left in the panel's top bar (
LicenceBoottrialDays); the password strength meter on the panel's own setup screen (ui/PasswordMeter.tsx); the page's style sheets include those of shared chunks (panel.UIEntryCSS: with two entries Vite moves shared styles there);precheck.sh --plain --setupand a "Websites" check; 62 new texts in 20 languages. - Tests:
internal/setupweb(code rules, steps, install.sh options, progress parsing, refusal after the admin exists, automation options, lifecycle),internal/qrterm(same symbols as qrcode-generator),TestSetupAdminFrom,TestTrialDaysInTopBar,TestManifestSharedCSS,test/install/install.test.tsx, check-installer.sh "Browser installer", setup-motd-agent.sh. - Fix: the built-screen caches (
uiPages,UiBuilt) are tied to one manifest file, so a panel with anotherPanelDirno longer reuses a stale answer (TestLicencePausedReadonlybroke the following flow tests).
One install command, licence added in the panel
curl -fsSL https://cdn.hostfog.io/latest | bash.get.shasks no licence question: it downloads the paid-edition installer without a key (/licence/downloadserves the stable channel to anyone, rate limited, recorded as "no key").--licence KEY/HFOG_KEY=…still activate a key during the install. New options for unattended installs:--yes,--domain,--trial.- The install ends with one setup link,
https://<server IP>:<panel port>/setup?code=XXXX-XXXX: random, shown once, stored hashed, valid 24 hours, usable once.hfog-agent setup-codemakes a new one and voids the old. Until the setup is done, the SSH login message (/etc/motd.d/hostfog-setup, agentsetup-motd) says how to get a link; it never contains the code. - The setup screen (
screen_setup.go,svc_setup.go,pages/setup.tsx): the code from the link (a box only without it) → Add your licence (Start free trial with an email, or a key; See plans) → Create your admin login → signed in. Wrong codes are counted per address and in total (20 void the code); every step is refused once an administrator exists; activity log entriessetup.*.hfog-agent create-adminand the setup shareCtx.AddAdmin. - Without a valid licence (none yet, trial ended, expired), websites, email and databases keep running. Administrators can open every screen with a "Changes are paused" banner; only the Licence screen and their profile accept changes (
shellReadonlyGuard, the same guard as read-only staff). Customers and resellers keep the lock screen.LicenceOfflineDaysis unchanged. - HQ › Licence keys: KPI Installed, no licence yet and Waiting rows from keyless installer downloads (last 30 days, no licence for that IP). Server Admin's Getting started checklist (licence, two-factor, first account).
- Licence emails give the key, the same install command for everyone and "open your panel and paste the key". The website (Download, Pricing "Just want to try it?") and help site (Install, Licensing, Customise, Server commands) describe this flow.
- Tests:
svc_setup_test.go(anonymous download, waiting list, setup code valid/used/expired/brute force, steps, trial, key, read-only while paused,setup-codecommand),tests/checks/setup-motd-agent.sh,test/pages/setup.test.tsx, check-installer.sh checks.
Small fixes: build steps, order page, screenshots
build.shcounts its first step (shared files): the log shows "14/14" instead of "14/13" (8 desktop-only, 9 with--server-only).- The order page's "You're all set" has no emoji (same key in all 20 languages).
- Hfog Local's top bar shows "Local" instead of "Server"; its 15 website and help-site screenshots are retaken with the Hfog Local title. The help site's Refer a friend and Affiliate screenshots are retaken (both showed the "Not found" page).
Website: documentation only on the help site
- The website no longer builds its own
/docs/pages (14 copies of the help site's installation and reference pages). Every documentation link goes todocs.hostfog.io, and the Contact page shows that address. - Old links keep working: each
/docs/<page>/redirects (301) to the same page on the help site, any other/docs…address to its home (website.nginx.conf,.htaccess).
Clean-up: panel and shared frontend code
- One copy each of: the root password dialog (
PasswordDialog, formerly three), the VPS date and size text (dateTime,sizePartsinui/cloudAdmin.tsx),gbFmt(inlib/format.ts), the cloud image and order plan types, and "reload while something runs" (useReloadWhileinui/kit.tsx, formerly six copies in Hfog Cloud, PITR restores and bulk changes). - Hfog Deploy uses the panel's kit: its settings, price, variable, domain and service-settings forms send with
useSend(replacing the screen's ownuseSaveand three local senders), the Services list is aCard, connection and webhook details use.kv; onebareUrlreplaces five copies of the same replace. - Shared by every app: button spinners (
@hf/shared/lib/pressBusy, with askipoption for Hfog Local's side menu) and the icon set (@hf/shared/ui/Icon,icons.ts; the panel's copies are removed).sync-shared.shmakes the panel'sassets/fonts/fonts.cssfromfrontend/shared/fonts/fonts.css. - My VPS: the Traffic figure links to the VPS's Usage tab, where the allowance is managed.
- Removed unused code:
formatNumber, the console's unusedpassword/onState/classNameoptions, the.site-tagand.live-spinstyles; the managed hosting screens useButtoninstead of hand-written button markup. No feature, screen or setting changed.
Clean-up: website, help site and the smaller apps
- Shared frontend code in one copy: Mail uses the shared base stylesheet (
app-studio-files.css, replacing its 87 KB copy), the shared translator and button spinners (@hf/shared/lib/i18n,lib/pressBusy; Hfog Local too). Files and DB Studio share their sign-in pages (@hf/shared/ui/SignIn), dialog helpers (lib/dialog.ts:trapTab,holdBusy) and frame styles (styles/files-studio-shell.css). Hfog Local uses the shareda11y.tsand HF mark; the help site uses the shared lockup and the website's Vite config. - Addresses: the website and help site link the licence shop and account on
pay.hostfog.io, and the website's/licence…and/accountredirect there (website.nginx.conf,.htaccess);/ordergoes topay.hostfog.io/order. The Apache panel shortcuts carry the panel port, and its/statuspasses to the panel instead ofapi.. The screenshot address bars show the panel port and path addresses; the install page's DNS link goes to the help site. - Website: no repeated menu and footer links; the unused plan-builder price code is removed from
site.js(its check against the licence server stays intest/price.test.mjs); plainer home-page text. - Help site: one Files and one DB Studio screenshot (two copies removed); no mentions of the plan builder or of other file transfer apps; the order-page tutorial names
pay.. - Project notes (
claude/,docs/): the address map in CLAUDE.md; websitehostfog.io, account onpay., 30-day trial and no plan builder throughout; the engineering guide and READMEs describe the shared files instead of copies.
Licence and account links go to pay.<domain>
- Licence pages, licence emails, "renew at …" / "change the server IP at …" messages, and Stripe and PayPal returns use
pay.<domain>when the billing pages have it (Ctx.PublicURL), else the website, else the panel. The account's Install guide opensdocs.<domain>/installation/(company.DocsURL). - Installer: with
pay.<domain>, the website redirects/licence…and/account…there (301, path kept) instead of passing them to the panel;/statusand the live chat stay on the website. TestTestPublicURLPrefersPay.
Clean-up: Go code without copies
- Files and DB Studio share one
internal/webapppackage: security headers, JSON answers, request reading, the session lookup, assets and branding logo, languages (Langs) and the forgotten-password steps (Forgot, replacing the twoforgot.gocopies). - One recorded-PHP-answer reader for the tests (
internal/phpgolden, formerly threegolden_test.gocopies). The panel's email check issieve.ValidEmail(formerly two 110-line copies). - Panel: one
randHex,sha256HexandhmacHex(formerly 13 copies under other names), and one each of the "1"/"0", RFC 3339 time, mail-limit text, URL host, server list, staff owner, site-screen and<br>helpers;cmp.Or/slices.Containsinstead of hand-written copies (panel,cloud,deploy). - Removed unused code: the plan builder's leftover
licFeatureGets,PluginNetHosts,LicRouteFeature,requestPort,API.panelPort,company.ServerURL/Copyright, Mail's unused strict email check (filtervar.goand its recorded answer), Hfog Local'swriteHttpdConfwrapper, Hfog Connect'sKnownHostsOf. No feature, screen or setting changed.
Clean-up: Go code, second pass
- No behaviour changes. Comments: the decorative separator lines are gone (508 lines in 156 files), and comments no longer narrate history or speak to the reader. One JSON string escaper (
omapJSONString) for the panel's PHP-compatible encoders (billing, licensing, lists, hosting: formerly four copies);errors.Newwherefmt.Errorfhad nothing to format (37 files). - Named constants for repeated answers and limits (
internal/setupweb,setupcode.TTL,cloud.MaxDiskGB, the host's clock skew, nonce and console times). Long functions split into named steps: Hfog Cloud's order (cloudOrderBuyer,cloudOrderPayPal,cloudOrderStripe), a deploy's image and environment (deployRunImage), Hfog Connect's SSH chain (hops,dialHop), a backup download (copyBackup). Smaller copies removed: the VPS create seed,virshwith input, the setup's IPv6 address joins (net.JoinHostPort), deploy domain lookups, a VPS's power checks (cloudReady).
Clean-up: shell code without copies
- Agent checks:
check,refuses,stuband the closing count are defined once intests/checks/lib.sh(formerly copied into 41 checks); every check ends with the same "all good" / "N failure(s)". - Agent:
is_domainandhas_systemdin00-core.sh, used byv_domain, portals, mail relay and protection lists (replacing four copies of the regex and a helper in78-redis.sh).79-deploy.shhas one each of the repository/branch check, git token environment, size check, CPU value, cgroup slice, running-container lookup and Nginx reload (formerly two or three copies each). - One-file installer: one
serve_site/site_stepfor the download server, website, main-domain redirect and docs; oneask_domainquestion;check_domainusesis_domain; unusedsay/okremoved. - Translations: one
tools/languages/build.py FOLDER [codes]for all three dictionaries (replacing threebuild.pycopies; output byte-identical).tools/brand/make_brand.pywrites the desktop icons topackaging/(formerlybackend/os/packaging).
The desktop app is called Hfog Local (formerly Hfog Server)
- Every visible name: window and PostgreSQL Manager titles, tray and messages, the CLI's texts, the Windows setup (wizard texts and new artwork, shortcuts, Apps & features name, exe details),
Hfog Local.app, the Linux menu entry, starter pages, READMEs, LICENSE and third-party notices, the website (Download, Software, menus), the help site (Desktop app section, tutorials, tunnels), the panels' Tunnels screen in 20 languages, the developer docs, guide and PDF. - Downloads:
Hfog-Local-<v>-Windows-Setup.exe(and-Setup-Offline.exe,-Windows-portable.zip,-macOS.zip),hfog-local_<v>_<arch>.deb,hfog-local-<v>-linux-<arch>.tar.gz,SHA256SUMS.txt; build folderreleases/hfog-local/(build.shrenames an existingreleases/hfog-server/once);site.jsondesktop entries. - Existing installs upgrade in place. Windows: the setup keeps the Apps & features key and
Software\HostFog\Panel(so it installs into the old folder, e.g.C:\hfogserver) and replacesHfog Server.exe, its uninstaller, shortcuts and sign-in entry. macOS keeps the bundle IDcom.hostfog.panel, Linux the packagehostfog-panel.~/hfogserverstays the data folder when it exists (new installs:~/hfoglocal,C:\hfoglocal). The local CA made as "Hfog Server" keeps working. The update notice comes from the signedsources.json(re-signed) and points at the website's Desktop page. - Tests:
TestHomeFolderKeepsOldFolders, old names inTestCANamesandTestPortableProgramFiles.
The public website on its own domain (COMPANY_WEBSITE)
confighasCOMPANY_WEBSITE(empty =COMPANY_DOMAIN, so single-domain builds are unchanged); this tree sets the website tohostfog.iowhile the services stay onhostfog.io.build.shasks Website after the domain (--website=DOMAIN;--yeskeeps the saved value).company_fillfills the website placeholder, Go getscompany.Website()/WebsiteURL()(-X …CompanyWebsite), and the website, help-site and desktop app builds read it fromconfig.- Website: canonical addresses, sitemap, robots.txt, security.txt, JSON-LD, Open Graph,
.htaccess(http andwww.→https://<website>) andwebsite.nginx.confuse the website; panel shortcuts,api.,cdn.,docs., mail addresses and Hfog Tunnel stay on the main domain. The help site's header/footer, contact/pricing/account/status links, the desktop apps' website links and setup metadata, the WHMCS/Blesta modules' homepage andget.sh's pricing link use the website. - One-file installer: the Website question defaults to the build's website on the publisher's own domain (a saved website equal to the main domain moves to it). Once
https://<website>has its certificate, the bare main domain andwww.redirect to it (301, path kept), either as the company account's root-only extra or as ahostfog-mainsite with its own certificate (hfog-agent company-accounttakes the redirect over). The live chat (/chat/) is passed through on the installed website too. - Checks:
tests/check-company.shalso catches the website domain typed literally; the website's link check fails on links to the bare main domain when the website has its own;tests/check-installer.shchecks the website settings, fill, installer default, and the redirect and chat rules withnginx -t; GoTestWebsite,TestExpandWebsite.
The panel port follows config everywhere
- The panel port chosen in
build.sh(COMPANY_PANEL_PORTinconfig) reaches every file:precheck.sh(bash latest --check) checks the build's port instead of a fixed 8443 and takes--portfrominstall.sh --check; the developer guide PDF (tools/docs/make-guide.py) prints the configured port; the SDKs, READMEs,docs/and the engineering guide write<panel port>. A server's ownpanel_portstill takes precedence. tests/check-company.shfails on 8443 typed literally in code, docs or panel texts (fallbacks,legacy-port,config-defaultlines and the desktop app's local HTTPS port are allowed) and warns about 2087 or the configured port in code.
Hfog Cloud: review fixes
- Security: the host's
/consoleanswers the panel's addresses only;vps-backup/vps-restoreonly take the VPS's own backup keys; a downloaded image or a backup about to be restored must be a standalone qcow2 (Driver.CheckDisk: no backing or external data file); a VPS can't send IPv6 router advertisements or redirects; a join code can't be used by two joins at once; an address taken meanwhile fails the create instead of being shared. - Billing: a resize moves the Stripe subscription's plan item found by its product (a changed plan price no longer makes the resize free); a resize the subscription can't carry is refused before it starts; turning backups off finds the item the same way.
- Tasks: a refused snapshot or backup no longer leaves a row behind (made in the task's transaction); the firewall and the 5-minute throttle wait for a running task. Order page and My VPS show the plan's own backup days.
cloud-host.shmakes/etc/hfog-cloudfirst and is shellcheck clean. VPS list: the Hfog Panel licence key may stay empty (one is issued); the delete and suspend questions are translated; Escape in the console's Send text closes only that box.- Hfog Deploy: containers can't reach the server's own addresses or 169.254.169.254 (
deploy_guard: chainHFOG-DEPLOYfromINPUTandDOCKER-USER, restored when Docker starts, removed by uninstall). - Tests: Go
TestCheckDisk,TestCloudResizeStripe,TestCloudBusyVPSand more cases; 11 agent checks; New card count on Hosts, Plans, Pools, Images and Discount codes; bundle price fixtures in catalogue order. 2 new texts in 20 languages.
Hfog Deploy and managed hosting: review fixes
- Hfog Deploy: two pushes no longer build and switch at the same time (a release waits for the one in progress, so an older commit can't go live last); a push of a commit the service already has is ignored (webhook replays); the webhook reads the body only for a known service (25 MB at most); preview branch names are checked.
- Hfog Deploy: repository addresses on the server or its local network are refused on save and in Detect; access tokens and variable values are checked (no line breaks reaching the agent's input or the container's environment file).
- Agent (
79-deploy.sh):deploy-routecan't replace another account's site; removing serviceNAMEno longer deletes the environment files of a service calledNAME-2;deploy-probeuses the agent's private temporary file and removes its checkout as the account. - Managed hosting: the team's session ends as soon as the customer switches team sign-in off; a sign-in ticket without a proper one-time value is refused; a server that is no longer managed switches team sign-in off.
- Managed screens: Managed plans and Managed customers edit in their New dialog (no second card); the Work queue's Done is a plain dialog.
- Tests: Go
TestDeployRepoAddress,TestDeployOneAtATime,TestDeployEnvOneLine,TestManagedStaffSessionEndsand more cases; 3 agent checks; panel New card count. 2 new texts in 20 languages.
Hfog Cloud: VPS tools (phase 3) — backups, snapshots, resize, reinstall, rescue, firewall, usage billing, reverse DNS
- My VPS (and Backups and tools on Server Admin › Cloud › VPS list) gets tabs under a VPS's details (
ui/vpsTools.tsx): Backups (turn the daily backups extra on/off, Back up now, Download, Restore), Snapshots (within the plan's number; Revert, Delete), Resize (bigger plans only, with what changing now costs; the disk never shrinks, the VPS restarts), Reinstall (image, new password or SSH key, confirmed by typing the host name), Rescue (a rescue system with the VPS's disk attached, temporary root password, Leave rescue mode), Firewall (inbound rules: allow/block, protocol, port or range, source; everything else allow or block; applied at once), Usage (traffic this month against the allowance), Reverse DNS. Dangerous actions ask first. - Host side (
internal/cloud:ops.go,firewall.go,store.go; newDrivermethods with the fake extended):vps-resize,vps-reinstall,vps-rescue,vps-rescue-exit,vps-firewall,vps-throttle,vps-snapshot[-revert|-delete],vps-backup(libvirt push backup while running),vps-restore,backup-get(streamed download),backup-delete. Every card now uses the VPS's own libvirt filterhfog-cloud-vps-<n>(the anti-spoofing filter plus IPv6 anti-spoofing and the firewall). Hosts installrclone. - Backups go to the panel's existing backup storage (the S3 storage or another destination; their settings travel only in the signed command's body), daily from the 5-minute job, kept the plan's days. Usage: over the allowance a plan either caps the speed or charges per GB at month end; resizes, backups switched on later and overage are billed through the existing billing (Stripe subscription items/invoice items, else panel invoices).
- Cloud settings (VPS list, administrators — the one home for): extras' prices (
cloud_price_backups,cloud_price_ipv4), Hfog Panel licence plan (official edition) or the sealed partner API key (paid edition), where VPS backups go, the rescue image, reverse DNS through the OVH API (keys sealed; behind anRDNSProviderinterface). Plans gain Snapshots, Backups kept (days), Over the traffic allowance, Price per GB over / Speed cap. - Tables
cloud_snapshots,cloud_backups; columns oncloud_plans,cloud_vps,cloud_jobs,cloud_traffic(also added byhfog-api migrate).docs/CLOUD.md§12 with owner decisions; help Backups, snapshots and more and Cloud settings and VPS tools. - Tests: Go
TestHostOps,TestGoldenFilter,TestGoldenRescueDomain,TestGoldenVirshOps,TestGoldenRclone,TestFirewallCheck,TestCloudMoreLife,TestCloudMoreTick,TestCloudRDNS; paneltest/pages/vps-tools.test.tsx(12). 83 new texts in 20 languages.
Hfog Cloud: customer side — My VPS, ordering and billing
- Control Panel › Cloud › My VPS (
pages/my-vps.tsx,screen_cloud_my.go): the customer's VPSs (keyboard and right-click through@hf/shared/ui/rows) and one VPS in detail — state, IPv4/IPv6, plan, CPU, disk and traffic, Console (noVNC, a fresh token per connection), Power (Start, Restart, Shut down, Power off with a question), New root password (shown once), Open Hfog Panel for Hfog Panel images, billing with Cancel VPS / Keep this VPS, recent tasks; it reads itself again while a task runs. - Order a VPS (
pages/vps-order.tsx, public routevps-order): size, what to install (Ubuntu 24.04 + Hfog Panel, Ubuntu 24.04, Debian 13, AlmaLinux 9), location, host name, SSH key, extras (daily backups, one more IPv4; off until priced), the total, then the existing checkout (Stripe Checkout or PayPal). Guests give a username and email and get a VPS-only account (a customer with no hosting: only My VPS, Billing, Support and account screens). - Billing through the existing billing (
svc_cloud_order.go): plans become Stripe products/prices and PayPal plans, one subscription per VPS; the paid order makes the VPS (webhook or PayPal return), its invoices land in the customer's Billing, failed payments follow the dunning settings (suspend afterdun_suspend_days, close afterdun_term_days), a cancelled VPS is deleted at the end of its paid month. - Hfog Panel licences for "Ubuntu + Hfog Panel" VPSs are issued by themselves: from the licence server's own records on the official edition (plan
cloud, settingcloud_licence_plan), through the partner licence API on a paid edition (settingcloud_partner_key); given back when the VPS is deleted. - Host: new command
vps-password(root's password through the QEMU guest agent, hashed on the host); every VPS gets the guest agent (cloud-init) and its channel (domain XML). - nginx: the panel passes WebSocket upgrades for
/api/v1/cloud/console(hf_api_console_location; fresh installs and update.sh), checked bytests/check-installer.sh. - Tables
cloud_orders,cloud_customers,cloud_usage. Help: Control Panel › Cloud (My VPS, Order a VPS).docs/CLOUD.md§11 and owner decisions. - Tests: Go
TestCloudOrderPaid,TestCloudOrderGuest,TestCloudRootPassword,TestCloudPartnerLicence, cloud package (vps-password, guest agent); paneltest/pages/cloud-customer.test.tsx(5). 43 new texts in 20 languages.