Recent releases,
- come with Flathub system-wide enabled by default.
- do not come with Flathub per-user enabled by default.
References for Flathub system-wide:
Recent releases,
References for Flathub system-wide:
The flathub repository is enabled by default system-wide. This means, by default:
flatpak install flathub org.mozilla.firefox
can be used.
However, the flathub repository is not enabled by default yet per-user or for user user. Therefore,
flatpak --user install flathub org.mozilla.firefox
would fail. To make it work, the following command would be required.
flatpak --user remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
Now, the obvious thing to suggest would be “enable flathub by default for per-user too”. But first, there are some Linux permission specific issues.
Also if flathub was enabled, both system-wide and per-user, once trying to install a flatpak, it would show the following confusing message.
Looking for matches…
Remote ‘flathub’ found in multiple installations:
1) system
2) user
Which do you want to use (0 to abort)? [0-2]:
Due to flatpak bad security design in mind, and require even more privileges, i suggest to have it ditched and rely on the old style of only having packages downloaded&installed from the distro main repos.
As a replacement, i suggest something more secure with the same upgraded packages, a stable and secure rolling distro.
e.g Tumbleweed:
What specifically?
One crazier than the other e.g: Downloading the binaries not the source code from the developers (firefox, vscodium…etc), doesnt pass TUF as it suffers from indefinite freeze attacks, blobs,…etc just garbage way to have newer software.
What kind of blobs?
" Flathub’s build process of downloading binaries poses certain risks. Since builds are automated, it is unlikely and not enforced that the packager verifies that the source code is complete, can be compiled, and is free of binary blobs, Embedded Code Copies of libraries, other software, or non-freedom software."
Flathub feature request (written just now):
This shows that a Linux distribution or any software delivery mechanism is also a curator that performs a software quality review. For example,
Both approaches have advantages and disadvantages. Flathub provides often more recent software than Debian but Debian performs a more stringent quality review and always buils all software in its main repository component from source code.
I think its game over, they just dont want to take the effort and do it correctly. Happy with the stupid mechanism they have.
Here are examples
https://github.com/search?q=org%3Aflathub+%22type%3A+extra-data%22+AND+%28path%3A*.yaml+OR+path%3A*.yml%29+-path%3A.github%2F&type=code
https://github.com/search?q=org%3Aflathub+%22%5C%22type%5C%22%3A+%5C%22extra-data%5C%22%22+AND+path%3A*.json+-path%3A.github%2F&type=code
https://github.com/search?q=org%3Aflathub+%22.rpm%22+AND+%28path%3A*.json+OR+path%3A*.yaml+OR+path%3A*.yml%29&type=code
https://github.com/search?q=org%3Aflathub+%22.appimage%22+AND+%28path%3A*.json+OR+path%3A*.yaml+OR+path%3A*.yml%29&type=code
https://github.com/search?q=org%3Aflathub+%22.deb%22+AND+%28path%3A*.json+OR+path%3A*.yaml+OR+path%3A*.yml%29&type=code
https://github.com/search?q=org%3Aflathub+rpm2cpio+AND+%28path%3A*.json+OR+path%3A*.yaml+OR+path%3A*.yml%29+-path%3A.github%2F&type=code
https://github.com/search?q=org%3Aflathub+%28%22buildsystem%3A+simple%22+OR+%22%5C%22buildsystem%5C%22%3A+%5C%22simple%5C%22%22%29+AND+%28%22dpkg+-x%22+OR+rpm2cpio+OR+%22appimage-extract%22+OR+%22ar+x%22%29+AND+%28path%3A*.json+OR+path%3A*.yaml+OR+path%3A*.yml%29+-path%3A.github%2F&type=code
Note: These are Verified and Free Software on flathub.
https://github.com/flathub/zone.dos.Browser/blob/master/zone.dos.Browser.yaml
https://searchfox.org/firefox-main/source/python/mozbuild/mozbuild/repackaging/flatpak.py
https://github.com/flathub/net.mullvad.MullvadBrowser/blob/master/net.mullvad.MullvadBrowser.yml
https://github.com/flathub/app.zen_browser.zen/blob/master/app.zen_browser.zen.yml
https://github.com/flathub/one.ablaze.floorp/blob/master/one.ablaze.floorp.yml
https://github.com/flathub/org.garudalinux.firedragon/blob/master/org.garudalinux.firedragon.yml
https://github.com/flathub/io.gitlab.librewolf-community/blob/master/io.gitlab.librewolf-community.json
https://github.com/flathub/com.brave.Browser/blob/master/com.brave.Browser.yaml
https://github.com/flathub/io.github.ungoogled_software.ungoogled_chromium/blob/master/io.github.ungoogled_software.ungoogled_chromium.yaml
https://github.com/flathub/org.gnome.Epiphany/blob/master/org.gnome.Epiphany.json
https://github.com/flathub/engineer.atlas.Nyxt/blob/master/engineer.atlas.Nyxt.yaml
https://github.com/flathub/org.kde.falkon/blob/master/org.kde.falkon.json
https://github.com/flathub/org.catacombing.kumo/blob/master/org.catacombing.kumo.json
https://github.com/flathub/org.kde.angelfish/blob/master/org.kde.angelfish.json
https://hg-edge.mozilla.org/releases/comm-esr140/file/34b243658c31506d293b13d67238ccca56c290e0/taskcluster/docker/tb-flatpak/repack.sh
https://github.com/flathub/eu.betterbird.Betterbird/blob/master/eu.betterbird.Betterbird.yml
https://github.com/flathub/org.gnome.Evolution/blob/master/org.gnome.Evolution.json
…
Its a mess when flathub doesnt enforce source code only (and verified only which is another issue).
Conclusion:
Unless you use gnome software from flathub, its all over the place.
security-misc:
- Configures flatpak to require authentication for all software installation
and management tasks including updates. Ships
/usr/share/polkit-1/actions/org.freedesktop.Flatpak.policy.security-misc,
diverts/hides/usr/share/polkit-1/rules.d/org.freedesktop.Flatpak.rules.