News for hackers. Stuff that matters.
Re:Grafana releases OnCall open source project by MarquesMa on Tuesday June 14, 2022 @01:17PM (#31742685)
This. I find open source projects written in Go or Rust are usually more pleasant to work with than Java, Django or Rails, etc. They have less clunky dependencies, are less resource-hungry, and can ship with single executables which make people's life much easier.

Just think about Gitea vs GitLab.

Re:Grafana releases OnCall open source project by matsemann on Tuesday June 14, 2022 @01:22PM (#31742786)
Not sure why you include java in that, as you mostly get a standalone file. No such thing as a jre in modern java deployment.

As for python, at least getting a dockerfile helps a lot. Otherwise it's a huge mess to get running, yes.

Python is still a hassle anyways, since the lack of true multithreading means that you often need multiple deployments, which the Celery usage here for instance shows.

Re:Grafana releases OnCall open source project by Volundr on Tuesday June 14, 2022 @02:42PM (#31744003)
> Not sure why you include java in that, as you mostly get a standalone file. No such thing as a jre in modern java deployment.

Maybe I'm behind the times, but I can't figure out what you mean here. As far as I know 'java -jar' or servlets are still the most common ways of running a Java app. Are you talking graal and native image?

Re:Grafana releases OnCall open source project by matsemann on Tuesday June 14, 2022 @02:59PM (#31744299)
For deploying your own stuff, most people do as before, yes. But even then, it's at least still only a single jar file, containing all dependencies. Not like a typical python project where they ask you to run some command to fetch dependencies and you have to pray it will work on your system.

But using jlink for java, one can package everything to a smaller runtime distributed together with the application. So then I feel it will be not much different than a Go executable.

> The generated JRE with your sample application does not have any other dependencies...

> You can distribute your application bundled with the custom runtime in custom-runtime. It includes your application.

From the guide here https://access.redhat.com/documentation/en-us/openjdk/11/htm...

Re:Grafana releases OnCall open source project by FridgeSeal on Tuesday June 14, 2022 @01:48PM (#31743176)
Python application deployments are all fun and games until suddenly the documentation starts unironically suggesting that you should “write your configuration as a Python script” that should get mounted to some random specific directory within the app as if that could ever be a sane and rational idea.
Re:Grafana releases OnCall open source project by eeZah7Ux on Tuesday June 14, 2022 @03:04PM (#31744389)
Hell no, I want stuff like OnCall packaged into Linux distribution. I need something stable and reliable and that receive security fixes.

Maintaining tenths of binaries pulled from random github projects over the years is a nightmare.

(Not to mention all the issues around supply chain management, licensing issues, homecalling and so on)

Re:Grafana releases OnCall open source project by morelisp on Tuesday June 14, 2022 @03:26PM (#31744745)
At this point I trust the Go modules supply chain considerably more than any free distro's packaging, which is ultimately pulling from GitHub anyway.
Re:Grafana releases OnCall open source project by eeZah7Ux on Tuesday June 14, 2022 @05:39PM (#31746411)
This is plain false. Most production-grade distribution do extensive vetting of the packages, both in terms of code and legal.

Additionally, distribution packages are tested by a significant number of users before the release.

Nothing of this sort happens around any language-specific package manager. You just get whatever happens to be around all software forges.

Unsurprisingly, there has been many serious supply chain attacks in the last 5 years. None of which affected the usual big distros.

Re:Grafana releases OnCall open source project by morelisp on Wednesday June 15, 2022 @12:31PM (#31755475)
> None of which affected the usual big distros.

I guess we can argue about "big" but didn't both Arch (https://lists.archlinux.org/pipermail/aur-general/2018-July/...) and Gentoo (https://wiki.gentoo.org/wiki/Project:Infrastructure/Incident... and older, https://bugs.gentoo.org/show_bug.cgi?id=323691) have actual compromised packages? And also not five years ago, but Fedora (https://lists.fedoraproject.org/pipermail/announce/2011-Janu...) and Debian (https://www.debian.org/News/2003/20031202) had compromises but no known package changes.

Re:Grafana releases OnCall open source project by morelisp on Tuesday June 14, 2022 @05:54PM (#31746534)
No, Go modules implement a global TOFU checksum database. Obviously a compromised upstream at initial pull would not be affected, but distros (other than the well-scoped commercial ones) don’t do anything close to security audits of every module they package either. Real-world untargeted SCAs come from compromised upstreams, not long-term bad faith actors. Go modules protects against that (as well as other forms of upstream incompetence that break immutable artifacts / deterministic builds).

MVS also prevents unexpected upgrades just because someone deleted a lockfile.

Re:Grafana releases OnCall open source project by dijit on Tuesday June 14, 2022 @06:28PM (#31746832)
> At this point I trust the Go modules supply chain considerably more than any free distro's packaging

What has happened in the package ecosystem to make you believe this? Is it velocity of updates or actual trust?

I haven’t heard of any malicious package maintainers.

Re:Grafana releases OnCall open source project by morelisp on Wednesday June 15, 2022 @01:29AM (#31749436)
Better automation ensuring packages are immutable, fewer humans in the packaging loop.
Re:Grafana releases OnCall open source project by dijit on Wednesday June 15, 2022 @10:07AM (#31753108)
generally I prefer humans in the loop, someone to actually test things. This is why distros are stable compared to other distros which are more bleeding edge.
Re:Grafana releases OnCall open source project by morelisp on Wednesday June 15, 2022 @12:23PM (#31755331)
For SC security, the fewer points of attack between me and the source the better.

For other kinds of quality, I have my own tests which are much more relevant to my use cases than whatever the distro maintainers are doing.

I've been a DD and while distros do work to integrate disparate upstreams as well as possible, they rarely reject packages for being fundamentally low quality or make significant quality judgements qua their role as maintainer (only when they're a maintainer because they're also a direct user). Other distributions do even less than Debian.

Re:Grafana releases OnCall open source project by dijit on Wednesday June 15, 2022 @01:38PM (#31756441)
I have seen scenarios where package maintainers have rejected updating packages because the upstream is compromised though.
Re:Grafana releases OnCall open source project by morelisp on Thursday June 16, 2022 @06:08AM (#31764271)
Fedora currently packages 10646 crates. It's implausible that they're manually auditing each one at each upgrade for anything other than "test suites pass", let alone something like obfuscated security vulnerabilities.

In the end most distros will be saved by the fact they don't upgrade quickly. Which is also accomplished by MVS without putting another attack vector in the pipeline.

Re:Grafana releases OnCall open source project by dijit on Sunday June 19, 2022 @09:45PM (#31805411)
No person manages more than 250 packages (and he's a RH employee).

There's more than a hundred package maintainers (I'm not sure exactly how many), but the median is about 50 packages.

Do you think people can't keep up with the updates for 50 packages?

Re:Grafana releases OnCall open source project by morelisp on Friday June 24, 2022 @07:13PM (#31870698)
I think I don't want "more than a hundred" additional points of trust, especially if they're trying to audit 50+ projects with various levels of familiarity each. And no, I don't believe one person can give a real audit to 50 packages each release even if was their actual job.

To paraphrase, all "more than a hundred" of those people need to be lucky every time.