Skip to content

Replaced per-check HSI inventory attributes with pass/fail lists - #156

Merged
nickanderson merged 4 commits into
cfengine:masterfrom
nickanderson:hsi-lists/master
Aug 14, 2026
Merged

Replaced per-check HSI inventory attributes with pass/fail lists#156
nickanderson merged 4 commits into
cfengine:masterfrom
nickanderson:hsi-lists/master

Conversation

@nickanderson

@nickanderson nickanderson commented Aug 12, 2026

Copy link
Copy Markdown
Member

Replaces the per-check HSI inventory attributes with two slists, Firmware HSI failing and Firmware HSI passing, holding L<level>: <name> items.

Why: fwupd's check set is hardware dependent, so one inventory attribute per check grew the fleet-wide attribute list with every distinct chipset while each host filled in only its own subset. Two lists keep the module at two stable attribute names regardless of the hardware, and carry the same information — a check in neither list is not applicable to that host.

Breaking: compliance-report-fwupd's per-check conditions are rewritten in the same PR, so the two modules must be released together.

@cf-bottom

Copy link
Copy Markdown

Thank you for submitting a pull request! Maybe @craigcomstock can review this?

@craigcomstock craigcomstock left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

# for use in compliance report conditions.
# - An slist of detailed results formatted "Name (HSI L<level>):
# <result> [PASS|FAIL]" for inventory drill-down.
# - "Firmware HSI failing" and "Firmware HSI passing", slists of

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to explain in the commit message and maybe in comments in the code why you use a pass/fail list (instead of the previous inventory attributes).

fwupd's security check set is hardware dependent, so one inventory
attribute per check grew the fleet-wide attribute list with every
distinct chipset while each host filled in only its own subset. Two
slists keep the module at two stable attribute names regardless of the
hardware, and carry the same information: a check in neither list is not
applicable to that host.

compliance-report-fwupd's per-check conditions are rewritten to match an
item against "Firmware HSI failing", so the two modules must be released
together.

Changelog: title
@nickanderson
nickanderson merged commit 883a378 into cfengine:master Aug 14, 2026
10 checks passed
nickanderson added a commit to cfengine/build-index that referenced this pull request Aug 14, 2026
inventory-fwupd 0.2.0, compliance-report-fwupd 0.2.0, manage-fwupd 0.1.2

inventory-fwupd replaces its per-check HSI inventory attributes with the
"Firmware HSI failing" and "Firmware HSI passing" lists, and
compliance-report-fwupd's conditions are rewritten to match against them,
so both get a minor bump. manage-fwupd only changed its README.

cfengine/modules#156
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants