Skip to content

Dockmesh v0.4.0

Choose a tag to compare

@github-actions github-actions released this 29 Oct 18:10
· 263 commits to main since this release
b563d64

This is a security release. It fixes 16 vulnerabilities in 0.3.3 and earlier; update as soon as possible.

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.4.0 tag and recreate the container. Then check that the version shown in the UI header (the host selector at the top) or printed by dockmesh version is 0.4.0; if it is not, the old version is still running. Finally update the agents from the Hosts page.

After upgrading, check

  • Everyone signs in again once.
  • Update each agent from its host page (re-issue the host token and run the new install command for a fully verified path).
  • Recreate API tokens created before 0.4.0 while signed in as their owner, then revoke the old ones.
  • Behind a proxy on another machine or in a container: add its address under Settings, System, Trusted proxies.
  • Custom roles listed in the notice: grant "Download backups" or "Shell into container" where intended.
  • SSO: turn on "link to existing accounts" for a provider if local accounts must sign in through it, or remove the local account.
  • SAML: check each provider's NameID format under Authentication before users sign in again; use HTTPS for identity providers on another domain.
  • Review the accounts the notice lists as linked to SSO, admins first.
  • Give the Admin role to anyone who still needs system settings, SSO, global environment variables or system backups.
  • Rename one job of each group of colliding backup job names the notice lists.
  • Make sure the database directory has room for a full copy of the database (or set DOCKMESH_SKIP_PREMIGRATE_BACKUP=1).
  • Redeploy every stack listed in the bind-mount notice; on remote hosts upgrade the agent first.
  • Set a webhook secret on each git source the notice lists and enter it at your git provider.
  • Confirm the prompt for stacks whose compose.yaml or .env you edit outside Dockmesh.
  • If a notice says the setup flag was ignored, delete DOCKMESH_SETUP_FORCE=true from the env file and restart.

Security

  • GHSA-22fg-hmg7-9x6w (high): Half-finished two-factor login could turn two-factor authentication off
  • GHSA-hxmj-9372-56xx (high): WebSocket connections ignored the caller's role and host scope
  • GHSA-h34h-wr2v-w89h (moderate): Scope restrictions were not applied to several read endpoints
  • GHSA-m2fv-5hrc-8xjh (high): Users who may edit users, invites or roles could grant themselves any permission
  • GHSA-26g2-j8h2-jc69 (critical): A Host Admin could reach all secrets through the system backup
  • GHSA-6pcr-2hh4-gwg9 (moderate): Backup archives could be downloaded by every role
  • GHSA-62wv-8jrc-cww7 (high): Symlinks could lead volume browsing, restore and Git sources out of their directory
  • GHSA-9qxm-6p2m-77ch (high): Backup restore accepted a host path as its target
  • GHSA-8mf8-c6qw-xc7j (moderate): Git webhooks could be triggered without authentication
  • GHSA-46r3-rjv8-79g8 (high): The setup wizard could be reopened and misused after a reinstall
  • GHSA-7r93-wr7q-hv2p (high): Client address headers were trusted from anyone and several sign-in paths had no rate limit
  • GHSA-3p82-vprr-2m4p (high): Agents accepted any server during enrollment and did not verify self-upgrades
  • GHSA-j4wx-v546-r4fj (high): SFTP backup targets did not verify the server's host key
  • GHSA-x6v3-qvjw-56xq (high): Backup hooks could run commands in containers outside the creator's permissions
  • GHSA-q2m7-rqw3-3hrp (high): Single sign-on attached logins to existing accounts by email alone
  • GHSA-h743-wmjg-j2xx (moderate): API token checks could exhaust the server's memory

Details

All changes and the full upgrade notes: CHANGELOG.md, 0.4.0