You must ensure a server boots with Secure Boot enabled and still loads your custom kernel module. How?
AdvancedScenarioPackages, kernel and boot
Answer
Situation read → Sign the module with a key enrolled in MOK.
What I'd do →
openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 3650 -subj "/CN=Org Module Signing/"
sudo mokutil --import MOK.der # set a one-time password, reboot, enroll in MOK manager
sudo /usr/src/kernels/$(uname -r)/scripts/sign-file sha256 MOK.priv MOK.der vendor_drv.ko
mokutil --sb-state
DKMS can sign automatically with configured keys.
Why → With Secure Boot, the kernel lockdown rejects unsigned modules ("Key was rejected by service").
Interview tip → Keep the signing private key off the servers.
More on Packages, kernel and boot
You must upgrade the kernel on 50 production servers and be able to roll back if the new kernel misbehaves. Plan it.AdvancedYou need to pin a package version so routine updates don't upgrade it (e.g. Docker or PostgreSQL). How?BeginnerA package update broke an application. How do you roll it back?IntermediateYour servers can't reach the internet but need packages. How do you provide repositories?IntermediateYou need to compile and install software from source on a server that also uses packages. How do you avoid making a mess?IntermediateYou need to change kernel boot parameters (e.g. add `transparent_hugepage=never`) persistently. How?Intermediate