Agent releases
Agents and connectors update themselves from published releases. Admin → Agent releases manages them.
The release page
The page has two tabs, Agent and Site connector, each with how many
installations it has; the open tab stays in the page address
(?tab=connector), so it can be linked. Each tab shows the same parts for
its component, and Release signing below them applies to both. The page
refreshes every 30 seconds; Updated shows when it last did.
- Stable channel and Beta channel show the release each channel offers: the newest published release of the channel (beta tenants also get stable releases, so while no newer beta exists the beta channel says it follows stable). Under it, On this version counts the installations that already run it, out of all installations of every channel (52 of 298 installations, all channels), and Rollout shows its stage with whom that reaches (Offered to 25% of stable-channel installations.: stable-channel installations while a newer beta exists, stable and beta installations otherwise).
- Versions in use shows every running version as a share of the installations, newest first, marked Stable release, Beta release, To be updated (older than what is offered), Other build or Not reported.
- The table lists the drafts first, then the releases on offer (stable, then beta), with each release's channel, its state (Offered by a channel, Superseded by a newer one, or Draft), its rollout, how many installations run it and when it was published. Superseded builds are under a closed Superseded · N group below them, newest first and paged once you open it. Only an offered release's rollout counts: a superseded release says Not offered, whatever its percentage.
Change the rollout
A rollout has five stages: Paused (offered to nobody), 5%, 25%, 50% and 100%. Choose one (or move between them with the arrow keys), then press the button that names the change, for example Raise 1.4.2 from 25% to 50%; Cancel (or Esc) leaves it as it was. Nothing changes until you press that button. Raising a rollout above 10%, or publishing a release at more than 10%, asks you to confirm with your password or a passkey first; the release automation (CI) can never set more than 10%. The confirmation has Undo for 15 seconds. Lowering or pausing a rollout does not take the release back: installations already on it keep it. The rollout reaches online installations within a few minutes, and each installation always falls in the same share, so raising it only adds installations. A percentage set another way (for example through the API) is shown next to the stages.
Publish a release
Publish a release at the top of the page opens a side panel, set to the open tab's component:
| Field | Meaning |
|---|---|
| Component | agent or connector. |
| Version | Semantic version, e.g. 1.2.0. Each version can be released once (release_exists). |
| Channel | Stable, or Beta (only tenants on the beta channel get it). |
| Rollout (%) | Share of installations offered the release (0–100). Default 0: nobody is offered it until you raise the rollout; Update agent still updates single devices, and agents too old to work with the server are updated anyway. |
| MSI | The installer. |
| Release signature | The signature of this exact MSI, made with release-sign where the release key is kept (the release automation, or a release manager). |
| Notes | Release notes. |
Once the version and rollout are valid, the panel says what publishing will do: which release it replaces on its channel and whom it reaches (for example Replaces 1.4.2 (25%) as the stable release. At 0% the rollout stops: nobody is offered an update until you raise it, and installations not on 1.4.2 yet stay where they are.). A version that is not newer than what the channel offers is refused, since it would never be offered. The version field suggests the next patch of the current offer.
You can also drop the MSI on its field. The panel shows the steps as they run (computing the SHA-256, uploading, checking the signature) and closes once the release is published.
The server never signs a release: it only checks the signature made where the release key is kept, so whoever controls the server cannot make agents install a build of their own. Release signature shows the command that makes the signature for the chosen component, version and file, with a copy button:
RELEASE_SIGNING_KEY=<key> go run github.com/entrosity/entrosity-shared-go/cmd/[email protected] -component agent -version 1.4.3 -file rmm-agent.msi
Run it where the key is kept and paste the signature it prints (base64, 88 characters). The release automation does this itself for every build.
The MSI is uploaded as a draft. Publish checks the uploaded file's
size and SHA-256 and that the signature matches that file, the component
and the version for the release key. A missing or wrong signature is
refused (The signature does not match this build, version and component,
or was not made with the release key, signature_invalid): nothing is
published, the release stays a draft, and publishing again with the right
signature publishes it without uploading the MSI again. The newest published
stable release also becomes the MSI behind the enrollment download
links and the AD agent push.
A draft left behind (for example when an upload failed or its signature was refused) stays in the table with Publish, which first says what publishing will do, the same way, and asks for the release signature, with the command that makes it.
Delete a release
The release a channel offers (the newest published release of its
component on Stable or Beta, even at rollout 0%) cannot be deleted:
its row says Offered to {n} computers. Offer another release first to
delete it. (or Offered on {channel}. … while no installation runs
it). Publish a newer release on that channel first; the API refuses it
with 409 release_offered.
Drafts and older releases are deleted with the bin icon. The confirmation says how many computers still run that release (they keep running it and update to the release on offer) and that its installer (MSI) is removed; a toast confirms the deletion.
Release signing at the bottom shows the build public key
(RELEASE_PUBLIC_KEY) with a copy button: the key signatures are checked
with. Without RMM_RELEASE_PUBLIC_KEY the page says so at the top, and
Publish is disabled in the panel and on drafts, with the reason.
Download a release
Download (the arrow icon) next to each release saves its MSI as
rmm-<component>-<version>.msi (for example to install a connector by
hand). Every click asks for a fresh link valid for one hour; drafts can be
downloaded once their MSI is uploaded. Only global admins can download,
and each download is recorded in the audit log as release.download.
How updates reach devices
An installation is offered a release when all of these hold:
- its tenant is active, and the release is the newest published one of the tenant's channel (beta tenants also see beta releases);
- it runs an older version;
- it falls within the release's rollout percentage (an installation always falls in the same share, so raising the percentage only adds installations);
- it has no update in progress, and was not offered this version in the last hour (longer after failed attempts: 2, 4, 8, at most 12 hours);
- only a limited number of updates per tenant run at the same time. The others wait for a free slot, so a school's uplink is not flooded by every computer downloading the installer at once; a release reaches a few hundred computers in a couple of hours.
Offers are made when an agent connects and every five minutes after that.
Update agent on a device's page offers the newest release of the tenant's channel to that one agent at once, ignoring the rollout percentage, the wait after an earlier offer or failed attempts, and the tenant's cap on updates in flight, though it counts toward that cap (Device actions).
Agent versions
Admin → Agent versions shows which installations lag behind, in two
tabs, Agents and Site connectors, each with how many are outdated;
the open tab stays in the page address (?tab=connector). The page
refreshes every 30 seconds, and Agent releases at the top opens the
releases of the same component. Each tab shows:
- what the Stable and Beta channels offer now: the newest published release of that component, with its rollout percentage (beta tenants are offered stable releases too);
- how many installations can be updated now, and how many are offline or updating;
- the outdated agents (by Device, which opens the device) or site connectors (by Connector) of every tenant that run an older version than the newest release of their tenant's channel, grouped by tenant, with their version and the newest one (1.4.1 → 1.4.2), the Channel and the State (Online, Offline, Updating). The list opens on Can be updated now; Waiting and All show the others. Offline installations are one line, N offline agents get 1.4.2 when they reconnect, which opens to their rows. The list shows 25 per page; at most 1000 agents and 1000 connectors are listed.
The list includes installations outside a channel's rollout percentage: Update now sends them the newest release anyway.
Update N agents now (or connectors), and Update N here in a tenant's heading for just that tenant, send every installation that can be updated now the newest release of its tenant's channel, one after the other, after a confirmation. Stop ends the run before the next one. Afterwards the page says how many were sent and names the ones that could not be sent. On a phone each installation is a small card with Update now beside it.
Update now sends that installation the newest release of its tenant's channel at once, ignoring the rollout percentage and the wait after an earlier offer or failed attempts. It is sent now or not at all: nothing is queued. An installation that is waiting has no Update now; its row says why instead, when the installation:
- is offline (it is offered the update by the normal rollout when it reconnects);
- already has an update queued or running;
- belongs to a tenant that is not active;
- is a development build, which is never updated.
Each update is recorded in the audit log as device.action.update_agent
(agents) or connector.action.update (connectors).
What the device does
- Verifies the release's signature. A bad signature is reported as
signature_invalid(update_unsignedfor a build that cannot check signatures). Nothing is downloaded before the signature checks out. - Downloads the MSI and verifies its size and SHA-256.
- Hands the install to a one-shot SYSTEM scheduled task
(
RMMAgentUpdate/RMMConnectorUpdate) and reports scheduled. - The task installs the MSI, then a watchdog checks that the service is running and still running 60 seconds later. Otherwise it reinstalls the previous MSI (rollback).
- After restarting, the agent reports
agent_updatedorupdate_failed.
Adoption
Versions in use on the release page shows which versions are running across the installation, per component.