Discussion:
freebsd-update: to a specific patch level - help please?
(too old to reply)
Derek (freebsd lists)
2018-03-21 21:12:45 UTC
Permalink
Hi!

I was surprised when using freebsd-update, that there was no way
to specify a patch level.

In my day to day, I need to ensure security patches are applied.

I also need to assess the impact of patches, and ensure
consistency (ie. versions) in my environments. This can take time.

Here's a story for context, please feel free to skip:

We are planning to cut our 10.3-RELEASE infrastructure over to
11.1-RELEASE before the end of the month, because it's EoL in
April. We updated and cut over our production load balancer
March 6th (and patted ourselves on the back for being ahead of
schedule), and within less than 12 hours, updated our backup load
balancers. Unfortunately, we're now on ever so slightly
different versions (-p6/-p7), and we're not affected by the -p7
problems. This makes my eye twitch slightly, especially when -p7
was the first patch of 2018.

Now we need to upgrade our application servers, that are
running our trusted code, and -p8 comes out.

I'm nervous about just applying -p8, but I definitely want to
upgrade to 11.1-RELEASE asap.

After assessing the impact of -p8 on our infrastructure, I
feel the security risk is relatively low in the short term (and
we've waited this long anyway), but I feel the probability of
introducing unintended side-effects is high, and want some time
to test and asses.

/story

It would seem to me, for repeatable environments, that binary
updates from FreeBSD that can be pinned to specific version are
highly desireable.

I've gone ahead and created a patch for my use here:

https://github.com/derekmarcotte/freebsd/commit/009015a7dda5d1f1c46f4706c222614f17fb535c

(there's a 10.3-specific one here:
https://github.com/derekmarcotte/freebsd/commit/458879f36ae984add0ff525fb6c2765fcf1fba67
)

I'd be happy to open a PR, and to iterate and improve on this
PoC, but if there's no support from the project, I'll keep it to
myself.

I guess what I'm asking is, for these reasons, is anyone willing
to work with me (in mentorship+commit bits) to add this feature
(maybe not this particular implementation) to freebsd-update?

Thanks!
Derek
Rainer Duffner
2018-03-21 21:24:22 UTC
Permalink
Hi!
I was surprised when using freebsd-update, that there was no way to specify a patch level.
AFAIK, the usual answer to these kinds of requests is: „Run your own freebsd-update server“.

Mirroring one of the existing ones is AFAIK neither guaranteed to work nor desired by the current „administration“.

I’ve contemplated doing both, but never had enough heart-ache to do it and never thought the pay-off would be greater than the potential problems.

It’s also a somewhat transient problem now because - AFAIK - FreeBSD will see packaged base and you can probably mirror those packages and snapshot the directory at any point in time.
And/Or it’s just easier to create these base-packages yourselves vs. running your own freebsd-update server.
Kurt Jaeger
2018-03-23 10:44:37 UTC
Permalink
Hi!
To be clear, *I've included a link to a patch to freebsd-update
in my initial post, and the help I'm looking for: is to get this
functionality added as a feature so others can benefit.* It
works for me already, and I've already benefited.
(I'm happy to flesh it out, and document it properly, but I'm
very hesitant to spend the time doing it in detail and submitting
a PR if I'm doing this in isolation, and nobody wants it.
Please submit this in a PR, and post the PR number here, I'll work to
get this in the tree.
--
***@opsec.eu +49 171 3101372 2 years to go !
Derek
2018-03-24 14:26:53 UTC
Permalink
Post by Kurt Jaeger
Hi!
To be clear, *I've included a link to a patch to freebsd-update
in my initial post, and the help I'm looking for: is to get this
functionality added as a feature so others can benefit.* It
works for me already, and I've already benefited.
(I'm happy to flesh it out, and document it properly, but I'm
very hesitant to spend the time doing it in detail and submitting
a PR if I'm doing this in isolation, and nobody wants it.
Please submit this in a PR, and post the PR number here, I'll work to
get this in the tree.
PR is 226893


Thanks!
Derek
Derek (freebsd lists)
2018-04-01 17:08:31 UTC
Permalink
Post by Derek
Post by Kurt Jaeger
To be clear, *I've included a link to a patch to freebsd-update
in my initial post, and the help I'm looking for: is to get this
functionality added as a feature so others can benefit.*  It
works for me already, and I've already benefited.
Please submit this in a PR, and post the PR number here, I'll
work to
get this in the tree.
PR is 226893
FYI - Just awaiting any kind of feedback on the PC. Won't be
starting anything until then.

Derek

Continue reading on narkive:
Loading...