this post was submitted on 17 Jul 2023
132 points (100.0% liked)

Linux

1257 readers
53 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

The result of the study can be found at https://arxiv.org/pdf/2307.03958.pdf.

top 10 comments
sorted by: hot top controversial new old
[–] Laser@feddit.de 15 points 1 year ago* (last edited 1 year ago) (1 children)

Of course. In my opinion, what Docker is used for on Hub is a different model than it was originally supposed to solve. It was designed as a solution for enterprise where the development team had no easy control over the production environment, so the solution was to bundle the platform with the software. However, your production team is usually trustworthy, so leaking secrets via the container isn't an issue (or actually sometimes you wanted the image to include secrets).

The fact that Hub exists is a problem in itself in my opinion. Even things like the AUR - which comes with its own set of problems - is a better solution.

nix provides a solution to build clean Docker images. But then again it only works for packages that are either in nixpkgs already or you have written a derivation for, the latter being probably more effort than a quick and dirty dockerfile.

[–] lemmyvore@feddit.nl 10 points 1 year ago

Well not the Hub itself is the problem, rather the fact it's being used wrong. You're not supposed to publish your private images publicly, if you do that's your problem. The Hub (or Docker) are pretty much completely unrelated to this issue. People who do this are probably also going to leave S3 buckets unsecured, commit passwords to Git and so on and so forth.

[–] corytheboyd@kbin.social 10 points 1 year ago* (last edited 1 year ago) (1 children)

I’m sure plenty of the offenders are legitimate, but it’s completely safe to check private key pairs into code, or to bake them in to images. It entirely depends on what the key pairs are used for. Very common to include key pairs for development/test environments, for example. If it’s a production secret, of course you don’t do this.

[–] andrew@lemmy.stuart.fun 4 points 1 year ago

You're right in one sense but when you get to the last sentence your argument breaks down.

The same type of secret should be treated the same way. The problem with treating environments different is that it builds bad habits especially for new devs who come in and see it being done in a certain way. But also, humans screw up and it's better to just build the habit of not committing anything private outside of prod-like credential stores even if it's not the prod instance.

[–] TheOptimalGPU@lemmy.rentadrunk.org 6 points 1 year ago (1 children)

Is there a list of which ones are vulnerable?

[–] Sneakz@feddit.de 1 points 1 year ago (1 children)

The stufy link isn't working for me.