Cmp 4442 - #14956
Open
abushkin-redhat wants to merge 3 commits into
Open
Conversation
…irt 6.1) OpenSCAP node rule checking that nested virtualization is disabled: the 'nested' parameter of kvm_intel/kvm_amd (exposed at /sys/module/kvm_*/parameters/nested) must be N or 0. Nodes where the KVM modules are not loaded do not expose the parameter, which is compliant - so the rule is inert on non-virtualization nodes without needing a CPE. Custom OVAL: for each module, absent-file (none_exist) OR content ^(N|0)$. Validated on real hardware: a host with kvm_amd nested=1 evaluates false (non-compliant) and the absent kvm_intel branch evaluates true, via oscap oval eval of the built ssg-ocp4-oval.xml. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…controls) Node companion profile for the CEL-based cis-vm-extension platform profile, hosting the benchmark's node-level controls. 'platform: ocp4-node' maps to the openshift_container_platform_node CPE, from which the Compliance Operator derives Node-type scans (per-role master/worker), same as cis-node. The content build rejects profiles with no selections, so the profile ships with its first rule, kubevirt-nested-virtualization-disabled (CIS 6.1, CMP-4443). The remaining node rules add their selections under their own tickets: CMP-4441 (1.8 seccomp profile permissions), CMP-4442 (1.9 cache directory permissions), CMP-4444 (6.2 vCPU metrics), CMP-4445 (6.3 CPU vulnerability mitigations). e2e/CI coverage for this profile is tracked in CMP-4510. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
… 1.9) OpenSCAP node rule checking that the kubevirt cache directory (/var/run/kubevirt-private/) has mode 0755 or more restrictive. Uses the file_permissions template, which passes when the directory is absent (compliant by default on non-virt nodes). Validated on a live cluster: directory absent = PASS, directory with 0777 = FAIL, directory with 0755 = PASS.
|
@abushkin-redhat: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
kubevirt-cache-directory-permissionschecking that/var/run/kubevirt-private/has mode 0755 or more restrictivefile_permissionstemplate — passes when the directory is absent(compliant by default on non-virt nodes)
cis-vm-extension-nodeprofile selectionsDepends on
cis-vm-extension-nodeprofile andkubevirt-nested-virtualization-disabledrule)Test plan
Validated on a live OCP cluster (OCP 4.22, RHEL 10, TechPreviewNoUpgrade):