Skip to content

docs: add containerized InSpec execution guide for CIS benchmarks - #2358

Draft
shellyco-code wants to merge 1 commit into
flatcar:mainfrom
shellyco-code:feat/containerize-cis-inspec-guide
Draft

docs: add containerized InSpec execution guide for CIS benchmarks#2358
shellyco-code wants to merge 1 commit into
flatcar:mainfrom
shellyco-code:feat/containerize-cis-inspec-guide

Conversation

@shellyco-code

Copy link
Copy Markdown

Add containerized InSpec execution guide for CIS benchmarks

Fixes #2357

This PR updates CIS/README.md to streamline running CIS compliance audits against Flatcar Container Linux instances:

  • Containerized Execution (Recommended): Added Docker/Podman instructions using the official chef/inspec image so contributors can run compliance scans without installing host Ruby 2.7 gems.
  • Updated Setup: Cleaned up hardcoded legacy Ruby 2.7 binary paths while preserving traditional local gem execution instructions.

How to use

Reviewers can inspect CIS/README.md to verify the containerized Docker/Podman execution commands and updated setup options.

Testing done

  • Validated Markdown syntax and rendering using local git diff inspection.

  • Verified commit sign-off (git commit -s).

  • Changelog entries added in the respective changelog/ directory (user facing change, bug fix, security fix, update)

  • Inspected CI output for image differences: /boot and /usr size, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc.

- Add containerized execution option using chef/inspec Docker container.
- Update report generation instructions to remove hardcoded legacy Ruby 2.7 paths.

Signed-off-by: shellyco-code <shellyco-code@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

[RFE] Add containerized InSpec execution guide to CIS benchmarking docs

1 participant