Blueprints¶
A blueprint is an assignment map: a tree of
- assign nodes, which add library items, and
- if nodes with one or more branches. Each branch has rules combined with
allorany; the first matching branch wins, otherwise theelsenodes apply. Branches can contain further nodes, up to 12 levels deep.
Rules test device facts:
| Field | Operators |
|---|---|
os.id (the ID of /etc/os-release, for example debian, ubuntu, fedora, opensuse-leap, sles, arch, alpine) |
eq, ne |
os.version |
eq, ne, gte, lte (version aware) |
os.product (a platform on top of the distribution, for example Proxmox VE 8.4; empty elsewhere) |
contains, eq, ne, present, absent |
arch |
eq, ne |
desktop |
present, absent, contains |
vendor, model |
eq, contains |
hostname |
eq, glob |
tag |
has, not_has (tags are set on the device page) |
group |
member, not_member (directory groups of the primary user) |
department |
eq, ne (from the directory) |
Text comparisons ignore case. The visual editor in the console builds the tree; the JSON form below it is the same data.
Inheritance¶
A blueprint can inherit from a parent. The parent's map is evaluated first, then the child's. An item selected twice counts at its last position, so a child can override inherited single value items.
Versions and preview¶
Every save of a library item or blueprint is kept as a version: author, time, payload and,
for items, the signature. The Version history link in the editor lists the versions
and shows a line diff between any two. Roll back saves an older version again as the
newest one; it is validated, signed and audited (library.rollback, blueprint.rollback)
like any save. A deleted object keeps its last version: the library and blueprint pages
list deleted objects, and Restore brings one back under its old ID (blueprints that
inherited from a deleted blueprint and devices assigned to it are not reassigned). The
version tables are append only. Secrets never enter them: login client secrets are stored
sealed, network secrets masked (Network profiles). Saves through the
admin API create versions like console saves. With multi tenancy, restoring a deleted
object is possible in the global view only.
The editor saves in two steps: Review changes shows the diff against the stored version and the active devices that get the change (devices whose blueprint, or a blueprint inheriting from it, uses the item), then Save item or Save blueprint stores it. Review again shows the preview once more after further edits.
The console app (/app/config) reviews while you edit: the effect panel shows the devices
that get the change (online and offline), the expected effect on compliance (a changed
level, checks newly excluded or advisory, library items added to or removed from a
blueprint) and the diff. A blueprint change can go to pilot devices first: the changed
map is saved as a copy of the blueprint (<name>.pilot, same parent) and set on the chosen
devices of the blueprint. Promote to all saves the map into the blueprint as a new
version, Abort drops it; both put the pilot devices back on what they had set before
and delete the copy (audited as blueprint.pilot and blueprint.pilot_end).
Which blueprint a device gets¶
Every device has exactly one blueprint:
- the blueprint set explicitly on the device (device page, or the enrollment token's blueprint at enrollment), otherwise
- the blueprint of the primary user's directory group (lowest priority number wins), otherwise
default.
The device page names the source next to the blueprint, and the blueprint list shows per blueprint how many devices have it set directly and which groups assign it.
Merging¶
The server walks the blueprint chain for the device and merges the selected items into one declaration per type:
- List types are combined:
- packages and services: union, removal and disabling win over installation and enabling;
- files: by path, a later item wins;
- firewall rules: union,
enforceif any item enforces, zones of the same name combined, outbounddenywins overallow; - OS minimum versions;
- package sources, CA certificates, recurring scripts, local accounts, polkit rules and sudo rules: by name, a later item wins; switched off package sources are combined;
- kernel parameters, SSH options and dconf settings: by key, a later item wins (dconf locks are combined);
- blocked kernel modules: union;
- Flatpak apps and remotes: a later item wins for the same remote;
- network profiles: by name; custom compliance checks: by ID.
- All other types are single valued: the item evaluated last wins.
Only library items of the device's own tenant and of the Default tenant are loaded. Risk exceptions (Risk exceptions) are applied to the merged compliance declaration last. The device page shows the resolved chain and which items apply. Devices pick up changes at their next check in.