New in 1.0: partner licences with Stable and LTS updates, webmail and Files, and alerts on WhatsApp.Changelog
Changelog

Changelog, page 3 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)

Fixed panel ports, and pages for new websites and unknown names (12 Nov 2026)

  • Every panel has its own fixed port, the same on every server: Server Admin (srv.), HQ (hq.) and Hfog Cloud's staff on 8443, the Control Panel (cp., also the classic address, the server's IP and the resellers' own addresses) on 2087, the Reseller Panel (rs.) on 2086. Mail, Files, DB Studio, the API, the billing pages and the websites stay where they are. The ports are set in config (COMPANY_PANEL_PORT, the new COMPANY_CP_PORT and COMPANY_RS_PORT); build.sh checks they are usable and different and no longer asks a panel port (--panel-port is gone), and the installer has no --port option any more. The panel_port setting is gone too.
  • A panel opens only on its own name and port. Opened on another panel's port it is sent on to its own (for example cp.<domain>:8443 → cp.<domain>:2087); the domain itself and www. on any panel port go to the website without the port; any other name on a panel port gets no answer. Nginx and hfog-api agree (hostfog-panel-ports.conf, written by hfog-agent portals-web), and the panel's certificate now also covers the domain and www. once they point here, so those redirects need no warning.
  • Every address the panel makes uses its panel's port: emails (welcome, password reset, invoices, notifications), "Log in as" and the links between panels, the order and shop pages, Mail's link back to the Control Panel, the passkey origins and form targets, Hfog Cloud's staff links, the installer's Done page and summary, hfog-agent portals and dns-setup, and the API docs' examples. The firewall opens all three ports.
  • "Server ready" page. Any name pointed at the server that has no website yet (the server's own domain before an account has it, or any other name) shows a short "This server is ready." page on ports 80 and 443 instead of nginx's default answer. It names no product and shows no panel address.
  • New starter page for a new website: "<domain> is ready." with the three steps to upload a website, a tip about email and "Hosted with <brand>" in the footer (the server's own brand when it is white-labelled). Websites made before keep the page they have.
  • The official website's status and chat pages reach the panel through hfog-api's socket instead of the panel's port.

Times on the 12-hour clock everywhere (11 Nov 2026)

  • Every time people read is on the 12-hour clock, with am/pm in their own language (9:05 pm, 9:05 PM, 下午9:05, 9:05 م): Hfog Panel, Hfog Cloud, HQ, Mail, Files, DB Studio, Hfog Local, Hfog Connect, the website, the help site, and the Go-made pages, emails and messages. Times that showed seconds keep them. This replaces the 24-hour clock chosen for English on 2 Nov 2026.
  • One formatter for the browser apps (frontend/shared/lib/time.ts: date, time, date and time, short list times, "… ago") and one for Go (backend/api/internal/clock, Ctx.When in the panel). Screens read the stored and ISO times the server sends and show them in the reader's time zone; the per-app date helpers are gone (Mail's formatDate, listDate, readWhen and intlLang, the panel's dateLang, Files' and Hfog Connect's when, the ISO cuts of several screens, and the translation of English dates in i18n.ts).
  • Hfog Local's log, mail catcher, Components and Logs pages get RFC 3339 times from the app and format them on screen. Let's Encrypt's rate-limit message reads "… after 2 Nov 2026, 1:31 pm UTC" (the panel reads it back).
  • Machine times are unchanged: the database, API fields, log files, cron, file names and HTTP headers.

Clean-up: unused code, files and tables (11 Nov 2026)

  • Export for another host now writes hfbackup-USER.tar.gz (the same full account backup layout inside). Import accounts reads it, and other servers' full account backups, whatever the file is called.
  • Updating drops the database tables and columns nothing uses any more: the Hfog Deploy tables, the Git preview tables (once their old preview websites are removed), four unused columns of git_deploys and HQ's separate list of Open panel tickets (they stay in the audit log).
  • Removed what nothing used: the website's Sign in page (/access/, the header links to the licence account), unused screenshots, logos, icons and style rules, 98 interface texts no screen or email shows any more, test-only panel and Mail actions, and eight environment variables nobody set (among them Hfog Local's HOSTFOG_YES: use --yes).
  • The translators' term lists moved to tools/languages/glossary-<code>.md; the help site's writing rules are in HANDBOOK.md. The settings only set by hand (ddns_max, cloud_max_vps and others) are listed in README.md.

One message bar in every app (11 Nov 2026)

  • What a button did, always said. Every app shows the result of a button in the same place: a wide dark bar at the bottom centre (light in the dark look), with a green tick or a red "!", the message, a next-step button where there is one (a link at the end of the server's message, Copy for a new password) and Undo where the server can really undo it (suspending an account, a reseller or a team member). Good messages go after six seconds, not while the pointer or the keyboard is on them; failures stay until closed; Esc closes the newest; several stack upwards and keep clear of the chat button, the phone's bottom bar and dialog buttons. Hfog Panel, Hfog Cloud, Mail, Files, DB Studio, the installer, the Hfog Local window, Hfog Connect, the website, the help site and the server-made pages (shop, checkout, invoices, licences, without JavaScript too) all use it; the old notices above the page and the corner toasts are gone. A panel action that sends no message of its own says Saved, Removed, Created, Sent or Done.
  • Copy says so. Every copy button shows "Copied" for a moment and the bar says "Copied to the clipboard"; when the browser refuses, the bar says how to copy by hand and the text is selected. One copy helper for every app (frontend/shared/lib/say.ts), with the browser's copy command where there is no clipboard API, and Hfog Connect's own clipboard in its window.
  • The rail and section menu colours now run the whole page height.

Passkeys everywhere, add-ons and release channels (11 Nov 2026)

  • Passkeys in every panel. One implementation for every app (internal/webauthn): the panels, team members, HQ, Hfog Cloud, Mail, Files and DB Studio. HQ's and Hfog Cloud's staff add passkeys once their authenticator app is set up; Hfog Cloud's customers like any login. Files and DB Studio take the hosting account's passkeys (on their own addresses under the panel's domain), on their own or as the second step. Mail's passkeys are the mailbox's own, under Mail › Settings › Passkeys, and sign in through the master user as a link from the Control Panel does. A passkey sign-in counts as two-step; the lock-outs, failed-attempt counting, sign-in history and new-place emails are those of the password.
  • Add-ons. Server Admin › Billing › Add-ons sells extra disk, email accounts, databases or websites, priority support, one-off services that open a ticket, and the paid SSL certificate, per package and with a most per account. Customers buy them on Billing (and at the checkout, and through the API: /accounts/{username}/addons). Each is an invoice of our own (VAT, credit, discount codes, card on file, unpaid invoice follow-up). Paid, the limit is raised at once wherever the panel checks it; cancelled, it ends with its paid period. The paid SSL certificate's price and switch moved from Domain sales to its add-on.
  • Release channels. Early access beside Stable and LTS; each server picks its channel under Server Admin › Server › Updates. New Stable releases are rolled out in stages (10% first, then a share HQ › Releases sets; pause, resume, roll back), and HQ › Releases shows the versions servers run and the updates that failed, as the servers report with their licence check-in.

DB Studio: new layout and every data store (10 Nov 2026)

DB Studio has a new layout and opens every kind of data store a hosting account has.

  • Tree, path and tabs. The left side is a tree of databases with their tables and views, a filter box, the tables opened last and your favourites. The path on top reads Server › Database › Table. Each level has its own tabs: Browse, Structure, SQL, Search, Insert, Export, Import, Operations and Triggers for a table; Structure, SQL, Search, Export, Import, Operations, Routines and Events for a database; Databases, SQL, Status, Export and Import for the server. A tab is shown only where the engine has it and the login may use it.
  • Browse. The query is shown above the rows; each row has Edit, Copy and Delete; tick boxes with "With selected"; pages, rows per page, a row filter and sorting.
  • Structure. Change, drop and add columns, add and drop indexes, table information. Every change shows its SQL before it runs.
  • SQL. Quick statements for the open table, a column list, a history and bookmarks.
  • Search. A condition per column for a table; a text in every table for a database.
  • Operations. Rename, copy, maintain, empty and drop a table.
  • Redis. Keys by prefix, strings, hashes, lists, sets, sorted sets and streams, time to live, and a console with a fixed list of commands. Keys are always listed with SCAN.
  • OpenSearch. Indices, mappings and settings, documents, JSON Lines import and export, index operations and a request console.
  • Memcached. Status, look-up by key, store and empty.
  • SQLite files. The SQLite files of a home folder open like a database, as the account itself.
  • Every store is reached as the hosting account itself; all earlier limits stay (each login sees only its own databases, 30 seconds per statement, row limits, the activity log). The caches and the SQLite files go through a new agent command, studio-pipe, which starts hfog-api studio-pipe as the account and opens nothing as root.
  • Links from before keep working: the old tab names open the tab that took their place.

An API for every panel (10 Nov 2026)

Hfog Cloud, HQ and the shop now have a token API, and Mail has one of its own. The token rules are the same everywhere: a token never does more than its login can; it is read only or read and change; it can be limited to IP addresses and given an end date; it is shown once and stored only as a SHA-256; a wrong token counts as a failed sign-in for the address; requests are limited per token; and the licence plan must include the API.

  • API tokens can expire. The API tokens card (Password & security) has an optional Expires day; the table shows it. An expired token answers 401.
  • Hfog Cloud (an Hfog Cloud server, /v1/cloud/…): its staff and its customers make tokens on their own Password & security screen. Staff: hosts (list, add, remove), VPSs (list, create, start, stop, restart, rebuild, suspend, delete), plans, customers and billing. Customers: their own VPSs (list, start, stop, restart, rebuild), ordering with the server's own totals, their orders and invoices. A support login's token changes VPSs and customers only; a view-only login's token only reads. The waiting rules are the screens' (a task still running, a suspended VPS).
  • HQ (the official edition, /v1/hq/…): HQ logins make tokens for licences (list, one, issue a free one, revoke, reinstate), licence orders (list), Plans & pricing (read) and tunnels (list, block, unblock). Only a full login's token changes things; support and view-only logins' tokens read. The partner API is unchanged.
  • Shop (an Hfog Panel server, /v1/shop/…), for a seller's own website. Without a token, limited per address and cacheable: the packages shown in the shop with their prices per period, the domain prices and the domain search — nothing while selling or domain sales are off, as on the shop's pages. With an administrator's token: place an order and get its payment link, with every check of the order page (the terms, the username, an email address that has a login taken without saying so, discount codes, VAT, consent to news kept with its time, 5 orders an hour per customer address).
  • Each server answers its own product's API only. An Hfog Cloud server and the official edition answer none of Hfog Panel's endpoints; GET /v1 lists the server's endpoints and names its other APIs (Mail, Files, DB Studio).
  • The OpenAPI description, the help pages (Developers › Shop API and HQ API, Hfog Cloud › Hfog Cloud API) and the website's Developers page list every API.
  • Database: api_tokens.expires_at (hfog-api migrate).

Mail API with tokens (10 Nov 2026)

A script can now use a mailbox without its password.

  • API tokens in Mail › Settings: read only, or read, change and send; optionally only from chosen IP addresses and for 30, 90 or 365 days. Made by the mailbox's owner with the mailbox password (not from a mailbox opened from the Control Panel), shown once, stored only as a SHA-256, 20 per mailbox, removed at any time.
  • What a token can do at https://mail.<domain>/api/v1/… with Authorization: Bearer hfm_…: folders and messages (list, read, body, attachments, source, move, delete, flags, empty Trash or Junk), send a message (with attachments), contacts and calendar. GET /api/v1 lists the addresses. Nothing else: no settings, filters, autoresponder, two-factor login, app passwords or tokens.
  • A token reaches its own mailbox only. Its mail is sent the same way as from the app: the same sign-in to the mail server, always from the mailbox's own address, under the same sending limits.
  • The same rules as the panel's API: a wrong token counts as a failed sign-in for the address; 600 requests a minute per token (api_rate_limit in mail.json); Idempotency-Key so a retried send is not sent twice; the licence plan must include the API and Email. A read-only token changes nothing, not even "read" marks.
  • A deleted mailbox's tokens are deleted with it (hfog-api mail-forget).
  • Help: Mail › Mail API. The card's texts are in the 20 languages.

One login, several hosting plans (10 Nov 2026)

A customer can now have more than one hosting plan with the same email address and password.

  • Each plan is a hosting account of its own (username and Linux user, websites, email, limits, subscription, renewal, invoices, API tokens, team). Nothing is shared between them but the login.
  • One sign-in. The email address, password, authenticator app and backup codes, marketing consent and language belong to the person and are the same on all their accounts; a change on one is a change on all, and a new password or "sign out everywhere" ends the sessions on every account. Sign in with any of the usernames.
  • Account switcher in the menu at the top right, and Your accounts on Billing (each plan with its renewal, Switch, Add a plan). Billing lists the invoices of all the person's accounts.
  • Ordering. The order page no longer refuses an email address that has a login, and no longer tells a visitor that it has one. Signed in (Billing › Add a plan) the paid plan is in the login at once. Not signed in, the paid plan waits until the address's owner types the emailed 6-digit code or clicks Add to my login on Billing; until then nobody can use it. No second password is emailed.
  • A domain bought alone with a customer's email address waits the same way: its account without hosting is nobody's until that customer types the emailed code or clicks Add to my login, and no password is sent. (It used to be put in that customer's account without proof.)
  • Kept apart: a team member, staff using "Log in as" and the managed hosting team stay in the one account they opened. A reseller's customer and a direct customer are never one login.
  • Your data: an export covers all of a person's accounts; deleting the login needs every other account closed first. Removing or cancelling one account never touches the others.
  • The emails (the code, "Your new plan is ready", and the two for a domain) are in the 20 languages.
  • Database: users.person_id, orders.add_to, tables account_claims and order_passes, trigger users_person_sync (hfog-api migrate).

The shop's new home and checkout (10 Nov 2026)

The public shop of a paid server (/shop, /order) in the approved design, built from the server's own data.

  • /shop is a full home page. A strip with the sale code, status, help and support hours; the domain search with the cheapest endings; a tile per product; the plans with Monthly / Yearly / Every 2 years; what the Control Panel does; three steps; domain prices beside the offer to move a website here; questions; where help is; a footer with the shop's pages, the legal pages, the company line of the invoice details and the public website. Each part shows only while the server has its data: no domain search without Domain sales, no money-back line without a window, a Control Panel tile only for a tool the licence gives customers, PayPal only when set up.
  • /order is a two-column checkout with the steps Plan, Your details, Payment: the domain (register a new one or use your own, with Check), the account, the paid extras, and a summary that stays in view with the plan, discount, VAT, Due today, the renewal price and when the reminder is sent. It needs no JavaScript. Every check of the old page is kept (order and code limits, a used email refused, consent with its time, VAT, periods, the paid SSL add-on, the free domain, the legal links). Opened without a plan it lists the plans first.
  • Check on the order page no longer puts a yearly order back to monthly, and its answers and each plan's lines ("5 GB storage", "25 email accounts") are translated.
  • The shop's plan, domain and price pages have the same header and footer. All new texts are in the 20 languages; dark mode and right-to-left follow the panel's tokens (one block at the end of app.css).
  • The live chat widget's window stayed open on every page that loads it; it now opens only when clicked.
  • No new setting.

Mail is sent only as your own domains, and email to ticket knows who wrote (10 Nov 2026)

Security: the From line is tied to the sender. A hosting customer could send mail as another customer's domain (a mailbox login with another From line, PHP mail(), sendmail), and the server signed it with that domain's DKIM key.

  • Postfix now asks hfog-api mail-policy first for every message (its new milter socket private/hfog-sender, first in smtpd_milters and non_smtpd_milters; hf_mail_sender_bind in server-fixes.sh, on install and update). Mail handed in on the server may use an envelope sender and a From line on a domain the server sends for only when the sender's own hosting account has that domain. Who sends: the mailbox login (587, 465, Mail); for a program on the server its Linux user, from the kernel's list of open connections (SMTP on the machine) or from Postfix's queue file (sendmail).
  • A refused message gets 550 5.7.1 You may not send as … at once (587, 465, SMTP on the server). Through sendmail it comes back to the sender with that text; when the envelope sender itself was not theirs it is dropped and logged instead, so no bounce goes to an address the sender does not own.
  • Unchanged: mail from other servers, forwarders and catch-all addresses, mailing lists, the panel's own mail, root and other system users, a contact form with the visitor's (outside) address as From, and <account>@<server name> for mail without a From line. While the service is down mail waits; it is not let through.
  • Still open: a mailbox's own Sieve filter (redirect, a vacation reply with another From) is sent by the mail store itself, so emailed tickets that name a domain of this server stay "unverified" as before.
  • The installer's Email step and a change of spam filter keep the sender check as Postfix's first milter (the Email step used to write the milter list without it, so a new server had it only from its first update; SpamAssassin was put in front of it).

Email to ticket: the mail server tells the panel whose email it is

  • Rspamd removes every Authentication-Results header a sender wrote, from all mail (also mail handed in on the server itself and by signed-in mailboxes), and writes its own on mail from outside. abuse-fetch support says AUTH <the mail server's name> before messages whose header the panel may believe; the panel then opens the ticket or adds the reply by itself. With SpamAssassin, for the first 15 minutes after the filter is set up or changed, and for a sender on a domain whose mail this server sends itself (any account here can send as such a domain, so a passed check does not say which customer wrote) the email waits under Waiting for verification as before.
  • Mail waits while a filter is down (milter_default_action = tempfail, was accept): incoming mail is asked to come again and mail sent from the server stays in its queue until the spam filter and the DKIM signer run again. Nothing passes unchecked.
  • Rspamd now runs after OpenDKIM (OpenDKIM removed the header Rspamd wrote: it never reached a mailbox), also for mail from sendmail / PHP mail() and on ports 587 and 465 (they no longer have a milter list of their own); mail from the server and from signed-in senders is still not scored. Mail that connects from one of the server's own addresses is not checked for SPF (every domain hosted here names them).
  • Staff and customers get different reply tokens, so an email carrying the customer's token is never taken for a staff answer.

The code review's small findings, and a free licence can buy a plan (10 Nov 2026)

The Low findings of the code review of 9 Nov 2026, in every part.

Licences

  • A free licence that picks a paid plan goes to checkout. On Manage licence, a plan with a price opens the order page with the plan, key, email and server filled in; the buyer chooses VAT, how often to pay, a code and card or PayPal there. The licence keeps its plan until that order is paid (lic_orders, as every checkout). A plan priced 0 is still applied at once; a reseller's licence is still changed by the reseller.
  • Cancelling says "until the end of the period you paid for" (a yearly licence was told "the end of the month").
  • A reseller's Remove on the licence page goes to HQ › Trash for 30 days, as HQ's own delete and the partner API's.
  • /licence?thanks=<key> and PayPal's return show the owner's email and server only in part (s…@example.com, 203.0.113.…); a download from the wrong server no longer names the licence's full address.
  • A cancelled licence with paid time left says so in the licence check ("cancelled and paid until …"), not "has run out". A bulk checkout that was never paid is forgotten after 30 days, and Stripe sending "checkout completed" twice no longer emails the reseller a second sign-in link.
  • A licence check whose answer could not be saved on the server is reported as failed. The licence key is no longer written to the activity log in full.

Sign-in, support and customers

  • A team member's forgotten-password link has its own limit per address (5 an hour).

  • hfog-agent reset-password and reset-2fa forget the wrong tries of that login only, not every address's.

  • A push notification is sent in the background: a slow push service no longer holds up a ticket reply.

  • A customer's data export lists the account's own fields; staff notes, tags and backup-code hashes stay out.

  • GET /v1/status gives load, memory, disk and services to staff tokens only.

  • An Hfog Cloud console closes when its user signs out, the VPS is suspended or stopped, or it changes hands (checked every 30 seconds). A first password lost by a failed first try of a VPS order is sent with the second.

  • A changed mailbox password, or a removed mailbox, stops working for calendar and contact apps at once; a changed or removed Web Disk login, and an account's new password, for Web Disk too.

Billing

  • The order page's period and currency links keep an unlisted package's own link (?p=) and each other.

  • A hosting checkout can be paid for one hour, as long as its username is held. The first renewal date counts a code's free months. Hfog Cloud plans are their own PayPal product.

  • The exchange-rate address is fetched like a webhook: public addresses only, also when a name points elsewhere.

  • An account lock that can't be taken ends the request instead of going on without it.

  • Hfog Cloud's order page shows the total the server worked out, with VAT when it is charged (it was added up in the browser, without VAT).

  • Packages sends each plan's yearly and 2-year price and Billing the currencies it can charge in, for the screens that show them.

Server and installer

  • The browser installer hands the licence key to install.sh in a file (--licence-file), not on the command line; it checks the setup code or cookie before asking hfog-api whether the panel has an administrator.
  • A restored backup's cron jobs go through the same checks as the Cron jobs screen; a Sieve script can't name a refused extension with a backslash ("p\ipe"); the download server refuses a release older than the live one (go back to a kept copy instead); 26 agent commands that take no arguments now refuse any; root's Python one-liners run isolated (-I); the Dovecot master file and the hooks log are made private from the start.
  • Sessions of Files and DB Studio are changed on a copy (two requests of one session no longer write the same memory); Mail checks the certificate of a mail or filter server on another machine; Files records moves, renames, new folders and files, permissions, zip and unzip in the activity log and refuses odd characters in uploaded names too; DB Studio no longer counts every table of HQ's database on each click.
  • No company name in messages of the agent and installer ("not signed with the release key", "Hfog Tunnel CA").
  • A moved account's crontab goes through the same line checks as a restored backup's.

Panels, Files, DB Studio, Mail, website

  • Files and DB Studio sign in with one shared implementation (internal/webapp/signin.go).
  • One money format in the panels (money in lib/format.ts: "£1,299.70" in every language), dates in the interface's language, recent pages (Ctrl K) per login and panel, the "forgotten password" page asks Hfog Cloud logins for their email, a package sold only yearly shows that price, the Payment settings screen is called that on HQ, a card that only held a New button comes back when it gets content.
  • Files: a dropped folder that exists is recognised by a code, not by the English message; "copied" is said only when the link was copied; Back with unsaved changes keeps the history.
  • DB Studio: "run the statement at the cursor" reads PostgreSQL's E'…' strings and nested comments.
  • Mail: the window title names a reply, forward or draft.
  • Sentences with a link, a button name or a command in the middle are one text each (20 languages), so a translation can put the parts in its own order; the tunnel and PostgreSQL ports in them come from the server.
  • Removed what nothing used: app_url, the .dash-kpis styles, htmlText, limitFmt, BrandMark, Settings.ShareDomain, the Via field of share requests, 31 exports used only in their own file, 41 texts.
  • The Files actions new folder, new file, rename, permissions, move, copy, archive and extract have names in the activity log. The DNS cluster screen gets the catalog zone's name from the server.

Hfog Local and Hfog Connect

  • Hfog Connect's browser window (macOS, --browser) keeps its token in the tab and sends it in a header; it sets no cookie any more (a cookie for 127.0.0.1 went to every other local program's port too).
  • Hfog Local's PostgreSQL Manager downloads an export with a one-time link; the window's token is no longer in the address.
  • The names of earlier versions are gone from Hfog Local (old program and uninstaller names, home folders, certificate names, sign-in entries): there is nothing installed to find.
  • Help: on Windows other accounts of the same computer can reach Hfog Local's local ports.
  • Hfog Tunnel always checks the tunnel server's certificate (a server that names none is checked against the public roots) and refuses a tunnel address on this computer's network unless the panel is on it too.
  • New site from Git takes https://, ssh:// and git@host: addresses only; a mail relay without encryption gets no password unless it is on this computer; hostfog servers add asks for the token when it is left out; PostgreSQL backups check the database name; Nginx can't take Apache's HTTPS port (or the other way round).
  • Hfog Local marks its hosts file block # Hfog Local start / end and keeps its window data in %LOCALAPPDATA%\Hfog Local; the list of earlier versions' welcome pages is gone with the other old names.

Tidying

  • One place each: the read-only staff list, the account pages' styles (now in app.css), the tunnel port, the DNS check resolver, the panel's User-Agent, Stripe price checks, Stripe invoice rows, PayPal plans and VAT, request error texts in plain words (no curl or PHP wording), base32 from the standard library.
  • Seven tables are made by hfog-api migrate alone (schema.sql): two-step owners, partner hooks and idempotency, domain sales, managed hosting, the mail outbox, API idempotency and node nonces are no longer created on the fly.
  • Licence keys (licences) is an official-edition route; log lines no longer start with the company's name.
  • Removed: one-line wrappers, an unused parameter here and there, comments that only repeated the code.
  • Header names: the headers that carried the company's name are now X-HF-Cache, X-HF-Varnish, X-HF-List, X-HF-Tunnel, X-HF-Sent and X-HF-Envelope-From / -To, where they are written and where they are read (agent, panel, Hfog Local, checks, help pages).
  • Removed: iso_cron_fix (nothing called it) and three unused texts. No new setting.

Checks

  • tests/checks/superadmin.py, licences.py and tunnels-admin.py run again: they switch the sandbox to the official edition and sign in to HQ with an HQ login and its authenticator code (tests/checks/_hq.py).

Code review fixes (9 Nov 2026)

Every Critical, High and Medium finding of the code review of 9 Nov 2026, by area.

Billing, licence shop and Hfog Cloud billing

  • Licence orders are one per checkout (table lic_orders): the payment names its order (lic:<key>:<order>) and the licence gets that order's plan, tier and period only, once. The price Stripe charges (read from the subscription) or the PayPal plan must be the order's, or nothing is activated (licence.order_mismatch in the log). A PayPal licence order now activates its licence: its subscription named a price instead of the licence.
  • Change plan without a subscription: a free or unpaid licence gets only a plan that costs nothing ("Buy the licence first." otherwise); a trial still tries any plan.
  • Revoked licences stay revoked: no Stripe or PayPal event sets one back to active, Revoke cancels the subscription, and a revoked key can't be paid for again in the shop.
  • Deleting an account cancels its Stripe and PayPal subscription first (SubsCancel, also used for licences and VPSs); when the provider refuses, nothing is deleted. A subscription already gone there is fine. Closing an unpaid account goes the same way and is tried again the next night when it fails.
  • The order page refuses an email address a login already has before checkout (the account could not be made after payment).
  • Account credit that paid a whole card invoice is written down (it stayed on the panel's balance and was spent twice).
  • Community blocklist: reports and the list are for licences that work now (LicState) and whose server has checked in; a trial's reports don't count towards a listing.
  • Hfog Cloud: a subscription the provider ends suspends the VPS and starts the unpaid days; only the nightly job deletes, after dun_term_days (never at 0) or when a cancelled VPS's paid month is over, and it cancels the subscription of a VPS it closes. Staff's suspension is its own flag (cloud_vps.staff_suspended): a payment lifts only billing's. A charge that fails (traffic overage, backups, the price of a resize) is kept (cloud_charges) and tried again daily; items added to a subscription carry its VAT. The guest order form counts every try and no longer says whether an email address has a login.
  • "Did billing suspend it?" is a column (users.suspended_by, BillingSuspend / SuspendedByBilling), not a search of the activity log.
  • Hosting billing: the billing period comes from the price Stripe sends (a subscriber on a replaced yearly price was set to monthly); a plan change whose payment fails is refused by Stripe and changes nothing; a 100 % "once" code no longer prints a huge line on the second invoice, and a code limited to a billing period can't be typed on Stripe's page; affiliate commissions are worked out without VAT and voided by a part refund too; a credit note against an unpaid invoice lowers what is due instead of giving credit.
  • VAT after a PayPal licence change: tier, plan and quantity changes keep the VAT charged at checkout (licences.vat_rate, lic_partners.vat_rate).
  • Also: website chat emails the support address once per conversation and then at most every 30 minutes, with what was written since; Hfog Tunnel links can be made or removed 30 times an hour per connection; a server move left half-way by a run that died is failed, so later moves start again.

Panel screens, pages and token API

  • A link that does something is checked like a button: opening a server mailbox in Mail (Server mailboxes › Open, ?open=) is refused to HQ's view-only and support logins and to read-only administrators, as a POST always was. The same rule covers the other addresses that sign in by being opened (Mail, Files, DB Studio, phpMyAdmin): one list (actingGets, guard.go) that every role check reads.
  • One plan check for every way in: the customer's plan, the server's licence plan and a reseller's privileges are checked by one function (planGuards) on the JSON API, the token API, the server-made pages and a screen's own address. A normal form post or a download on a screen's address no longer runs a module the licence plan doesn't include (403, "This feature isn't in your plan.").
  • Domain-only orders make the account when they are paid. /shop/domains and /shop/domains/transfer keep the username and email with the unpaid invoice (domain_signups); the login, its password email and the domain_customers row are made when the invoice is paid, so an abandoned order takes no username or email and the form no longer says whether one exists. A username taken meanwhile gets a number added; an email that is already a customer's puts the domain in that account. This replaces "created at checkout".
  • Accounts without hosting are refused by the token API (403) and by Files' and DB Studio's sign-in. Both apps' sign-ins also follow the licence lock and the licence plan's Files / DB Studio modules.
  • Website accounts (official edition): a sign-up's code and password wait in the visitor's own session, so a second sign-up for the same unconfirmed email can't replace the first one's password. A reset code's tries are counted in one statement before the code is compared; at most 5 codes an hour are emailed per account. A password change or reset signs the account's other sessions out (site_accounts.pw_at), and closes a licence they had open in /licence/manage.
  • HQ › Announcements lists an announcement and queues it (lic_announce_queue); hfog-api sample sends 500 a run and counts them. The same announcement again within a day is refused, so a second click sends nothing twice. Every news email ends with a signed unsubscribe link that needs no account (/account?unsub=…: one button, the withdrawal is kept in lic_news).
  • Public pages and endpoints: forms, payment webhooks, /v1/licence/check and /v1/licence/trial read at most 1 MB (413 above it). Discount codes are checked 20 times an hour per address on /order and the licence shop. /v1/licence/release is limited to 120 an hour per address and never hashes the installer per request. The tunnel client download is streamed, not held in memory. The partner API, the blocklist download and the WordPress vulnerability feed read at most 1 MB too.
  • HQ › Server: the live output of an update opens to HQ logins. HQ's Staff, Server › Email, Announcements, Licences, Plans & pricing, Discount codes and Payment settings send canChange.

Interface

  • Mail, PGP: a message with Bcc recipients is no longer encrypted (the one encrypted text named every key, so Bcc was not hidden): Mail says so and sends nothing. "Save draft" is refused while Encrypt is ticked (a draft is kept on the server as written). Signing out, or a session that ended, drops the unlocked key at once.
  • Mail shows people's text as written: subjects, sender names, and folder and filter names of your own are never looked up in the dictionary (a subject "Settings" was shown translated), in the window title either; only Mail's own folder names and "(no subject)" are. Dates in a list skip the lookup.
  • Files editor: a Windows file keeps its CRLF line endings (PUT /api/v1/files/content saves the text as sent); a save sends the version that was opened (rev, a hash the server gives with the text) and a file changed meanwhile is only replaced after asking (409 with changed: true; the helper's write <file> [rev] compares right before it writes).
  • Plugins: a local plugin's page is framed without the panel's origin (sandbox="allow-scripts allow-forms", and "sandbox" in its CSP), as a marketplace plugin's always was: it can't reach the session or the API as the viewer. The panel checks the sign-in once and sends the page on to /plugins/<id>/~<pass>/… (signed for that login, 12 hours, void after a password change), so the page's own scripts, styles and pictures load from relative addresses without a session. The Plugins screen no longer offers "my own plugin": a package without a signature says it is installed from the server's command line.
  • HQ logins that can only look: a screen whose data says canChange: false shows one notice and none of its action buttons, New cards, Save, Edit, Manage or Refund buttons (Tunnels, Staff, Server › Email, Announcements, Licences, Plans & pricing, Discount codes, Payment settings); without the flag everything shows as before.
  • HQ: a new discount code is for licence orders (no hosting choices, packages or sale banner); Payment settings leaves out the hosting shop's cards (order page, package sync, referrals, orders, New invoice, links to screens HQ doesn't have). Announcements empties the form after a send. The ZeroSSL HMAC key is not kept in the page or sent again after a save.
  • Billing (customers): Change plan opens on a period that is still sold; PayPal texts no longer promise "monthly" to yearly customers. Plans & pricing: a new tier always gets a free key.
  • Addresses from the server (redirects, search hits) are opened only when they are http(s) addresses or paths.
  • Hfog Local names the company from the build's config in its texts, and its own mail's sender domain follows it (company.LocalMailDomain).
  • Brand lockup: the servers say whether the brand is a built-in name (brand.builtin in the start-up data of the panel, Mail, Files and DB Studio; brand.json for Mail); the interface keeps no list of names.
  • HQ › Announcements shows how many emails of an announcement are still waiting.
  • One transport: Mail, Files and DB Studio share the API client, the in-app navigation and the start-up (frontend/shared/lib/api.ts, nav.ts, start.ts); uploads are sent again when the session was renewed.

Panel services

  • hfog-api migrate gives a database from before today the day-keyed lic_event_mails table (it only remembers which install reports were emailed about).
  • Email to ticket trusts only authenticated senders: an email is taken as the customer's (new ticket, reply, staff reply) only when this server's mail filter authenticated the From domain — DMARC, or DKIM / SPF of that very domain (SupportSenderVerified: the first Authentication-Results header, whose authserv-id the agent's abuse-fetch support names with an AUTH <id> line). Anything else from an account's address waits in the verify inbox as "unverified" and is not answered. The mail server's side is not built yet: abuse-fetch prints no AUTH line (Postfix and Rspamd would first have to guarantee the header on every way into the mailbox), so for now every email that names an account's or a staff login's address waits for verification and is assigned by hand.
  • Install reports are signed and mailed once a day: POST /v1/licence/event needs X-HF-Timestamp and X-HF-Signature (HMAC of the licence key, as the managed reports; 403 otherwise), and the owner is emailed once per licence, event and day, whatever version the report names.
  • Managed servers: the uptime monitor is owned by HQ's first full login (it was never made on HQ, which has no admin logins); "Open panel" goes only to the reported panel host when it is, or resolves to, the licence's IP or the address its licence checks come from, and takes nothing but the host from the reported address.
  • Usage-billed partners: the Stripe invoice is made first and the line put straight on it, both with an Idempotency-Key per partner and month; a line that fails deletes the draft (status manual, or check when even that failed), so nothing is left to be charged twice. A partner cancelled or suspended before the month ended is still billed for the months it used.
  • Partner API products: a partner's licences can be put on Hfog Panel plans with no more accounts than the partner's tier; Hfog Cloud and larger plans answer 409 (they were issued at the partner's tier price).
  • Referral credit waits for the money-back window (RefNightly): a first payment that is refunded earns nothing; a payment in another currency than the billing one is left to be credited by hand.
  • VAT is charged until a VAT number is confirmed: an "unchecked" number (VIES down, a UK number without an own check) no longer gets the reverse charge; it is asked about again every night (TaxRecheckNightly) and the reverse charge applies from the next invoice once it is valid.
  • Domain orders: an order left working by a run that died becomes check the next night (retry asks the provider first) instead of blocking its domain for good.
  • PayPal: an order is carried out only by the subscription the panel started for it.
  • Also: AppKey stops with an error instead of returning a fixed key when neither app_key nor the server key can be read; a CIDR with a missing or wrong prefix length matches nothing (it matched every address); an Hfog Cloud server's staff reach the Licence screen while the licence is locked; signing in does one password check for unknown names and team emails alike, and asking for a password reset takes the same time whether or not a login was found.

Agent and installer

  • Restoring a backup never reads through a link from the archive: the home folder of a backup is unpacked by the account's own tar straight from the archive (restore_files, 80-backup.sh: full restore, one item, a copy and restore-items share it; root unpacks only dumps, mail and the crontab, with links removed). A snapshot's unpacked tree is read only through real folders (real_dirs). A copy from the customer's own storage whose web or .ssh is not a folder is refused (utarget_check).
  • What root unpacks from a customer's archive is scrubbed (arc_scrub, 80-arcguard.sh: imported account backups, backups, move packages): device nodes, FIFOs and sockets are deleted, setuid/setgid bits dropped, files hard-linked to the outside deleted. The import copies with --no-devices --no-specials, and the scan no longer reads mailbox lists through a link in homedir/etc.
  • The official edition installs only from official-install.sh: it carries official.token ("official <version>", signed with the release key by make-setup.sh), which install.sh checks next to the package (hf_official_token_ok). HOSTFOG_EDITION is gone: no environment variable decides the edition, latest never offers it, and install.sh and update.sh keep an installed server's edition and product (/etc/hostfog/product now also says official). Official, Hfog Panel and Hfog Cloud are never laid over each other (hf_product_check); update.sh refuses a paid package on the official server, official-install.sh a paid server.
  • hfog-api checks the token itself: install.sh keeps official.token and its signature in /etc/hostfog, and hfog-api reads settings that say official only with a token signed by the release key (ReadConfig; config official_token). Without it hfog-api does not start as the official edition, and a running paid server ignores settings edited to official. In the publisher's source hfog-api dev-seed signs one for the sandboxes. The browser installer is told the edition install.sh will write (--edition; --official-env is gone).
  • Local trusted plugins from the command line only: the agent takes plugin-install local only for the package root named with hfog-agent plugin install FILE --local; the panel alone can no longer install a plugin whose hooks run as root.
  • Download server: a published release must have latest signed with the release key and nothing but release files. latest is no longer edited in place: a script signed for another address stays as latest.signed (with its signature) and latest differs from it in the one address line.
  • Config history leaves out mail.json, apps' .env files, the tunnel server's and standby pairs' settings and Dovecot's master users.
  • Licence: an answer of the licence server that is not signed is refused by the installer (status, product and plan all rest on the signature); install, update and uninstall reports are signed with the licence key (X-HF-Timestamp, X-HF-Signature); latest sends the key in the X-Licence-Key header, not in the address; hfog-agent licence sync downloads into a root-only folder before moving the file into the panel's.
  • Fixed: ssl-certs NAME returned every certificate.

Hfog Local and Hfog Connect

  • Hfog Connect, downloads: a name a server lists never takes a download or a server copy out of the folder you chose: ., .. and names with / are not entries, and on Windows a Linux name with \ or : in it (or a device name) is not downloaded; you are told how many items stayed on the server (entryPath). Links to folders are not followed by a folder download or a server copy (www -> . no longer loops), and cutting one is refused.
  • Hfog Connect, FTPS: accepting a certificate the system doesn't trust now accepts that certificate only (its SHA-256 is saved with the host and shown in the question); another one later is asked about again, as "changed".
  • Hfog Connect, jump hosts: a jump host whose password or key passphrase isn't saved is asked for by name, and the answer is used for that host. The settings folder and the keychain service are named after the company in config (hfconnect/company), and the programs introduce themselves as Hfog-Connect.
  • Hfog Local, Hfog Tunnel: the tunnel client is installed only when it is the program pinned in the signed download list (checksums: frpc-<os>_<arch>, filled by scripts/build/pin-sources.sh --frpc); with no pin, sharing says so and installs nothing (the checksum a server sent is no longer read at all). Stopping a share, deleting its site and closing the app no longer wait for a server that is slow to answer. A shared site sees the visitor's address in X-Forwarded-For.
  • Hfog Local, components (Windows): an update no longer reinstalls an older zip left in downloads/: only a newer version counts (for PHP and MariaDB in the installed series), and a zip is removed once it is installed.
  • Hfog Local, other devices: "Allow access from my network" opens the sites; MySQL listens on the network only once root has a password of your own (not none, not the default).
  • Hfog Local on Windows: config/, hostfog.json and .panel-url are limited to your account on every start, in any folder; the portable copy's uninstall removes its program files (the command line reaches cmd.exe as written).
  • Messages name the company from config or say "Hfog Local"; downloads and API calls introduce themselves as Hfog-Local.

Files, DB Studio, Mail and the MongoDB gate

  • HQ's Files: in /backups only the encrypted panel backups (panel-full-*.hfpa) are opened or downloaded; the nightly copies of the panel's database (panel-*.sqlite.gz) are listed with their size and date and never handed out (account.Area.Open); the listing marks them (listed) and Files offers no Download, preview or link for them. The licence signing key lic_sk is kept sealed with the server key.
  • HQ's DB Studio also hides mail_outbox.raw and args (emails waiting for a retry: reset links, sign-in codes), lic_trash.data, approvals.fields, dir_privacy.users, imports.url, deploy_env.value, and every env and token_hint column (liteHiddenIn).
  • DB Studio's SQL box: the 8 MB of one answer are shared by all statements of a run; once they are used up each further statement shows one row instead of being read without a limit.
  • Mail: a visitor who has not signed in has no session file (the CSRF token is worked out from the cookie's id; the file is made when something is stored, at most 30 per address in 10 minutes). A request body is read only after the call, its CSRF token and the sign-in are checked; calls without a sign-in take 64 KB, and only compose/attach and contacts/import take a form with files.
  • Files and DB Studio: the session of a browser that has not signed in lasts 30 minutes unused, and there are at most 20 per address (an IPv6 /64) and 20,000 in all (session.Store.Visitor).
  • MongoDB gate: messages of at most 64 KB until the sign-in, the first message within 30 seconds of connecting, and at most 300 connections per source (another machine's address; on the server itself the Linux user that connects).