r/freebsd • • 14d ago

discussion Package 'Latest' release timing

How long does it take for a new package to be available in the 'Latest' ABI?

eg php83 updated 19/11 to version 8.3.37, Latest has 8.3.36_2 (23/10)

https://www.freshports.org/lang/php83/

Nginx updated 19/11 to 1.30.7 Latest has 1.30.6_18 (12/11 - 5 releases behind)

https://www.freshports.org/www/nginx/

both these contain patches for high severity CVE's. Is there a way to install package sooner?

18 Upvotes

37 comments sorted by

•

u/spotlight-app Mod Bot 🤖 14d ago

Mods have pinned a comment by u/bdrewery:

I’m involved with the package builders and maintain Poudriere.

If you have public infrastructure needing to stay secure I suggest building your own packages locally. Otherwise if you cannot then practice defense-in-depth and allowlist access to your systems, vlans, jails, vms, use vpns like tailscale or mTLS, or just keep on top of mitigations like disabling http2 for nginx.

There’s not much we can do to quickly get security updates out quicker. Poudriere’s architecture and incremental algorithm, along with limitations of ports metadata and `pkg`, mean that even small number of ports can cause too much to rebuild. I spent a few years on a quicker algorithm but hit some edge cases that stopped me from making it default (aka undocumented PKG_NO_VERSION_FOR_DEPS which is far less to rebuild but causes hard to debug upgrade failures). There is work underway to improve things but it wont come fast. Ports moving to “provides/requires” is basically the same thing as the feature I referenced but is more complete. As far as I understand someone else is actively working towards making that happen.

It’s been hard to find enough time for this stuff. We got Poudriere working to provide packages which was good enough for a long time. Even I think security update packages should be available within a few hours of the patch, and that days is unacceptable. The thing is I have a day job, and family, and, like most others involved with FreeBSD, am just a volunteer in my spare time.

7

u/inkeliz newbie 14d ago

I comment about that recently. If you have a single server, you can compile it from ports. However, if you have multiple servers/VMs, the best option is to setup a custom Poudriere server. The Poudriere can compile only what you use, so don't worry about compiling 35000+ packages.

However, I think FreeBSD needs to improve it. Maybe security patches gets a "fast pass" (a priority) in the building pipeline.

4

u/fsr31415 14d ago

I've got 8 freebsd hosts. I'll look into Poudriere.

Personally I'd like to see something similar to what cpanel have done, security updates are checked hourly and auto install. the security landscape has changed drastically this year.

11

u/Tau-is-2Pi 14d ago

Is there a way to install package sooner?

Build the package locally (from the ports).

1

u/marzlberger 10d ago

That is what i am doing right now, but thats not really a path for everybody.

Either you are providing an up to date pkg system or you should not doing it at all. Everything else is suggesting people to use a system, which is insecure by design.

This is a really bad marketing right now for FreeBSD at all and the foundation should shift their priorities.

8

u/bdrewery FreeBSD committer 14d ago • Heartwarming

I’m involved with the package builders and maintain Poudriere.

If you have public infrastructure needing to stay secure I suggest building your own packages locally. Otherwise if you cannot then practice defense-in-depth and allowlist access to your systems, vlans, jails, vms, use vpns like tailscale or mTLS, or just keep on top of mitigations like disabling http2 for nginx.

There’s not much we can do to quickly get security updates out quicker. Poudriere’s architecture and incremental algorithm, along with limitations of ports metadata and `pkg`, mean that even small number of ports can cause too much to rebuild. I spent a few years on a quicker algorithm but hit some edge cases that stopped me from making it default (aka undocumented PKG_NO_VERSION_FOR_DEPS which is far less to rebuild but causes hard to debug upgrade failures). There is work underway to improve things but it wont come fast. Ports moving to “provides/requires” is basically the same thing as the feature I referenced but is more complete. As far as I understand someone else is actively working towards making that happen.

It’s been hard to find enough time for this stuff. We got Poudriere working to provide packages which was good enough for a long time. Even I think security update packages should be available within a few hours of the patch, and that days is unacceptable. The thing is I have a day job, and family, and, like most others involved with FreeBSD, am just a volunteer in my spare time.

