4 ms·
Towards a secure peer-to-peer app platform for Clan
- jackpepsi 10mo agoI think they explain a compelling problem about typical commerical software vs FOSS, then they dive into their GPU accelerated VM solution. I don't see how it helps solve the original problem. Is is that FOSS needs a standard sandbox and they think some kind of peer to peer app store that disturbes images for VMs is the way to do it?
- Mic92 10mo agoWe work on GPU accelerated VMs, so that in future we can also bring NixOS + VPNs to desktops/end users to machines that don't run NixOS. We will use it as an application runtime where can control the whole stack. Just now we are mostly focused on managing distributed NixOS machines. The VPN helps to provide services on any kind computer, even if not running in a datacenter. You can read the description here for context: https://docs.clan.lol/ https://docs.clan.lol/
- guerrilla 10mo agoMaybe I'm in the same boat as people who didn't get docker before it was popular, but this seems really convoluted to me... is there really a market for this? Why do other existing things not solve this problem?
- dist-epoch 10mo agoThere is huge demand right now to create sandboxes for agents. VMs are one way, and Clan one solution for VM management. Maybe they are not the right solution, but they are working on the right problem. Of course, they don't say the focus on agents, but if the solution works with them, it doesn't matter that it was built for gamers.
- selinkocalar 10mo agoP2P app distribution is cool in theory but the security model gets complex fast. Without centralized review, you're basically trusting individual developers to not ship malicious code.
- lifty 10mo agoIs clan some kind of p2p server config management framework based on Nix?
- Mic92 10mo agoI think this fits the description well.
- trinsic2 10mo agoI'm not understanding the need for this? I cant believe i'm parroting corporate lobbyists, but this seems like a solution in search of a problem. It sounds more like a way to take freedom away from people. Commercial systems are designed in such a way that offering that convenience is at the expense of control and ownership. Just because people trade freedoms for this level of ease, doesn't make it right.
- IlikeKitties 10mo agoIt's a bit of a two edged sword but it's something we definitely need. Look at project like Qubes and Secureblue that try to implement this. It solves several issues: Packaging Apps on Linux has been and always will be, a nightmare. Just giving up and sending whole VMs is basically a variant of what docker does. Permission Management is also quite necessary and Linux Desktop/DBUS is horrible in that regard. There's recently been a post about this[0]. Especially part 5 is just... GNOME Developers being GNOME Developers... A lot of Apps also open untrusted files and even run untrusted code. Browsers, PDFs, or Excel Macros? God only knows what kind of exploits and hidden software landmines there are. And last but not least there's also just badly coded apps that can get pwned from remote sources. Think some game running horrible c++ code connecting peer to peer with random clients. All of them could easily buffer overflow some random function and take over all your files. [0] https://blog.vaxry.net/articles/2025-dbusSucks https://blog.vaxry.net/articles/2025-dbusSucks
- trinsic2 10mo agoYea im sorry. Im not buying this. I dont need protection from apps on my system. I know you think we need it, but I dont believe we need it. creating security systems like this only complicates the operation of apps.
- orbital-decay 10mo agoTaking the control from you is a corporate decision, not the inherent property of compartmentalization.
- lrvick 10mo agoYet another reminder that Nix does not sign commits, does not sign reviews, allows any maintainer to merge their own code, does not compile all packages from source, and Hydra admins can absolutely tamper with builds at any time. It is a massive supply chain attack waiting to happen. The Nix team is aware of all of this and made these tradeoffs intentionally to maximize package support and reduce contributor friction. Nix, for all its good design choices, landed on a supply chain integrity threat model that unfortunately makes it suitable only as hobby OS that must not be used to protect anything of value. Guix at least signs commits, but individual maintainers are still trusted so it is not much better, so there really is no production safe nix based package tree I am aware of. Nothing should advertise itself as secure while being based on nix. Just because something is popular, does not make it safe.
- tkz1312 10mo agowhich packages are not built from source?
- lrvick 10mo agoJust a couple examples off the top of my head I have bumped into: Packages that cannot be full source bootstrapped like Haskell are allowed, so total trust is placed in a third party compiler binaries. Also in cases like qemu where binary blob firmware is in the repo, it is kept as is and not rebuilt from source. Determinism is also not mandated so there is no way to know if any of the non deterministic packages were faithfully built from source. There are no hard enforced rules in cases like these, only cultural guidelines that are followed optionally. Compare to e.g. stagex which I founded specifically because nix did not wish to adopt a strict threat model that trusts no single individual, build machine, or third party binary.
- tkz1312 10mo agoStagex is a remarkable achievement and one of the most exciting projects that I have encountered this year. I plan on migrating a few high value build pipelines in the near future. Thank you for the excellent work. With that said, I also write a lot of Haskell and would be very sad if nixos dropped support because it was not yet fully bootstrappable. The NixOS supply chain and build pipeline could absolutely be meaningfully hardened, but I think that given the state of the ecosystem at large, and the project's widespread usage as a general purpose OS, achieving the kind of trust model and security guarantees offered by something like stagex is not yet realistic without making usability compromises that most of it's userbase would not find acceptable.
- gz5 10mo agofor the private networking problem, openziti (apache 2.0) is now integrated with Nix: https://github.com/NixOS/nixpkgs/pull/453502 https://github.com/NixOS/nixpkgs/pull/453502
- evanjrowley 10mo agoI was excited to see how the integration works. The link proves it's packaged. Is it actually integrated somehow or is it only packaged at this point?
- gz5 10mo agothere is at least one community-managed flake to connect a NixOS machine to an OpenZiti overlay network, but i don't think there is an official NixOS module yet: github.com/rochecompaan/openziti-nix if your focus is trying it rather than distributing consistent versions to many folks, you can also use the ziti-edge-tunnel binary, define a systemd service and add identities (a given app or device can belong to (n) OpenZiti overlays via (n) different identities).
- amarant 10mo agoFlatpak is the only foss solution close to building compartmentalisation? Last I checked, docker was FOSS? Containerisation is built in in Linux, does that not compartmentalise enough? What am I missing here, the article seems wildly inaccurate, surely I've misunderstood something?