Flatpak remotes and store policy¶
Flatpak remotes¶
Software, Remotes lists the remotes IT manages, Flathub from the start:
- allowed remotes are added to the system installation of every device and kept enabled; blocked ones are disabled, in the system and in users' installations.
- Only catalog apps: with the store filter on (
restrict_flathub), the remote gets a filter that allows runtimes and the catalog's apps from that remote only. - Found on devices, not managed lists remotes devices have that IT does not manage (Fedora Flatpaks, FlatPark, own repositories) with the device count: Take over makes it a managed, allowed remote; Block disables it everywhere.
- Add remote takes a
.flatpakrepofile, a repository or anoci+https://URL.
A catalog app installs its Flatpak from the remote chosen in its editor (Flathub by default); Flatpaks taken over from devices keep the remote they came from. The agent applies all of this every cycle, so changes users make to remotes do not last.
Store policy¶
The store policy is set per blueprint with the library item Software store policy
(com.limdm.softwarestore):
only_managed_remotes disables every Flatpak remote that is not allowed under Remotes,
also in users' installations. Devices without such an item use the default under Software, Settings. Agents
before 0.10.1 report the item as invalid but keep working; the server applies the policy
either way.
- Flathub offers only catalog apps. A Flatpak remote filter (
deny *, runtimes and the catalog's Flatpaks allowed) is set on the system's and every user'sflathubremote, so users cannot install other Flathub apps withflatpak --usereither. - GNOME Software and KDE Discover are read only. A polkit rule
(
/etc/polkit-1/rules.d/60-limdm-store-readonly.rules) refuses installing, removing and repository changes through PackageKit and Flatpak for users. The agent runs as root and is not affected. The desktop app shows a note that software comes from the catalog.
AppImages are not supported on purpose: no signature checks, no updates, no central removal.
Audit¶
Saving and deleting apps, settings and every request decision are in the audit log
(catalog.*, an approval with install as catalog.request.approve+install); requests also
record the user and their note. Installs and removals on a
device are device events.