2

u/WDWKamala 13d ago

I'm not trying to shoot the messenger, but frankly this is kind of a nail in the coffin for FreeBSD. There's no amount of hand waving that justifies the php packages STILL not being built after 3 days.

4

u/grahamperrin Claude user 13d ago • Bravo

hand waving

Ahem.

Instead, let's take a moment to think about the FreeBSD Foundation. The transcript at https://www.reddit.com/r/freebsd/s/vPatKSzrxC, and so on.

And so on, and so on, and I'm not going to spill the beans, but the Foundation has really got its act together with forward thinking and so on, and, and, and I don't think it's particularly helpful to use diminutive language such as "hand waving" when a volunteer has taken the time to paint part of the picture for our benefit.

3

u/WDWKamala 13d ago

Fair point, but my point stands. Regardless of the reasoning, the result is unacceptable.

0

u/grahamperrin Claude user 13d ago

my point

The point that u/bdrewery made first:

days is unacceptable.

Part of my problem right now is that I just stumbled across some bullshit from Dolly Dingruntled-Bollocks McTantrum-Pherson at https://www.reddit.com/comments/1v5smk6/comment/ozq0vzp/ blah blah "they don't want to hear from users and only do what they are paid to do" blah blah. FFS.

0

u/WDWKamala 13d ago

Birth of a new copypasta?

1

u/Xzenor seasoned user 11d ago

Just trying to divert the focus I think

1

u/Xzenor seasoned user 13d ago

I'm pretty sure that's the "I'm not trying to shoot the messenger" part was for. Nobody is blaming any of the volunteers here.

The issue here is that there's still a massive securityhole and really nobody cares about the excuses. We want to be able to rely on packages to quickly get updates when they contain a gaping hole.

The foundation got its act together? Nobody cares, we needed the php updates 3 days ago.

1

u/grahamperrin Claude user 13d ago

Nobody cares,

Speak for yourselves. The two of you.

1

u/Xzenor seasoned user 13d ago

pulling 2 words out of the context of the rest of the sentence.. Nice.

Speak for yourselves. The two of you.

But yeah, I'm sure plenty of people just think "oh well, I'll just wait for another ai bot to abuse the massive securityhole on my server while I wait days for updated packages to become available".

Yes I know I could build it myself but why would anyone even want to use packages if you can't trust them to have securityholes patched in a decent amount of time? Just stop providing them entirely at that point. At least users won't have the false sense of being able to trust that packages will be up2date.

1

u/grahamperrin Claude user 13d ago edited 12d ago

Just stop providing them entirely at that point.

Eight words.

3

u/Xzenor seasoned user 13d ago edited 11d ago

Seven words.

Eight. But very nice to see that you're taking the security issues serious.

1

u/grahamperrin Claude user 13d ago

very nice to see that you're taking the security issues serious.

It's certainly nice to have my name in the security.freebsd.org area.

Is your name there?

1

u/Xzenor seasoned user 13d ago

That was ages ago as you haven't been a maintainer for a while now, unless something chanced recently.. And the issue we have now is pretty recent.

→ More replies

3

u/Xzenor seasoned user 11d ago

It's 5 days now. Still no update in latest

0

u/WDWKamala 11d ago

Yeah just ask an LLM to guide you through setting up poudriere. It’s a pain in the ass to get setup correctly and efficiently but at this point it’s the price of admission if you want to serve web content from FreeBSD.

2

u/Xzenor seasoned user 10d ago

People should be able to trust packages. This is insane.

1

u/marzlberger 10d ago

Exactly. Either you are providing an up to date pkg system or you should not doing it at all. Everything else is suggesting people to use a system, which is insecure by design.

This is a really bad marketing righ now for FreeBSD at all and the foundation should shift their priorities.

1

u/grahamperrin Claude user 9d ago

the foundation should shift their priorities.

From what, specifically?

2

u/Xzenor seasoned user 13d ago

100% agree. Indeed nothing personal to the maintainers but if this takes more than 3 days then the current way isn't good enough.

6

u/BougainvilleaGarden 14d ago edited 14d ago

