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

Require OVAL ID to match rule ID #10346

Merged
merged 3 commits into from
Mar 22, 2023
Merged

Conversation

maage
Copy link
Contributor

@maage maage commented Mar 21, 2023

Description:

Change behaviour to fail if OVAL ID does not match rule ID. Fixed sole failed rule.

Rationale:

There was only one rule not to meet this requirement. When we meet the
check, it is huge help when debugging / searching rules.

Also currently these kind of messages are easy not to notice.

Review Hints:

Especially should check sysctl_crypto_fips_enabled / proc_sys_crypto_fips_enabled under rhcos4.

Tests should fail simply if there is issues.

…tch rule name

OVAL definition in './linux_os/guide/system/software/integrity/fips/sysctl_crypto_fips_enabled/oval/rhcos4.xml' doesn't match rule ID 'sysctl_crypto_fips_enabled'.
… rule ID

There was only one rule not to meet this requirement. When we meet the
check, it is huge help when debugging / searching rules.
@openshift-ci openshift-ci bot added the needs-ok-to-test Used by openshift-ci bot. label Mar 21, 2023
@openshift-ci
Copy link

openshift-ci bot commented Mar 21, 2023

Hi @maage. Thanks for your PR.

I'm waiting for a ComplianceAsCode member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions 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/test-infra repository.

@github-actions
Copy link

Start a new ephemeral environment with changes proposed in this pull request:

rhel8 (from CTF) Environment (using Fedora as testing environment)
Open in Gitpod

Fedora Testing Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

@codeclimate
Copy link

codeclimate bot commented Mar 21, 2023

Code Climate has analyzed commit 5fa2ed4 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 0.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 51.8% (0.0% change).

View more on Code Climate.

@maage
Copy link
Contributor Author

maage commented Mar 22, 2023

@Mab879 Mab879 self-assigned this Mar 22, 2023
@Mab879 Mab879 added the Infrastructure Our content build system label Mar 22, 2023
@Mab879 Mab879 added this to the 0.1.67 milestone Mar 22, 2023
@Mab879
Copy link
Member

Mab879 commented Mar 22, 2023

I don't seem to have access,

https://codeclimate.com/github/ComplianceAsCode/content/compare/a288768baefbacbedca8465eab00ec62d72cb2f4...5fa2ed4c7343077d82b6f8edff7a6d0677055fc1#files-changed

but I wonder if that is related.

Looks its related, but since how the tests are designed I'm not too concerned.

@Mab879 Mab879 merged commit ba11a53 into ComplianceAsCode:master Mar 22, 2023
@maage maage deleted the oval-id-match-1 branch May 18, 2023 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Infrastructure Our content build system needs-ok-to-test Used by openshift-ci bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants