LiMDM

Declarative device management for Linux clients with OpenSSL 3 (Debian 12+, Ubuntu 22.04+, Fedora, CentOS Stream and RHEL rebuilds 9+, openSUSE Tumbleweed and Leap 16, SLES 16, Arch, Alpine 3.17+, Void Linux with glibc or musl), modelled on
Apple’s Declarative Device Management. Administrators describe the desired state; the agent
on every device converges to it on its own, also while offline, and reports back.
Compliance checks map to BSI IT-Grundschutz, CIS Benchmarks (Level 1 and 2) and
ISO/IEC 27001:2022 Annex A.
Status: early. Server and agent run on a Debian 13 test installation. Desktop
features (login, disk recovery keys, desktop helper) are not yet verified on real
Ubuntu and Fedora desktops. See Limitations.
Features
- Library items and blueprints. Reusable, strictly validated configuration items
(packages, updates, firewall, SSH, sudo, polkit, package sources, certificates, proxy,
printers, WLAN and VPN profiles, dconf, local accounts, screen lock and more) are assigned
through blueprints with nested conditions and inheritance. Every change is versioned with
diff, review step, rollback and restore. File content and firewall rules can be templates
rendered per device (host name, tags, tenant, custom attributes); scripts run on a schedule.
- Patch management: update rules per source (OS security, all OS updates, vendor
repositories, Flatpak), update rings with waves, deferral, pause and approval, pending
updates and CVEs per device and fleet wide (Debian, Ubuntu, Arch and Alpine security data,
dnf and zypper advisories), package hold and downgrade.
- Host firewall on ufw, firewalld and nftables (Alpine) with zones and optional outbound
filtering, and a read only inventory of every rule on the device: adopt, keep or discard
foreign rules.
- Containers and VMs (Docker, Podman, LXC, LXD, Incus, Proxmox, libvirt) per device, with
start, shut down and restart behind a policy switch.
- Host names from reverse DNS, DNS, the serial number, a template or a fixed name.
- Compliance with automatic remediation, grace periods, automatic lock, custom checks,
risk exceptions, compliance history and CSV evidence for auditors.
- Device commands for lock and unlock, lost mode, wipe, restart, scripts, updates,
software removal, local accounts (create, admin rights, password, lock), log collection and
an audited remote support shell. Every command is signed with Ed25519 and checked by the
agent before it runs. Wipe, lost mode, scripts, role changes and settings changes that weaken
four eyes, SSO or local login can require four eyes approval.
- Single sign on for the console (OIDC, for example Google Workspace) and for the
desktop login, either for every login or as a session model like Platform SSO, with
configurable reconfirmation and offline grace.
- Directory sync via SCIM 2.0 or the Google Directory API; groups select blueprints,
deactivated people lose their device accounts.
- Software store in the desktop app: curated apps from Flathub and vendor
repositories (for example Tailscale, Mullvad, NetBird), requests for other apps and
approval in the console. Several catalogs per tenant, each assigning apps as available,
on request or required to all devices, devices, blueprints, tags, device users or
directory groups; on a device the strongest mode wins. User and group targets match the
accounts on the device user list (groups through the bound directory identity) and
install the app as a Flatpak in that user’s home, starting at login with the desktop
app, else within one check in interval while the user has a session
(Catalogs).
- Notifications to email, Slack, Discord and signed webhooks for non compliant devices,
tamper attempts, failed commands and more.
- Disk encryption recovery keys created on the device with the user’s passphrase in a
branded desktop dialog, escrowed and sealed on the server.
- Inventory via osquery: hardware, disks, volumes, packages, Flatpaks, snaps, accounts,
network interfaces, package sources.
- Governance: roles (admin, helpdesk, auditor) with device scopes, multi tenancy for
MSPs, a keyed and hash chained audit log with syslog forwarding, key rotation without
enrolling devices again and an optional PKCS#11 HSM.
- Integrations: admin REST API with OpenAPI, Prometheus metrics, several server
instances behind a load balancer.
- Security by default: mTLS only between agent and server (TLS 1.3, private device CA,
pinned fingerprint, device key in the TPM 2.0 where present), signed library items, IP
allow and block lists for the console, append only audit log.
- Automatic agent updates: every device gets the newest release within 6 hours, with
signed checksums and automatic rollback; packages for deb, rpm, Arch, Alpine and Void Linux
(xbps), systemd, OpenRC and runit. Console in English and German.
Upgrading from 0.15: stop every server instance first, see
Upgrades.
Quick start
Server with Docker Compose, PostgreSQL and Caddy (automatic HTTPS):
git clone https://github.com/MalteKiefer/limdm && cd limdm/deploy/docker
cp .env.example .env # set LIMDM_DOMAIN, LIMDM_SESSION_KEY, POSTGRES_PASSWORD
docker compose up -d
docker compose exec limdm limdm-server local-admin add admin
Open https://<LIMDM_DOMAIN>, sign in with the printed password and TOTP secret, create an
enrollment token and install the agent on a device:
curl -fsSL https://mdm.example.com/install.sh | LIMDM_TOKEN=lmt_... sudo --preserve-env=LIMDM_TOKEN sh
# the leading space keeps the token out of the shell history (HISTCONTROL ignorespace)
# without curl (Ubuntu Desktop ships only wget):
wget -qO- https://mdm.example.com/install.sh | LIMDM_TOKEN=lmt_... sudo --preserve-env=LIMDM_TOKEN sh
Host installation with deb, rpm, Arch, Alpine or Void Linux packages behind Caddy, OIDC and all options:
Installation.
Documentation
The documentation lives at docs.limdm.com: installation,
concepts, the console, every library item, compliance, patching, security, operations and
the admin API. The console’s help and its Docs links open the matching page there.
Limitations
- Desktop login, the desktop helper and LUKS escrow still need testing on real GNOME and
KDE desktops (GDM, SDDM, lock screen, SELinux context of
pam_exec on Fedora).
- The BSI mapping is at module level; requirement IDs and the mapping to Grundschutz++
(BSI Standard 300-1) need review by an information security officer.
- Official CIS Benchmarks exist for Ubuntu and Debian; Fedora uses the RHEL
recommendations as reference.
- Server keys can live in a PKCS#11 HSM only with the separate
-tags pkcs11 build. Agent
keys live in the TPM 2.0 when one exists, else in a file; the TPM attestation does not check
the EK certificate against vendor roots (TPM bound device key).
- The client secret of the desktop login declaration is sealed on the server but stored in
plain text on the device (0600, root only).
- SUSE support, TPM binding and printers are not yet verified on real SUSE, TPM and CUPS
systems.
- Per user catalog apps need agent 0.46.0 or newer and space in the user’s home (runtimes
go to the system installation); homes on NFS are not recommended. They are best effort:
the user owns the user installation and can change its remotes.
License
MIT
评论