When packages are built in consequence to a port having been modified, all ports in the build-set (i.e. all ports not explicitly blacklisted) that have a build-dependency on the modified port will also be rebuilt, which might consume a significant amount of time.

You can review the status of the pkg official repository's build agents by analyzing the list of it's build slaves at https://pkg-status.freebsd.org/builds?type=package to determine which agent builds the packages for your platform (the "jail" column of the table) and ports branch (the "ports" column of the table), and then clicking the small bomb icon next to the agent's name in the "server" column of the table.

For FreeBSD-15.1-amd64 it's "beefy21" for quarterly ports and "beefy23" for main/default ports, where the bomb icon should link to https://pkg-status.freebsd.org/beefy21/ and https://pkg-status.freebsd.org/beefy23/ respectively.

The mainline ports take significantly more time to have their binary packages published on the repository then the quarterly ports do. The reason is that while we run each pipeline using multiple concurrent port build jobs, there is only one pipeline for each supported ports branch. A commit to the main branch that causes a large number of ports to require being rebuilt will therefore consume the main branch runner for a significant time, preventing it from quickly starting to process any security hotfix that might be pushed while the runner is busy processing it's current pipeline. The quarterly branch on the other hand "should" not receive large scale updates that cause the runner to have to rebuild "significant numbers" of packages, therefore the quarterly runner will usually complete it's pipeline in less time and be able to start running the next pipeline, which contains a security hotfix, at a lower delay then the main pipeline does.

4

u/grahamperrin Claude user 14d ago

Thanks. Probably outdated, but maybe still useful:

3

u/bdrewery FreeBSD committer 14d ago • Bravo

Today I fixed the pkg-status bug referenced there about “latest” not working right. By default now pkg-status will show running builds. I wasn’t aware of the bug until today when asked why builds were not running, when they were. I will close the bug this weekend.

2

u/grahamperrin Claude user 14d ago

Thanks! The people.freebsd.org content can't be changed, instead I'll update the pinned comment.

3

u/GeneralAd3238 10d ago

I strongly agree with the concerns raised here.

If an official package management system leaves software with CVSS 9.2 vulnerabilities unpatched for several days, particularly software that is inherently used to provide publicly exposed services, we have a fundamental problem.

System administrators are effectively being forced to choose between running vulnerable services, taking those services offline, or maintaining their own package build infrastructure.

At that point, why provide official binary repositories at all? We might as well return to a ports-only distribution model and explicitly acknowledge that compiling software is a requirement for running FreeBSD securely.

This is not about demanding the latest software versions. It is about being able to trust the official package distribution system.

I have enormous respect for the developers, maintainers and people working behind FreeBSD. If additional funding, infrastructure or human resources are needed, then let's have a serious and transparent discussion about that. These are legitimate problems that can and should be addressed.

However, accepting several days of exposure to critical vulnerabilities as normal, or suggesting that every professional user should maintain an independent build infrastructure, cannot be a sustainable answer.

The purpose of a package management system is not simply to make software installation more convenient. It must also provide a reliable mechanism for maintaining the security of deployed systems.

For me, this is an existential problem for FreeBSD as a production server platform, not merely a technical inconvenience.

FreeBSD can have an excellent kernel, an outstanding network stack, ZFS, jails and a technically superior architecture in many respects. But all these advantages gradually lose their relevance if administrators cannot trust the security update delivery process.

I believe this deserves to be treated as a strategic priority by both the FreeBSD Project and the FreeBSD Foundation.

0

u/Xzenor seasoned user 13d ago

The hoops we have to jump through to be able to keep running FreeBSD securely... It's sad. Giving priority to packages that have security holes is apparently impossible.

Meanwhile most Linux distributions have patches ready and tested within a day. I guess they don't have to use poudriere

0

u/WDWKamala 13d ago

Yeah this is ridiculous. I'd rather spend the time just replacing FreeBSD with Debian at this point.

-1

u/Xzenor seasoned user 13d ago edited 13d ago

Well, the thought has crossed my mind, yeah.

I love my FreeBSD but as the Linux community goes on with their day with already updated packages within hours, we're stuck with "yeah it takes as long as it takes. Just build it yourself if you don't like it". Not with that tone, but that is how it feels.