Upgrades¶
Upgrading the server¶
See Docker and packages. Read the release notes; migrations run automatically and are not reversible: the server packages back up before the upgrade when backups are configured (Before upgrades); keep that archive until the new version runs. With several instances upgrade one at a time, unless the release notes ask for a full stop (Upgrades).
Upgrading from 0.16 to 0.17¶
- Full stop with several instances (Upgrades):
0.16 instances write package lists and device users in a way 0.17 does not read or
sign, and the first 0.17 start partitions
device_metricsand moves the package lists. - OpenSSL 3 on devices. The installers verify the release signature with OpenSSL 3
and the agent packages depend on
openssl (>= 3). Systems without it (Ubuntu 20.04, Debian 11, RHEL, Alma and Rocky 8) are no longer supported: their agents fail the package install of every new version (the update is reported as failed and the agent stays on 0.16). Move these devices to a supported release first. - Managed files with symlinks in their path fail.
com.limdm.filesand file uploads are written without following symlinks, also on devices withallow_scripts. A path through a symlink (/lib,/binand/sbinon merged/usr,/var/run,/homeon Fedora Atomic) or a target that is itself a link (/etc/resolv.conf) is refused, and such a file that becomes undeclared is left in place. Declare the real path (/usr/lib/...). - Password prompts of polkit on GNOME and KDE Plasma. The SSO device flow does not run
for polkit there: the polkit helper runs outside the user's logind session (under
user@.serviceor socket activated), which the agent cannot tell from an SSH session. pam_unix decides, so SSO only users without a local password cannot authenticate admin prompts on these desktops (Desktop login (PAM)). - Custom compliance checks may read only the allowlisted osquery tables (no
augeas; osquery 4 or newer); see Compliance. - Restore needs
-command-keyunless it runs on a server with the signing command key (Restore an archive). - Outbound proxy. Notifications and backup targets go through
httporhttpsproxies only (SOCKS is no longer used), with the target resolved by the server.
Upgrading from 0.15 to 0.16¶
- Stop every instance before the first 0.16 instance starts. At its first start 0.16
switches the audit chain to keyed hashes (HMAC-SHA256 with a key derived from the
command key) and records the switch point in
LIMDM_CA_DIR/audit-keyed-fromand the database. A 0.15 instance still running would append plain hashes behind the switch point and break the chain. Start one 0.16 instance, wait for/readyz, copy the CA directory (now withaudit-keyed-from) to the other instances, then start them. An instance whose CA directory lacks the switch point, or differs from the one the others use, refuses to start; an instance with an outdated audit key refuses to write audit entries. - Health checks.
/healthzno longer queries the database, it only shows that the process runs. Point load balancers and uptime monitoring that should notice a database outage at/readyz(below). - Reverse proxy on another host. The client address is taken from
X-Forwarded-Foronly for proxies on loopback or listed inLIMDM_TRUSTED_PROXIES. Set it when Caddy, nginx or a load balancer runs on another host or container network, otherwise rate limits, console network lists and the audit log see the proxy's address. - Release builds. The release workflow needs the secret
RELEASE_SIGNING_KEYand the variableUPDATE_PUBKEYand fails without them (release key). Agents built without a release key refuse every self update. - New environment variables, all optional:
LIMDM_TRUSTED_PROXIES,LIMDM_DRAIN_SECONDS,LIMDM_SYSLOG,LIMDM_MULTI_TENANT,LIMDM_KEY_PROVIDERandLIMDM_PKCS11_*;LIMDM_SESSION_KEYaccepts a comma separated list during a rotation (Server). - Webhook signing secret. It is now its own sealed value. Installations with settings
or notification channels keep the value derived from the session key, migrated at the
first start, so receivers need no change. Rotate it with
limdm-server keys rotate webhookor Settings, Security, Keys. - Privacy opt ins. Geolocation of device public addresses and the DNS over HTTPS fallback of agents are now off by default. Turn them on in Settings, Security, Privacy if you used them.
- Agent behavior. Files of
com.limdm.filesand firewall rules that are no longer declared are removed from devices. On devices enrolled withoutallow_scripts,com.limdm.fileswrites only to the allowlisted plain text locations (com.limdm.files(list)). - Agents. Key rotations need agents 0.16 or newer: update the fleet before rotating (Rotation).
Docker and packages¶
- Docker: set
LIMDM_VERSIONto the new tag,docker compose pull && docker compose up -d. - Packages: install the new package. The service restarts, database migrations run automatically at start (versioned, guarded by an advisory lock, so instances starting at once wait for each other).
- Several instances: one after the other, waiting for
/readyzon each; some releases need a full stop (Upgrades). - 0.15 to 0.16: stop every instance first, check health checks, proxies and the release key: Upgrading from 0.15 to 0.16.
Back up the database before upgrading (Operations). Agents are updated from the console (Agent updates).