News for hackers. Stuff that matters.
Re:Flatpak: A security nightmare – two years later by zaarn on Friday October 02, 2020 @07:27AM (#24661469)
My issues with the post start with the tone. It's not a respectful tone, rather aggressive and always flashes me back to people who write similar blogposts about systemd or something else that is new but not accepted by greybeards yet.

Fonts and theming are an issue, I agree, however, this isn't entirely the fault of the flatpak maintainers but in part the fault of a fragmented and hard-to-compose linux ecosystem when it comes to their configuration.

The IME issue is a problem but I don't think a dynamically linked system would benefit much here. The solution is to make portals between flatpak and the system more extensible and versioned, so that an outside daemon an talk to flatpak apps and potentially flatpak could even try to determine which runtime to use based on what outside portal versions are available.

Re:Flatpak: A security nightmare – two years later by turbinerneiter on Friday October 02, 2020 @07:38AM (#24661565)
It's hard to keep a civil tone if you feel like the world around you is descending into madness, and this is exactly what the authors of this posts feel.

Its hard to have a civil discussion if everyone pulls into a direction you deem wrong and your words are never convincing anyone.

I have similar resentments when people in my company push for docker on embedded systems, because they are used to docker on the server, and whenever I ask them which problem they are solving on the embedded system with docker, they describe things that are wrong.

I don't share the authors strength of opinion on flatpak, although I see the same issues, and I don't want to advertise or excuse strong "tone" - but I understand the frustration.

Re:Flatpak: A security nightmare – two years later by sebmellen on Friday October 02, 2020 @08:04AM (#24661740)
Docker on embedded systems. We really have come full circle.

It reminds me of a talk by Jonathan Blow - "Preventing the Collapse of Civilization" - https://www.youtube.com/watch?v=ZSRHeXYDLko. He makes the point that Docker is a solution to what was a non-problem.

This code-piling approach seems destined for failure.

Re:Flatpak: A security nightmare – two years later by Diederich on Friday October 02, 2020 @05:01PM (#24666984)
Interesting talk...one quote, however:

"How much functionality is added to Facebook year after year? It's not that much!"

This is in support of his argument that per programmer productivity is approaching zero, due to the over-use of abstractions.

Facebook is and has been hiring top talent software people for years, and in large numbers, but most of them aren't working on https://facebook.com/ or https://instagram.com/, at least in any visible way.

I've been programming on a nearly daily basis for over 40 years now, and my total productivity has never been higher. Not primarily because I'm smarter and more experienced, but because the tools available to me are just awesome.

I can write a functional app that allows a hand full of the billions of people around the world to interact, and I can do that in less than an hour, and on the cheap, perhaps even free.

40 years ago, that would have required a lot of time, up front money and ongoing maintenance costs.

There are countless examples.

I'm not dismissing the hazards of abstractions and the freakish amount of complexity that we face today. And I agree that a lot of it is done wrong.

Re:Flatpak: A security nightmare – two years later by kanox on Friday October 02, 2020 @08:14AM (#24661813)
Docker solves the problem of reliable deployment and dealing with dependencies.

This is a real problem an regular that regular Linux distros are not very good at.

Re:Flatpak: A security nightmare – two years later by AnIdiotOnTheNet on Friday October 02, 2020 @08:39AM (#24661962)
> Docker solves the problem of reliable deployment and dealing with dependencies.

Which, as noted, are problems that didn't used to exist and were created.

Re:Flatpak: A security nightmare – two years later by fiddlerwoaroof on Friday October 02, 2020 @11:31AM (#24663644)
The thing that gets me is deploying JVM fat jars in Docker containers.
Re:Flatpak: A security nightmare – two years later by xorcist on Friday October 02, 2020 @08:19AM (#24661841)
tar solves that problem too, it's a matter of what type of abstraction is a good fit for the problem at hand.
Re:Flatpak: A security nightmare – two years later by kanox on Monday October 05, 2020 @04:25PM (#24691621)
And shell scripts solve the problem of starting and stopping daemon, but not particularly well.

The boundary between a binary tarball and the rest of the system is very poorly defined.

Re:Flatpak: A security nightmare – two years later by toxik on Friday October 02, 2020 @09:09AM (#24662196)
What an interesting video, he makes a lot of good points. However, I would definitely say that the current technology stack is more robust and capable than those of the 70s. It’s possible to have a simple system when there are hundreds of computers in the world, it is not possible when you have millions.
Re:Flatpak: A security nightmare – two years later by pjc50 on Friday October 02, 2020 @07:46AM (#24661615)
> push for docker on embedded systems

Aaargh!

A particularly odd one as most embedded systems are handled as "images" of some sort - firmware blobs, ramdiscs, imaged HDDs for embedded PCs and so on.

Re:Flatpak: A security nightmare – two years later by kanox on Friday October 02, 2020 @07:57AM (#24661693)
What exactly is wrong with docker on embedded systems? Many have the memory and storage to afford containers and existing established distros like yocto are not very good.

I'd much rather deal with Dockerfiles than buildbake.

Re:Flatpak: A security nightmare – two years later by rcxdude on Friday October 02, 2020 @07:10PM (#24667964)
I actually think yocto solves the problem better then docker in many ways. Yocto goes to a large amount of effort to make for repeatable builds, something which docker is actually quite bad at for all that it is touted as a solution for not being able to replicate someone else's setup.

I think nix actually represents the next useful stop here: it avoids just piling another layer of abstraction/virtualisation on the pile and actually reinvents the package manager in a way which actually solves the problems docker exists to solve but in a more complete manner. Bitbake I think actually represents a much messier implementation of the same ideas: just like nix uses a functional language to express package configuration, so too have bitbake files grown the same kind of functionality. The main things which bring bitbake down are the language is ridiculously quirky, hard to debug, poorly documented, and has any number of soundness holes (as well as a good amount of action-at-a-distance akin to INTERCAL's COMEFROM statement which is simultaneously really useful and really frustrating)

Re:Flatpak: A security nightmare – two years later by kanox on Monday October 05, 2020 @04:32PM (#24691692)
> Yocto goes to a large amount of effort to make for repeatable builds, something which docker is actually quite bad at

Is this something that yocto itself helps with or just something accomplished by a thousand people hacking at .bb scripts? Last I checked features like the sstate cache came with big caveats.

Dockerfile layer caching seems much more effective at shrinking build times.

Re:Flatpak: A security nightmare – two years later by Obsnold on Friday October 02, 2020 @10:06AM (#24662730)
Just to clarify yocto is not a distro but a project that allows you to create your own custom distro. Two yocto builds could be completely different from one another even using different package managers.
Re:Flatpak: A security nightmare – two years later by kanox on Monday October 05, 2020 @04:27PM (#24691640)
Yocto and various derivatives can be used to "build software" in the same way that Dockerfiles can be used to "build software" but using yocto is a much worse experience.
Re:Flatpak: A security nightmare – two years later by turbinerneiter on Friday October 02, 2020 @10:02AM (#24662684)
What is the problem docker solves?
Re:Flatpak: A security nightmare – two years later by cheph on Friday October 02, 2020 @08:36AM (#24661948)
> It's hard to keep a civil tone if you feel like the world around you is descending into madness, and this is exactly what the authors of this posts feel.

It really has not, flatpak is not madness. It has issues, they are finite, they can be fixed, they should be fixed, but it is not madness. It is better than AppImage or just running random binaries you find or compiling it yourself.

Re:Flatpak: A security nightmare – two years later by turbinerneiter on Friday October 02, 2020 @10:00AM (#24662670)
I'm not saying it is, I'm saying this is what it feels like for him and that I can understand the feeling.

Also, flatpak doesn't only compete with "AppImage or just running random binaries you find or compiling it yourself". It competes with the package manager, that has worked well for decades. The package manager has issues as well.

Maybe from the authors perspective it looks like everyone wants to throw away the package managers because of some issue they have, instead of tackling these issues. If he then points out the flaws in flatpak, people say "sure it has some issue we need to fix".

Re:Flatpak: A security nightmare – two years later by simias on Friday October 02, 2020 @07:36AM (#24661548)
I skimmed the article and I don't find the tone super disrespectful. No ad-hominem, no insults to the developers etc... The backlash against systemd was unacceptable because it ended up targeting people and not the technology. Writing an init system shouldn't net you death threats.

Beyond this, and not unlike systemd, flatpak has been pushed hard down people's throat by powerful entities within the ecosystem, so it's not surprising that in both cases there has been some intense backlash. I also personally think that in both cases it's warranted.

Re:Flatpak: A security nightmare – two years later by matthiasv on Friday October 02, 2020 @12:53PM (#24664525)
> Beyond this, and not unlike systemd, flatpak has been pushed hard down people's throat by powerful entities within the ecosystem, [...]

Sounds like a tinfoil hat theory to me. Powerful entities? Pushed down people's throat? You are free to ignore Flatpak, no one is forcing it on anyone.

Re:Flatpak: A security nightmare – two years later by shrewduser on Friday October 02, 2020 @07:55AM (#24661674)
I agree, how thin skinned are people? this seems like valid criticism that wasn't acted on in two years. What is an appropriate 'tone' in this case
Re:Flatpak: A security nightmare – two years later by chekovcodes on Friday October 02, 2020 @08:06AM (#24661754)
Tone is narcissistic and self-important - it does not even tip a hat to address prioritisation or resource constraints - it's just "this is important to me THEREFORE IT IS IMPORTANT, GNASH, WAIL". I also think the author does not understand end-user software - if you package everything up so it is very secure by default, almost nobody will ever use it and nobody will care except the people who are capable of securing it themselves.
Re:Flatpak: A security nightmare – two years later by cycloptic on Friday October 02, 2020 @08:19AM (#24661833)
An appropriate tone would be to press the angle that help is needed and either offer to help patch the applications or mention where contributors can get started.

I get the author's concern but there is nothing useful in this article. It's misleading suggesting that the problem is with flatpak when the problem is that certain applications aren't using its full capabilities, aren't configured correctly and are in need patching. Or in the worst case, might need a redesign to fit the sandboxing model. This needs to happen with any sandbox that uses this model, not just flatpak. There is nothing else that can be done about this short of suggesting users switch to a different sandboxing model like Qubes. (Maybe the blog author can try that too and see how it goes, or could develop their own sandboxing model just to see how hard it is on a complex system like Linux)

Re:Flatpak: A security nightmare – two years later by dylan-m on Friday October 02, 2020 @03:55PM (#24666444)
As well as misleading, the article seems outdated? Which is weird, because archive.org's first snapshot of it is today.

So, GNOME Software has included a "Permissions" field (which lists an application's specific sandbox holes) since - if I recall correctly - GNOME 3.34: https://i.imgur.com/lCGgA1B.png. Not perfect, but definitely better than pictured. It's a bit of a shame that people have to use older versions of GNOME in 2020, but then, it's nice that Flatpak makes it easy to run new applications regardless :)

Also, I was trying to verify the author's claim about a vulnerable libssh in the gitg package, partly because I was curious whether they'd bothered to report any of these issues upstream. Looks like that was fixed in May: https://github.com/flathub/org.gnome.gitg/pull/12. Similar story with ffmpeg: https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/commit/....

So, woefully behind schedule, but, how long was the author sitting on these? It would be more accurate, less irritating, and more persuasive if they simply talked about it after the fact: this happened, various things are wrong with it, it should be avoidable, etc.

Re:Flatpak: A security nightmare – two years later by frabbit on Friday October 02, 2020 @10:22PM (#24668978)
The first two CVEs linked in the article do not even exist: whether due to rejection or something else is uncertain.
Re:Flatpak: A security nightmare – two years later by ylyn on Friday October 02, 2020 @07:51AM (#24661645)
I don't see an issue with the tone.

Actually, why are people so concerned about tone nowadays? It matters, but this is perfectly fine.

I feel like you can't find anything to nitpick about the post, so you pick on the tone instead.

Re:Flatpak: A security nightmare – two years later by zaarn on Friday October 02, 2020 @07:58AM (#24661699)
I've brought up issues beside tone because of this.

In case those aren't enough; I think the issues brought up aren't issues with flatpak.

The first issue is with a GUI application on top of flatpak and the second is a packaging issue of the runtimes.

These aren't inherently problems with flatpak so I mentally don't count them.

Re:Flatpak: A security nightmare – two years later by steerablesafe on Friday October 02, 2020 @08:51AM (#24662046)
Don't forget lying about sandboxing.
Re:Flatpak: A security nightmare – two years later by dylan-m on Friday October 02, 2020 @01:26PM (#24664859)
Yeah, that's a dubious claim as well. Here is how GNOME Software presents a sandboxed application:

https://i.imgur.com/VMsj6mk.png

Is it a bad interface? Sure. Is the list of permissions hard to find? Hell yes. Is the Sandboxed emblem kind of misleading? Yeah. But here (in at least GNOME Software 3.36) you see a list of the relevant permissions available to the application. Nobody is lying here.

For contrast, here is an application with a stricter sandbox:

https://i.imgur.com/lCGgA1B.png

The point here is both of these are sandboxed. Each sandbox just has particular holes in it. For GNU Octave, more than seems appropriate. Users misunderstand that in the same way people misunderstand "autopilot" and that's a good issue to bring up, but then I don't think non-technical users understand what "sandboxed" means anyway and technical users should be able to take one more gorramn step and learn that "sandboxed" obviously comes with particular limitations [at least in the present day] or it isn't going to do anything.

Re:Flatpak: A security nightmare – two years later by sergeykish on Friday October 02, 2020 @09:25AM (#24662321)
You've skipped CVE.

Flatpak has a lot of claims [1], author feels them as a lie. And he provides facts in support. Linux "next generation technology" would certainly alert users of insecure application. This does not. The story of themes and dbus shows how hard it is to contain all dependencies.

Also there were a lot of claims here that Linux distributions makes no good, static linking is better and libraries would be patched.

Now lets switch perspective. Windows users are perfectly fine running closed source software which may contain outdated dependencies. Most of them are not updated anyway. And it has gallery, something Winget still lacks. Looks like next gen. What is cry for open source developer may be fine for consumer.

Personally I'm fine with Flatpak, Appimage. There should be some way to install proprietary software. And some starting point to make it safe.

[1] https://flatpak.org/