For NetOrk/netork#2838: where an unmitigated CPU vulnerability is fixed.
get_hardening() reads virtualization (systemd-detect-virt: none on bare metal, else the hypervisor or container engine; without it vm/none from the cpuinfo hypervisor flag) and cpu_vendor (vendor_id).
New cpu_microcode module: microcode_package(os_ids, cpu_vendor) (Debian/Ubuntu intel-microcode/amd64-microcode, Red Hat family microcode_ctl/linux-firmware, SUSE ucode-intel/ucode-amd, else none), firmware_component(codename), add_component(text, component, *, deb822).
CpuMicrocodeMixin.install_cpu_microcode(): steps read (refuses a guest or an unknown placement, and a host without a package), sources (on Debian only: adds the firmware component to Debian's own enabled sources that have main, writes each file whole, reloads the index through _reload_package_index), install (ensure_package). Nothing restarts; the microcode loads at the next boot.
For NetOrk/netork#2838: where an unmitigated CPU vulnerability is fixed.
- `get_hardening()` reads `virtualization` (`systemd-detect-virt`: `none` on bare metal, else the hypervisor or container engine; without it `vm`/`none` from the cpuinfo `hypervisor` flag) and `cpu_vendor` (`vendor_id`).
- New `cpu_microcode` module: `microcode_package(os_ids, cpu_vendor)` (Debian/Ubuntu `intel-microcode`/`amd64-microcode`, Red Hat family `microcode_ctl`/`linux-firmware`, SUSE `ucode-intel`/`ucode-amd`, else none), `firmware_component(codename)`, `add_component(text, component, *, deb822)`.
- `CpuMicrocodeMixin.install_cpu_microcode()`: steps `read` (refuses a guest or an unknown placement, and a host without a package), `sources` (on Debian only: adds the firmware component to Debian's own enabled sources that have `main`, writes each file whole, reloads the index through `_reload_package_index`), `install` (`ensure_package`). Nothing restarts; the microcode loads at the next boot.
4.53.0. Tests: 2169 passed, coverage 97.4% (`cpu_microcode.py` 100%); ruff, mypy, `napalm-standard check`/`ratchet` clean.
get_hardening() reads virtualization (systemd-detect-virt, else the cpuinfo
hypervisor flag) and cpu_vendor. CpuMicrocodeMixin.install_cpu_microcode()
refuses a guest, picks the package of the distribution and CPU vendor
(microcode_package), adds Debian's firmware component to Debian's own sources
where it is missing, reloads the index and installs the package; it loads at
the next boot.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
For NetOrk/netork#2838: where an unmitigated CPU vulnerability is fixed.
get_hardening()readsvirtualization(systemd-detect-virt:noneon bare metal, else the hypervisor or container engine; without itvm/nonefrom the cpuinfohypervisorflag) andcpu_vendor(vendor_id).cpu_microcodemodule:microcode_package(os_ids, cpu_vendor)(Debian/Ubuntuintel-microcode/amd64-microcode, Red Hat familymicrocode_ctl/linux-firmware, SUSEucode-intel/ucode-amd, else none),firmware_component(codename),add_component(text, component, *, deb822).CpuMicrocodeMixin.install_cpu_microcode(): stepsread(refuses a guest or an unknown placement, and a host without a package),sources(on Debian only: adds the firmware component to Debian's own enabled sources that havemain, writes each file whole, reloads the index through_reload_package_index),install(ensure_package). Nothing restarts; the microcode loads at the next boot.4.53.0. Tests: 2169 passed, coverage 97.4% (
cpu_microcode.py100%); ruff, mypy,napalm-standard check/ratchetclean.