-
Notifications
You must be signed in to change notification settings - Fork 685
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
Reduce XCCDF #11800
Reduce XCCDF #11800
Conversation
Skipping CI for Draft Pull Request. |
🤖 A k8s content image for this PR is available at: Click here to see how to deploy itIf you alread have Compliance Operator deployed: Otherwise deploy the content and operator together by checking out ComplianceAsCode/compliance-operator and: |
Code Climate has analyzed commit 5a7ecc9 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 11.1% (50% is the threshold). This pull request will bring the total coverage in the repository to 59.3% (0.0% change). View more on Code Climate. |
@Honny1 It would be great if your PR description described which items are removed from the built XML file. |
/packit rebuild-failed |
I have compared the data stream before and after this change and I have also compared the thin data streams. |
Description:
This PR allows you to reduce the size of XCCDF to normal Datastreams and Thin Datastreams with the specified rule ID. Thin DSs generated by
--thin
have this feature enabled previously.The process removes unused CPE platforms, rules, groups, and profiles (In the case of normal Datastream, selects all profiles for the product and uses only the profile with one rule for thin DS.)
When a group is deleted, its children, such as variables, rules, and other subgroups, are also deleted.
Thin DS:
679K
114K
Normal Datastream (Product: Fedora):
18,7 MB
18,4 MB