On 16/10/2026 09:13, Immolo wrote:
> (Don't top reply mailing list emails please :) )
>
> On Fri, 16 Oct 2026, 04:44 Emi, <e…@genchu.org <mailto:e…@genchu.org>> wrote:
>
> It wouldn’t be quite that simple, given gentoo would also need to
> sign external modules such as nvidia drivers, or filesystem drivers,
> so there would be a need for a signed -bin of those packages
>
>
> I'd prefer Nowa to confirm this as signing isn't my area of expertise, however this is what the module-sign USEflag[1] is designed to do, no?
USE=modules-sign uses a local key though, we would need this to be pre-signed by a trusted key.
>
> > On 15. Oct 2026, at 23:33, James Le Cuirot <che…@gentoo.org
> <mailto:che…@gentoo.org>> wrote:
> >
> > On Thu, 2026-10-15 at 13:20 +0100, James Le Cuirot wrote:
> >> Gentoo must therefore publish its own kernel and bootloader
> builds signed with
> >> its own key that Epic has agreed to trust. Signed UKIs are
> probably not an
> >> option as the kernel command line is baked in.
> >>
> >> From here, there are 3 options:
> >>
> >> a) Users enroll this key into their firmware db and boot without
> the shim.
> >>
> >> b) Users install Fedora's signed shim (already packaged in
> Gentoo) and enroll
> >> this key into the MOK database.
> >>
> >> c) Gentoo approaches Microsoft to get a signed certificate so
> that Gentoo can
> >> be booted (via the shim) with Secure Boot enabled out of the box
> on regular
> >> PCs. This is obviously a great benefit by itself.
> >
> > I only remembered shortly after writing this and heading out the
> door that
> > Gentoo *already* publishes signed kernels and even UKIs. No
> bootloader, but if
> > the UKIs are usable, despite not being able to customise the
> kernel command
> > line, then you don't need one.
> >
> > So for (a) and (b), all Gentoo would need to do is ask Epic to
> trust the
> > existing key. I don't maintain the distribution kernels though,
> so I'll leave
> > that team to decide whether we should do this.
>
>
> Option C sounds like it would have a lot of benefit to releng as well. So should likely be considered as our end goal.
Getting Microsoft to sign our kernels is a really bad idea IMO. First of all, it will be a lot of (paper) work to prove that we can be trusted. Microsoft won't just sign anything we send to them. Second of all, it will delay the releasing of new kernels as we need to wait for Microsoft to verify and then sign what we build. And thirdly because we would be dependent on Microsoft for our kernel release workflow which goes against our philosophy of being as independent as feasible/possible. So from my perspective option C is a no-go.
Getting epic to trust our certificate is another story, but we would need to know exactly what their criteria and expectations are. I'd imagine they won't just trust everything that is sent their way, there must be some sort of vetting otherwise there would be no point.
And as others already noted we would have to build signed binpkgs of out-of-tree modules as well, and ideally also GRUB, refind and systemd-boot. Note that I already started this discussion two years ago[1], we didn't really settle on a concrete design/workflow on how this should work at the time, but maybe we can pick that up again where we left off. The main issue is how to properly manage the private key in a way where binpkg builds can easily access it for signing while keeping everything secure. Cause this is not just a technical issue, it is also about policy, verification, and trust. And if we want some other entity (i.e. epic) to trust our work then compliance also enters the story.
Best regards,
Nowa
[1] https://bugs.gentoo.org/941841