Changelog · 2026-10-30
Dockmesh 0.4.1 security
Security and maintenance release. It fixes three authorization and sign-in problems in 0.4.0 and earlier, makes the installers more reliable on upgrade, and repairs volume browsing on agent hosts.
Security
- GHSA-2g85-893g-rppp (moderate): SSO sign-in put session tokens in the redirect URL
- GHSA-9fwq-xwp6-x857 (high): Template deploy skipped host and role-scope checks
- GHSA-mj64-3wx9-h457 (moderate): Host-scoped roles could read files of undeployed stacks
- Updated the frontend framework (Svelte) to a release that fixes DOM clobbering and attribute-handling XSS issues.
- SSO sign-in (OIDC, OAuth2, SAML) no longer puts session tokens in the redirect URL. The browser gets a one-time code that expires after a minute and only works in the browser that completed the sign-in, so a crafted link can no longer sign someone in to another account.
- Deploying a template now applies the same host and role-scope checks as deploying a stack and is recorded in the deploy history. Deploying a stack that pulls in dependency stacks also checks the caller's role scope for each dependency.
- Users and roles limited to certain hosts or host tags can no longer read the compose file and
.envof a stack that has not been deployed yet, unless a role lists that stack by name. - The first-run setup wizard's state-changing calls (
/setup/commitand the validation helpers) now require a header only the wizard sends, so a website opened in the same browser during setup cannot start the installation or probe URLs from your network. - Alert emails no longer let a rule or alert name inject extra headers (such as extra recipients) into the message.
- Two simultaneous requests to refresh a session with the same token can no longer both succeed; only the first one rotates the session.
- Notifications sent to everyone (alerts, backups, agent offline, deploys, image and version updates, migrations) now reach only users whose role has the matching permission and whose host and stack scope covers the event, instead of every user. Backup notifications follow the job's host, those of system backups reach only unrestricted admins, and alert notifications count as events of the server's own host.
- Git webhook secrets are now stored encrypted in the database, like the git password and SSH key. Secrets saved by earlier versions are encrypted automatically on the next start and existing webhooks keep working without changes.
- The system settings API no longer returns the audit webhook signing secret or URL to users who may change system settings but not the audit configuration, and those users can no longer rewrite the audit webhook through it. Global environment variables marked secret are no longer shown in API responses; leaving the value empty when editing keeps the stored one.
- The short-lived container that reads volumes for the volume browser now uses an Alpine image pinned by digest, drops every capability except reading files of other owners, cannot gain privileges, has process and memory limits, and its output is capped.
Fixed
- Backups to an SMB share (for example a Synology NAS) from a Linux server no longer fail with "file does not exist": the
jobs/<job name>folder is now created on the share before the archive is written, and a restore from SMB no longer hangs on closing the connection. (#53) - A backup job created from a saved target in the job wizard no longer fails with a login error (for example "The attempted logon is invalid" on SMB) while the target's connection test succeeds. Since 0.4.0 the wizard copied the target's hidden, empty password into the job; the server now takes the password from the saved target. Jobs created that way on 0.4.0 are repaired once, on the first start after the upgrade: when exactly one saved target has the same type, server and location, the job takes its password and an info notice lists the repaired jobs. Jobs without a unique match raise a notice asking you to enter the password again in the job. (#54)
dockmesh initnow writesDOCKMESH_HTTP_ADDRto the env file, so the listen address you chose takes effect instead of being ignored.- The Operator role can create its own API tokens again, as the permission list always promised, and the permission counts no longer include image, volume and network update permissions that do not exist.
- dmctl:
containers list --all,--host allandalert list-activenow return results,backup runprints the finished run,backup runsshows the archive size, and long backups and stack deploys are no longer cut off after 60 seconds.logsonly keeps streaming with--follow. - Several UI texts now match what the code does: permission names on the Registries, Authentication, API tokens and Users pages, Drain (no cordon), host tags (scoping, not stack placement), global variables (hidden, not "encrypted"), and the stack delete description. The invite dialog's link expiry now takes effect (1 to 7 days) and its unused initial password field is gone. The Templates page shows each button by the permission its API call needs.
- The group-mapping hints now say what the code does (the last matching group decides, and OIDC keeps only one admin and one operator group), and the audit webhook placeholder no longer shows an internal-looking hostname.
- The notice about SAML accounts waiting for their re-key now disappears once the re-key window has passed, without restarting the server.
- Opening an image that was never scanned no longer logs a 404 error in the browser console;
GET /images/{id}/scannow answers 200 with{"scanned": false}. - The agent logs the verified SHA-256 of a downloaded upgrade binary before replacing itself.
- The backup wizards now prefill the data directory's
backupsfolder (or the first allowed local directory) for local targets instead of./data/backups, which the allowed-directory check rejected. - The users list now marks locked accounts and offers an Unlock action, so an admin no longer needs the API or
dockmesh admin unlockto release someone locked out by failed sign-ins. - The installer now detects an existing Dockmesh service reliably on upgrade, always restarts it after replacing the binary and stops with an error if the old binary is still running.
- The agent installer now reports success only once the agent has connected to the server. If enrollment fails or the server is unreachable it exits with an error and the last agent log lines instead of printing "installed and running".
- New agents keep their data in
/var/lib/dockmesh-agentinstead of/var/lib/dockmesh, so an agent on the same host as the server no longer mixes its files with the server's. Re-running the installer on an existing agent keeps its current directory, unless that is the server's data directory: then the agent's own files move to/var/lib/dockmesh-agentand the server's directory keeps its owner and permissions. uninstall.sh --dry-runno longer kills the processes of thedockmeshservice user.- Linux release tarballs now include the agent for both amd64 and arm64, and the installer places both, so a server of one architecture can enroll hosts of the other.
install.shnow refuses to install when the release has no published checksum for the download (setDOCKMESH_SKIP_CHECKSUM=1to override) instead of continuing with a warning.- The
dockmeshcommand-line tools (dockmesh admin ...) also find the settings file in/data/dockmesh.env, where the installer puts it on hosts with a separate/datavolume. A settings file found this way is only read when it belongs to root, thedockmeshservice user or the user running the command and nobody else can write to it. Otherwise the command says so; run it as that user (sudo -u dockmesh dockmesh admin ...) or pass--env-file. - Browsing a volume on an agent host works again. The agent now reads the volume through a short-lived read-only helper container, like the server does, instead of failing with "permission denied" on every folder. File names that start with
-or contain a newline or|are listed correctly, and a name with a newline can no longer add fake rows. - Opening a path that leaves the volume (
..or a symlink pointing outside) now answers with a 400 error on every host instead of a server error, and a missing file answers 404. - Saving changes that first read and then update the database, such as re-enrolling all agents or raising a notice, now waits for other writes to finish instead of failing with "database is locked" when several things write at the same time.
Upgrade notes
- AdminsUpdate your agents from the Hosts page. Volume browsing on agent hosts only works with the 0.4.1 agent.