Skip to content

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

  1. 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_metrics and moves the package lists.
  2. 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.
  3. Managed files with symlinks in their path fail. com.limdm.files and file uploads are written without following symlinks, also on devices with allow_scripts. A path through a symlink (/lib, /bin and /sbin on merged /usr, /var/run, /home on 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/...).
  4. 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@.service or 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)).
  5. Custom compliance checks may read only the allowlisted osquery tables (no augeas; osquery 4 or newer); see Compliance.
  6. Restore needs -command-key unless it runs on a server with the signing command key (Restore an archive).
  7. Outbound proxy. Notifications and backup targets go through http or https proxies only (SOCKS is no longer used), with the target resolved by the server.

Upgrading from 0.15 to 0.16

  1. 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-from and 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 with audit-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.
  2. Health checks. /healthz no 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).
  3. Reverse proxy on another host. The client address is taken from X-Forwarded-For only for proxies on loopback or listed in LIMDM_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.
  4. Release builds. The release workflow needs the secret RELEASE_SIGNING_KEY and the variable UPDATE_PUBKEY and fails without them (release key). Agents built without a release key refuse every self update.
  5. New environment variables, all optional: LIMDM_TRUSTED_PROXIES, LIMDM_DRAIN_SECONDS, LIMDM_SYSLOG, LIMDM_MULTI_TENANT, LIMDM_KEY_PROVIDER and LIMDM_PKCS11_*; LIMDM_SESSION_KEY accepts a comma separated list during a rotation (Server).
  6. 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 webhook or Settings, Security, Keys.
  7. 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.
  8. Agent behavior. Files of com.limdm.files and firewall rules that are no longer declared are removed from devices. On devices enrolled without allow_scripts, com.limdm.files writes only to the allowlisted plain text locations (com.limdm.files (list)).
  9. Agents. Key rotations need agents 0.16 or newer: update the fleet before rotating (Rotation).

Docker and packages

  • Docker: set LIMDM_VERSION to 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 /readyz on 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).