Skip to content

Dockmesh v0.5.0

Choose a tag to compare

@github-actions github-actions released this 03 Nov 17:24
· 209 commits to main since this release
b41e8bf

This is a security release. It fixes 1 vulnerability; update as soon as possible.

Dockmesh 0.5.0 brings a redesigned web UI with a German translation, roles per area that can be limited to hosts, host tags or stacks, live progress and cancel for long operations, and safer backups with credentials encrypted at rest. It also fixes several scope leaks in earlier releases; see the Security section and the linked advisory. Read the upgrade notes before upgrading: access is migrated to the new role model, and going back needs the database snapshot written before the migration.

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.0 tag and recreate the container. Then check that the version shown in the UI or printed by dockmesh version is 0.5.0; if it is not, the old version is still running. Finally update the agents from the Hosts page.

After upgrading, check

  • Users, roles, scopes, tokens and invites migrate automatically and never gain access; where the old setup can't be expressed exactly, access is narrowed and an admin notice lists every account, role and token that changed. Review it under Users & roles
  • The built-in roles follow the new definitions: Operator no longer deploys, Deployer no longer deletes stacks or opens terminals, Viewer can read logs; DOCKMESH_RBAC_V2_ENFORCE is gone. The admin notice after the upgrade lists everything each role lost
  • Container metrics are moved to a layout keyed by host on the first start, keeping every sample. Update agents to record history on their hosts; until then their charts show live values.
  • API responses no longer include the query of a proxy site's forward-auth URL, also for users who can edit the proxy. Clients that send the URL back without a query keep the stored one; nothing else changes for existing sites.
  • Restores with mode replace onto a host behind an agent need the agent of this version; an older agent is refused with a message to upgrade it from the Hosts page. Merge restores keep working with older agents.
  • Existing CPU alert and autoscaling rules are labelled "% of one core" and behave as before; edit a rule to switch it to "% of host". API clients that create alert rules or write scaling rules without cpu_unit get "% of host".
  • API tokens created with a token before this release have no parent on record and keep working as before. Stacks created before this release have no host until they are deployed; users limited to some hosts need an admin to deploy them or to give them a stack assignment. Backup jobs with hooks into Dockmesh's own containers keep running; review them under Backups.
  • On the first start, stored backup target credentials and secret global variables are encrypted automatically. Deploy history entries of environment-override deploys made before this version lose their compose snapshot, because it held .env values; they can no longer be rolled back to. Stacks whose compose.yaml an earlier rollback filled with .env values get a notice. The database snapshot taken before the upgrade (.pre-migrate-.bak next to the database) still holds the old plaintext values; delete it once the upgrade works.
  • Existing OAuth2 and LDAP accounts move to their immutable id at their next sign-in within 30 days of the upgrade, as long as the login name or DN is still the one they were linked with; when that key isn't the new id (a GitHub login, a DN), the e-mail at the provider has to match the account too, and accounts with two-factor authentication or a role that manages users or settings are then left for an admin to recreate. Users renamed or moved before signing in again, and accounts not signed in within the 30 days, can't sign in through their provider any more and have to be recreated. The Authentication page and an admin notice list the accounts still waiting, with End re-keying to stop. Links left behind by providers deleted on earlier versions are removed.
  • Without DOCKMESH_AGENT_PUBLIC_URL in dockmesh.env, install commands now use the agent URL from Settings, or the base URL's host on port 8443, and the agent certificate gets that name added on the first start. Existing names and IPs stay, so enrolled agents keep connecting.
  • Registry credentials now also reach agent hosts for the images they deploy; a registry without scope tags applies to every host, so add scope tags to registries that must stay off some hosts. Agents need this version to use the credentials; older agents keep pulling anonymously.
  • Git sources saved with poll interval 0 before this version were stored as 300 seconds; set 0 again to turn polling off.
  • Git auto-deploys and migrations now apply the stack's default environment override, but only one a manual deploy used with the same file; deploy a stack with an override once by hand to confirm it.
  • Backup runs and restores are now audited as backup.run and backup.restore; update audit webhooks or SIEM filters that matched stack.deploy or container.rollback for backups.
  • Backup job changes, adding or removing hosts, agent upgrades and host drains are now audited as backup.job_create/update/delete, agent.create/delete/upgrade and host.drain/drain_abort instead of stack actions. Audit webhook filters that relied on stack.* for these need backup., agent. or host.* added.
  • Browsers set to German now show the UI in German. To keep English, choose English under Account → Language; the choice is saved per user. Alert channels keep sending in English until a language is set on the channel.
  • Going back to v0.4.2 by putting only the old binary back is not supported after this upgrade; v0.4.2 does not start on the migrated database. To roll back, restore the previous binary together with the database snapshot written before the migration (dockmesh.db.pre-migrate-*.bak next to the database), as described under Upgrade, Rolling back.
  • Upgrade agents after the server, from the Hosts page or with the agent upgrade policy. Older agents keep running, but replace restores, host-side volume changes, registry credentials and metrics history on their hosts need this version.

Security

  • GHSA-chvj-99rx-hm5c (high): Scope restrictions were not applied to the agent list, agent token rotation, upgrade and revoke, the audit log, image update checks, backup jobs, runs and targets, and stack restores; backup helpers wrote archive contents into their Docker log

Details

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