News for hackers. Stuff that matters.
Re:The Curse of Docker by viraptor on Saturday November 25, 2023 @10:51PM (#38419018)
> I'm not sure what's the alternative for servers here.

Nixos/nixpkgs: isolated dependencies / services, easy to override if needed, configs follow relatively consistent pattern (main options exposed, others can be passed as text), service files can do isolation by whitelisting paths without going full-blown self-contained-os container.

> Are you running random images from the internet on your servers?

Many home server users do this. In business use, unless you invest lots of time into this, a part of your services is still effectively a random image from the internet.

> and those from Bitnami

Yes, that's a random image from the internet.

Re:The Curse of Docker by blackoil on Saturday November 25, 2023 @11:14PM (#38419114)
> Yes, that's a random image from the internet.

By that definition, you are running it on a random OS, random processor with some random network infra.

Re:The Curse of Docker by viraptor on Saturday November 25, 2023 @11:30PM (#38419166)
Kinda. It depends what your risk tolerance is.
Re:The Curse of Docker by TeMPOraL on Sunday November 26, 2023 @06:49PM (#38426432)
I mostly agree with GGP, but GP has a point. I'm a semi-frequent users of Docker at work and personally, and I still don't know what the fuck "Bitnami" is. I'm gonna guess now (and check later) they're probably some corporate body that fell out of whatever kerfuffle happened with Docker licensing a year or so ago; but otherwise, "Bitnami" sounds to me like "Bincrafters" from Conan/C++ world - no fucking clue who they are (the name doesn't help), but everyone sure likes to depend on what sounds like a random third party.
Re:The Curse of Docker by patrick451 on Sunday November 26, 2023 @12:31AM (#38419407)
It's always been surprising to me how little people seem to care about the provenance of their images. It's even more surprising that infosec isn't forcing developing to start their images `FROM scratch`.
Re:The Curse of Docker by w-ll on Sunday November 26, 2023 @01:02AM (#38419529)
Are you compiling you os distro's `FROM scratch`?

Ther's always a certin level of trust, and for many, docker containers are just as trusty as distros from trusty orgs or volunteers.

Re:The Curse of Docker by rnimmer on Sunday November 26, 2023 @01:56AM (#38419725)
There once was a man named Terry Davis...
Re:The Curse of Docker by jdwithit on Sunday November 26, 2023 @04:26AM (#38420309)
Or for a less out-there example, Ken Thompson's classic "Reflections on Trusting Trust". At some point unless you are literally producing all of the hardware and software yourself you have to trust someone. The challenge is figuring out where that line of acceptable risk lies for you. It's going to be very different for an indie game dev vs a FinTech company vs the US DoD.
Re:The Curse of Docker by w-ll on Sunday November 26, 2023 @02:14AM (#38419808)
I imagine anyone with a BA in CS has wrote a OS from scratch.

How many systems on chips are in a moderen computer, not the main system and cpu, but every little chip and controller, the boot system, every board seems to have a little OS.

In regards to security, its all about analysing risk and trade-offs.

For me using containers from known vendors is a risk im willing to take.

Re:The Curse of Docker by viraptor on Sunday November 26, 2023 @02:56AM (#38419963)
> I imagine anyone with a BA in CS has wrote a OS from scratch.

Not even close. Very few courses require anything that advanced and only some of those are non-optional.

Re:The Curse of Docker by otabdeveloper4 on Sunday November 26, 2023 @04:33AM (#38420363)
Like the other person said, Nix solves that problem.

You are in control of the entire supply chain with Nix.

Re:The Curse of Docker by oddmiral on Sunday November 26, 2023 @05:19AM (#38420547)
If you have sources, you have full control, using any distribution method. Some Nix packages are without sources, so this is not true for Nix.
Re:The Curse of Docker by otabdeveloper4 on Sunday November 26, 2023 @09:57AM (#38422021)
Supply chain management isn't about sources per se (though source makes it easier). What you need is hashes and signatures for every dependency at every step.
Re:The Curse of Docker by oddmiral on Sunday November 26, 2023 @11:10AM (#38422651)
If you have sources, you can do anything you want at every step. If you haven't, then you can do fewer things at some steps. Some Nix packages have no sources, so full control is not available for them.
Re:The Curse of Docker by patrick451 on Sunday November 26, 2023 @11:51AM (#38423008)
> Are you compiling you os distro's `FROM scratch`?

As a matter of fact, yes.

Re:The Curse of Docker by skipnup on Sunday November 26, 2023 @01:06AM (#38419548)
But that could be said about each an any dependency.

And some (very rare) companies do enforce that, everyone else has to build up a bit of trust.