Skip to content

ENT-13744: Extended inventory-fde module#123

Merged
nickanderson merged 1 commit intocfengine:masterfrom
nickanderson:ENT-13744/master
Feb 13, 2026
Merged

ENT-13744: Extended inventory-fde module#123
nickanderson merged 1 commit intocfengine:masterfrom
nickanderson:ENT-13744/master

Conversation

@nickanderson
Copy link
Member

@nickanderson nickanderson commented Feb 13, 2026

Inventory full disk encryption status on Linux via sysfs and /proc/mounts. Reports active cipher per volume and per-keyslot cipher/PBKDF for security evaluation. LUKS2 metadata cached with 24-hour TTL. Degrades gracefully when dmsetup or cryptsetup are absent. Includes loopback test helper script.

@nickanderson nickanderson force-pushed the ENT-13744/master branch 4 times, most recently from 4da09af to b9d3829 Compare February 13, 2026 17:47
@nickanderson nickanderson changed the title ENT-13744: Added inventory-fde module ENT-13744: Extemded inventory-fde module Feb 13, 2026
@nickanderson nickanderson changed the title ENT-13744: Extemded inventory-fde module ENT-13744: Extended inventory-fde module Feb 13, 2026
Copy link
Contributor

@craigcomstock craigcomstock left a comment

Choose a reason for hiding this comment

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

cool!

classes:
linux::
"_have_dmsetup"
expression => isexecutable("/sbin/dmsetup");
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe add the path as a var since you will use it at least three times right?

add to stdlib paths from here?

nickanderson added a commit to nickanderson/masterfiles that referenced this pull request Feb 13, 2026
Adds path[cryptsetup] alongside the existing path[dmsetup] entries.
Used by the inventory-fde module (cfengine/modules#123) for LUKS
keyslot metadata inspection.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
nickanderson added a commit to nickanderson/masterfiles that referenced this pull request Feb 13, 2026
Adds path[cryptsetup] and (where missing) path[dmsetup] to the
redhat, debian, opensuse, suse|sles, and archlinux|manjaro sections.
Paths verified in containers for each platform:
- archlinux: /usr/bin (all of /sbin, /usr/sbin -> /usr/bin)
- redhat, debian, opensuse, suse|sles: /usr/sbin

Used by the inventory-fde module (cfengine/modules#123) for LUKS
keyslot metadata inspection.
Extended inventory-fde to report active dm-crypt cipher per volume
and LUKS keyslot details (per-keyslot cipher and PBKDF algorithm).
LUKS2 metadata is cached as JSON with a 24-hour TTL.

Gracefully degrades when dmsetup or cryptsetup are absent.
Tool paths are defined as variables for single-point configuration.

Includes loopback test helper script and Mission Portal screenshot.
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.

2 participants