Catalogs
A catalog assigns apps to devices and users. It holds apps, each with a mode, and reaches devices through its targets. A tenant keeps as many catalogs as it needs: one for every device, one for a department's blueprint, one for the users of a directory group. Software, Catalogs lists them with their apps, the number of required apps and the targets. Catalogs need LiMDM 0.46.0 or newer.
Apps and modes
Each app in a catalog has its own mode:
| Mode | Meaning |
|---|---|
| available | users install and remove it in the desktop app |
| on request | users ask, an admin decides under Requests (Requests and decisions) |
| required | the agent installs it without asking |
The app itself (name, sources, vendor repository, icon, paused or not) is defined once under Software, Apps and can be in several catalogs, with another mode in each. The app editor lists the catalogs that hold the app. An app in no catalog reaches no device.
A device that gets an app from several catalogs gets the strongest mode: required, then on request, then available. On request in one catalog and available in another therefore gives on request on that device. With two catalogs of the same mode the older catalog (lower ID) counts. The device page (Software, Catalog) shows the catalog each app comes from.
Targets
| Target | Matches | Level |
|---|---|---|
| All devices | every device of the catalog's tenant (a shared catalog: of every tenant) | device |
| Devices | the devices picked by host name | device |
| Blueprints | devices whose blueprint, one of its parents, or a pilot of one of them, is listed | device |
| Tags | devices with one of the tags | device |
| Users | the local account of an entry in the device user list with this email address | user |
| Directory groups | the local account of an entry in the device user list bound to a directory person who is a member | user |
A catalog may mix both levels. When it matches a device at device level, its apps apply to the whole device. Otherwise they apply per user to the matching accounts, and only where they are stronger than what the device gets anyway.
Users and groups match only accounts on the device's desktop users list, after the same checks the agent gets the list with (people deactivated in the directory are left out). A group matches through the directory identity the entry is bound to, and only while that identity is active, never through the email address: an address handed to another person does not bring that person's groups. Devices without a user list, local accounts not on the list and LDAP accounts not on it get device level catalogs only. The device's primary user does not make a user catalog device wide.
Whoever may edit a device's user list (device.assign, also admins with a device scope)
therefore decides which user and group catalogs of the tenant apply on that device.
Limits: a name has 1 to 100 characters and is unique per tenant, a description up to 1000 characters. A catalog holds up to 500 apps and up to 200 targets; tags have up to 32 characters. A save checks only the devices and blueprints it adds: a device or blueprint deleted in the meantime stays in the targets, matches nothing and does not block the save.
When someone else saved the catalog after you opened it, your save is refused with
catalog changed, reload (HTTP 412). Reload the catalog and make the change again; a stale
editor never overwrites an approved change.
Per user apps
Apps from user and group targets are installed for that account only:
- With
flatpak --useras that user, from the app's first Flatpak source. Every app of a catalog with user or group targets needs a Flatpak source; saving one without is refused (400), and so is removing the last Flatpak source of such an app. Packages are never installed per user, and neither is theflatpakpackage itself: on a device without Flatpak the app reportsflatpak is not installed. - The app goes into the user installation in
~/.local/share/flatpak(the agent setsFLATPAK_USER_DIRto it), whateverXDG_DATA_HOMEthe session uses. A session that moves its Flatpak user installation elsewhere does not see these apps. - The runtime goes into the system installation first, so each runtime exists once on the
device. When the app's remote lacks the runtime (vendor remotes), the runtime comes from
another system remote. The app itself takes space in the user's home: a full home or quota
shows as
no space in the user's home. Homes on NFS are not recommended; they work withroot_squash, since the agent reads and installs as the user. - Required apps install, on request apps install after an approval with install, available apps once the user installs them. A failed install is retried after an hour. A network error, for example at a first login before the user's Wi-Fi, 802.1X or VPN is up, counts as transient: the install is retried after two minutes, and the user gets no failure notification for it.
- Installs start when the user logs in: the desktop app's tray asks the agent for the user's apps. Without the tray (minimal window managers, remote sessions) the agent starts them in its next cycle while the user has a session, so within one check in interval. Nothing is installed for a user without a session.
- The desktop app shows per user apps to that user only, marked Only for you. Requests for them are per user: the request, the decision and the install state belong to that user, and only that user gets the notification.
- A per user app stays when the catalog no longer reaches the user. Blocking or unmanaging its remote removes it like a device app while the stores are read only or only managed remotes count. The user removes an available per user app in the desktop app; required and on request apps are managed by IT.
- A per user install counts as installed for that user only. When the device gets the same app, the agent installs it system wide for the other users.
- The state of per user apps is read as the user while the user has a session; a home that is not mounted is not touched, the last state stays.
- Accounts the agent finds only through NSS (SSSD, LDAP, Active Directory) are looked up with
getent passwd. An account the agent cannot resolve gets no per user apps, and the device page shows the error. - The device page (Software, Catalog) shows the catalog each app comes from and, in the
card Apps per user, each user's apps with mode, catalog and state. API:
catalog_via,catalog_usersandcatalog_users_unsupportedofGET /api/v1/devices/{id}/detail(Endpoints). - Agents before 0.46.0 get no per user apps. The device page shows a note then. Release candidates of 0.46.0 count; a test build reports 0.46.0 only when it was built with that version.
Per user installs are best effort: the user owns the user installation and its remote configuration. See Flatpak remotes and store policy for the filter and the read only stores.
Tenants and shared catalogs
Catalogs and apps belong to a tenant. Tenant admins create and edit their own catalogs and apps and add apps of their tenant and shared apps to their catalogs. In the all tenants view a global admin picks the tenant of a new app; a new catalog there belongs to the Default tenant. For a catalog of another tenant, switch to that tenant's view. The tenant of a catalog or app cannot change later.
Global admins may share catalogs and apps of the Default tenant:
- A shared app can go into the catalogs of every tenant. Unsharing it is refused (409) while a shared catalog or a catalog of another tenant holds it.
- A shared catalog reaches devices of every tenant. It holds shared apps only and targets all devices, shared blueprints and tags only, never devices, users or groups. Tenant admins see its apps and mode, not its targets (managed globally), and cannot change it.
Tenant admins may target the directory groups that have an active member bound to a device user of their tenant; other groups are refused (403). Global admins may target every group. A group a catalog holds already stays when a tenant admin saves it.
Tenant admins edit the user lists of their devices themselves, and an address there is bound to the installation wide directory. Adding an address to a device's user list therefore shows that person's group memberships to the tenant admin in the group list, and lets the admin target those groups. Grant tenant admin roles only where that is acceptable (SECURITY.md).
App IDs are unique across the installation: an ID another tenant uses is refused (409). Flatpak remotes, the store settings, taking over Flatpaks of the fleet and refreshing metadata stay with global admins.
Four eyes
With four eyes approval on, saving a catalog waits for a
second admin (request kind catalog.assign) when it:
- adds an app as required or raises an app to required,
- adds an app with a vendor package repository, in any mode, or
- changes the targets, or turns Shared on or off, while the catalog then holds a required app or an app with a vendor repository.
Removing apps, lowering a mode, changing name or description and deleting a catalog need no
approval. The same rule applies wherever apps go into a catalog: Approve for everyone,
approving a request for an app outside the catalog and adding from Flathub. Taking over
Flatpaks of the fleet adds them as available without vendor repositories and needs none. The approver applies the change only while the catalog is unchanged
since the request; otherwise the approval fails with catalog changed since the request
and the change has to be submitted again. The same holds when an app the request adds or
raises to required, or an app with a vendor repository, was changed after the request: the
approval covers the app as it was then. While a catalog.assign request waits, saving
one of these apps needs approval as well; the other apps of the catalog do not. The inbox shows the request as a diff of the apps
and targets, with names instead of IDs, and the sources of required apps and apps with a
vendor repository.
Saving an app (catalog.save) needs approval when it brings a vendor repository or any
catalog holds it as required. This covers enabling a paused required app.
Targets are not part of four eyes beyond rule 3. The reach of an approved catalog still follows data outside it: device tags, device user lists, blueprint assignment and pilots, directory groups of blueprints and the directory membership from Google Workspace or SCIM. Use blueprint or explicit user targets for required catalogs where four eyes matters.
Signatures
Each app in a catalog is signed with the command key, with its mode in that catalog and the app's sequence number, in the same format as before catalogs existed, so older agents check it unchanged. Any change of an app or of one of its catalog entries signs all entries of the app again; target changes sign nothing. A change on a shared app therefore makes every device that has the app download its catalog once more, in every tenant.
When the strongest entry of an app fails the check, the app is left out on that device; the server does not fall back to a weaker entry.
The server never signs a changed row again: before a catalog save, a catalog deletion or an
app save signs the entries of an app, it checks every stored entry of that app. When one does
not verify (changed in the database, or saved by a 0.45 server), a catalog save or deletion
is refused with 409, and the error names the app and the catalogs. Saving the app itself in
full removes the entries that do not verify from their catalogs instead (logged and audited
as catalog.save); add the app to those catalogs again afterwards. An app in no catalog is
signed on its own and checked the same way when it is added to a catalog. The error names
only catalogs of your tenant and counts the others. Targets, the catalog an entry belongs to and
which entry wins are not signed (Agent channel).
From apps with mode and scope
Up to 0.45 each app had one mode and an optional list of blueprints (scope). The upgrade moves both into catalogs, and every device keeps the same apps in the same modes, except for apps scoped to several tenants (below):
- Apps without a scope go into the shared catalog Standard of the Default tenant for all devices.
- Apps with a scope go into catalogs named
Blueprint: <blueprint names>, one for each owner and each set of blueprints: the Default tenant's shared blueprints, its other blueprints, and each further tenant. Apps with the same blueprints of one owner share a catalog. A long list is shortened toBlueprint: a, b and 7 more; a name in use already gets(2); a deleted blueprint is named by its ID and targets nothing. - A blueprint of the Default tenant that is not shared but has shared or tenant blueprints below it keeps its unshared catalog for the Default tenant's devices. The shared blueprints below it go into the shared catalog of the app, the tenant blueprints below it into that tenant's catalog, so devices of other tenants on them keep the app. Such an app becomes a shared app of the Default tenant.
- An app held only by catalogs of one tenant moves to that tenant. An app held only by unshared catalogs of the Default tenant stays unshared there. An app in a shared catalog becomes a shared app of the Default tenant.
- An app scoped to blueprints of several tenants without a shared blueprint is not shared,
since every tenant would then see it, its sources and its vendor repository. Only the
blueprints in its scope count: a deleted blueprint counts for no tenant, and tenant
blueprints below an unshared blueprint of the Default tenant are covered by the previous
point. It stays an unshared
app of the Default tenant and keeps only its catalog for the Default tenant's own
blueprints, if any; devices of the other tenants no longer get it. The server logs each
such app with the tenants (
migration 15: app of several tenants kept private to the default tenant, add it to the tenants' catalogs again). A global admin then decides: share the app and add it to the tenants' catalogs, or create a copy in each tenant. - Pending approvals of apps with a mode or scope expire at once (audited); submit them again.
See Upgrades for the order of the upgrade.