Skip to content

2.6.0-beta.1

Pre-release
Pre-release

Choose a tag to compare

@avandeputte avandeputte released this 28 Nov 04:32
· 0 commits to main since this release

A beta of the fixes from a full review of 2.5.1: security, cluster behaviour, HAProxy rendering, Cloudflare, reliability, and the tests that keep them fixed. Nothing new to configure; several things that used to be accepted are now refused with a reason, and a few behaviours changed — read the list before upgrading a cluster.

Secrets and sessions

  • GET /api/local no longer returns the node's secrets (API key, cookie-signing secret, second-factor seed, MCP token, peer keys): they come back as [redacted], and sending [redacted] back keeps the stored value. The UI never read them.
  • Changing the password keeps the second factor, email, appearance and language; before, it quietly turned 2FA off — and Apply to the other nodes spread that.
  • Enrolling a second factor asks for the current password, and refuses while 2FA is already on (turn it off first). A session cookie alone can no longer swap the owner's second factor for another.
  • The session cookie is Secure whenever it travels over HTTPS, including through the UI's own listener. Sign-in lockout counts the visitor's address (not the loopback address behind the listener) and the user name.
  • Changes asked with a session cookie must come from this UI (Origin/Referer, or the JSON the page sends); every answer carries X-Frame-Options: DENY, a Content-Security-Policy, nosniff and a Referrer-Policy. The UI can no longer be shown inside another page's frame.
  • Webhook headers come back redacted from the notifications page; SMTP verifies the mail server's certificate — untick the new Verify TLS on a destination with a self-signed one.
  • /api/logout works after the session expired; the anonymous 401 no longer says the version.

Certificates and acme.sh

  • A DNS credential line must name a variable the chosen hook reads. acme.sh's own settings (ACCOUNT_CONF_PATH, LE_CONFIG_HOME, HTTPS_INSECURE, …) were accepted before and acted on as root — the first of them makes acme.sh source any file. Quotes and control characters in credential values, EAB key ID/HMAC and a custom CA URL are refused. A stored line that fails these checks now stops the issue with the reason instead of being skipped.
  • acme.sh logs at level 1 (it was 2, which traced every DNS API call, tokens included, into the Logs page); a configured token is struck from the log before it is shown anyway.
  • Uploaded chain certificates are each read by openssl; a certificate whose name would share a file with another (a b / a_b), or the UI certificate's name, is refused; private keys are written 0600 from the first byte; one issue per certificate at a time (a second gets 409); one broken certificate no longer ends the renewal round for the rest.
  • The "safe to copy" backup no longer carries the AD CS service-account password.
  • install.sh upgrades an older acme.sh to the pinned release, unpacks it in a directory mktemp made, and makes the data and certificate directories 0700.

Cluster

  • A push ships only the shared certificates' files. Every node's own UI certificate has the same file name, and the active node's pushes were overwriting the passive nodes' with one for the wrong host.
  • Apply on a passive node does not push; a passive node cannot change the shared UI address; /api/setup/create and /api/setup/join answer 409 once setup is complete (a browser session can send force: true; a peer cannot).
  • A received peer list is merged, not substituted, so a peer only one node knows is not dropped. Apply fills in unicast addresses only where empty, so Apply unicast plan's values stay.
  • Adding, disabling or removing a sign-in user now shows unapplied changes (the userlist was rendered but never counted).
  • /api/status reports the live fingerprint, and the cluster page withholds changed independently while nodes run different versions — the class of false warning #44 was about, for the next release that adds a shared setting.
  • Cloudflare's what was last told no longer bumps the shared revision or writes a history snapshot. A malformed section in a received configuration is refused (400) instead of being saved and taking the node down.
  • Package installs (cloudflared, the CrowdSec bouncer) and DNS lookups run outside the apply lock, so a node installing a package keeps answering pushes.
  • haproxy.cfg and its .bak are 0640 root:haproxy (0600 without the group): the file holds the sign-in hashes and the SSO cookie secret.

HAProxy rendering

  • Everything typed into a rule or object becomes a word on a cfg line; what would change the line's meaning is refused with a reason, and rendered defensively if already stored: #, quotes or line breaks in condition values (a # in a redirect used to comment out the rule's condition — every host was redirected and haproxy -c was happy), spaces in redirect addresses, header names that are not one word, server addresses/ports with spaces or #, non-numeric weights/ports/intervals, unknown balance algorithms. Redirect addresses and header values render quoted.
  • Two conditions, pools, services or certificates whose names come to the same cfg token are refused; a pair stored earlier renders two ACLs instead of one merged one.
  • On a TCP listener with SNI, the user's reject rules now run before the accept (they never fired).
  • A disabled pool stays in the configuration as an empty backend answering 503, so disabling a pool no longer makes every Apply fail.
  • A condition a listener cannot read (host/path/header test on TCP, TLS-name test on HTTP) is refused when added; a stored one renders with a comment. Health-check Host: name:port is rendered as typed. Rate-limit stick tables are type ipv6 (IPv4 included), so IPv6 clients are limited too.

Cloudflare

  • A service limited to countries whose rule cannot be written is not published — route and DNS record are withheld or removed for that host, and Apply names the cause. Before, three paths left the route live with no limit.
  • The country rule follows HAProxy's rule order, so a wildcard rule placed before an exact host takes that host's countries too (the exact host used to be reachable from anywhere). Conditions with several hosts or paths limit each; long expressions pack into several rules; a failed Sync now leaves Cloudflare marked behind so the next Apply retries; unpublishing removes the route before the rule.

Reliability and UI

  • One non-HTTP answer no longer kills probing for good (it left busy stuck and the probe thread dead). A failing watchdog check is logged and the next one still runs.
  • Editing an HTTPS service no longer re-enables the HTTP→HTTPS redirect you had turned off.
  • Two table cells (balance, interval) were rendered unescaped; four pages painted over each other on fast navigation; the Stats page kept every card's HTML in an attribute.

Build, install, update

  • Releases carry SHA256SUMS; the in-app package update verifies against it (refuses a release of this age without it; older releases install with a note). The systemd update runs a downloaded install.sh rather than a pipe, from a private directory.
  • acme.sh and acme2certifier downloads in the image are held to their digests; nfpm is pinned; the upstream-check workflow validates tag names before using them.
  • New Tests workflow runs every Python suite in the built image and the UI suite with a DOM on every push and PR; the UI runner now fails when a DOM test skips.
  • The image pins HAProxy 3.4.8 for now: haproxy.debian.net's 3.4.9 depends on a libpcre2 Debian 13 does not have.

Install: ghcr.io/avandeputte/haproxy-manager:2.6.0-beta.1, the .deb/.rpm below, or the Proxmox script with GH_INCLUDE_PRERELEASE=1. Offered in-app to nodes with Also offer beta versions ticked.