Repository navigation
Dockmesh v0.5.2
This is a security release. It fixes 2 vulnerabilities; update as soon as possible.
Dockmesh 0.5.2 is a patch release. Pulling and scanning images act on the host you selected, the reverse proxy's admin API moved off TCP to a private socket, saving a stack no longer overwrites files changed on disk, and notices and alert messages follow the user's language. It also fixes the SAML provider options, the scanner switch in Settings, volume prune, template secrets and several smaller issues. Update your agents after the server and read the upgrade notes.
How to upgrade
curl -fsSL https://get.dockmesh.dev | sudo bash && sudo systemctl restart dockmesh
If you run Dockmesh in a container you built yourself, rebuild it from the v0.5.2 tag and recreate the container. Then check that the version shown in the UI or printed by dockmesh version is 0.5.2; if it is not, the old version is still running. Finally update the agents from the Hosts page.
After upgrading, check
- Admins: Update your agents from the Hosts page after the server. Pulling and scanning images on an agent host need this version; older agents refuse with a message to update and keep running everything else
- Admins: If the reverse proxy is enabled, it is recreated once on the first start after the update, which interrupts your sites for a few seconds. If moving it to the socket fails, the old proxy keeps running and a notice says what to do
- Admins: The managed reverse proxy now needs Dockmesh installed directly on the host. When Dockmesh itself runs in a container, turning the proxy on is refused with a message saying so; a proxy that is already running is left as it is, with its admin API still reachable for local processes on 127.0.0.1:2019
- Admins: Stacks already deployed from the PostgreSQL, MySQL or Vaultwarden template keep their secret in compose.yaml. To move it, add the value to the stack's .env, replace it in compose.yaml with ${VAR} and redeploy. Anyone with Stacks: View on the stack, including the Viewer role, could read the secret, so change the password or token, put the new value in .env and redeploy. Deploy history from before the upgrade still holds the old compose.yaml; a rollback to it brings the old value back
- Admins: The Scan images with Grype switch under Settings → General now controls scanning. If you turned it off earlier, scanning stops after the upgrade; turn it on to keep scanning. DOCKMESH_SCANNER_ENABLED now only sets the default for a new or unset value
- Admins: Earlier versions didn't save the Metadata URL, SP entity ID, signing certificate and encryption certificate fields of a SAML provider. If you filled them in, enter them again in the provider dialog; a custom SP entity ID must also be registered at your identity provider, or its sign-ins fail
- Scripts and API clients that save a stack with PUT /api/v1/stacks/{name} without compose_version and env_version still overwrite the files without a check. Send the versions from GET /api/v1/stacks/{name} with each save to get the conflict check; a refused save answers 409 stack_modified_on_disk
Security
- GHSA-fp9f-39v9-fm7x (high): The reverse proxy's admin API moved from 127.0.0.1:2019 to a private Unix socket, so other local processes and host-network containers can no longer read or change its config (DNS provider tokens, basic-auth hashes, every site's routing and TLS) or bind the admin port before Caddy does. Affects v0.5.1 and earlier. Installs where the move can't happen, including Dockmesh running in a container, keep the old proxy with its admin API on 127.0.0.1:2019 and show a notice; there it stays open to local processes until Dockmesh runs on the host or the proxy is turned off
- GHSA-5mp7-pm4q-p5p4 (moderate): The PostgreSQL, MySQL and Vaultwarden templates write generated secrets to the stack's .env instead of compose.yaml, where anyone with Stacks: View could read them. Affects v0.5.1 and earlier
Details
All changes and the full upgrade notes: CHANGELOG.md, 0.5.2