Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow preferring SCE #2164

Closed
wants to merge 1 commit into from
Closed

Conversation

jan-cerny
Copy link
Member

This commit introduces a new environment variable
OSCAP_PREFERRED_ENGINE. This variable allows users to set a preffered check engine for XCCDF rules. If a rule has multiple checks, the checks for the preffered check engine will be used. Allowed values: SCE, OVAL. If this variable is set to SCE and a rule has both SCE and OVAL checks the SCE check will be used. If this variable is set to OVAL and a rule has both SCE and OVAL checks the OVAL check will be used. If this environment variable isn't set, the standard XCCDF mechanism will be used for check selection.

This will allow us to explicitely prefer SCE checks when executing oscap in Containerfile in the podman build process when building hardened bootc images.

Also a small test is added to test this feature.

@jan-cerny jan-cerny added this to the 1.4.1 milestone Oct 10, 2024
This commit introduces a new environment variable
`OSCAP_PREFERRED_ENGINE`. This variable allows users to set a preffered
check engine for XCCDF rules. If a rule has multiple checks, the checks
for the preffered check engine will be used. Allowed values: `SCE`,
`OVAL`. If this variable is set to `SCE` and a rule has both SCE and
OVAL checks the SCE check will be used. If this variable is set to
`OVAL` and a rule has both SCE and OVAL checks the OVAL check will be
used. If this environment variable isn't set, the standard XCCDF
mechanism will be used for check selection.

This will allow us to explicitely prefer SCE checks when executing
`oscap` in Containerfile in the `podman build` process when building
hardened bootc images.

Also a small test is added to test this feature.
@jan-cerny jan-cerny changed the base branch from main to maint-1.3 October 10, 2024 14:37
@jan-cerny jan-cerny closed this Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant