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
RFE: Add ability to skip specific remediations #633
Comments
IMO this is a better way to solve ComplianceAsCode/content#1609 and ComplianceAsCode/content#1608. |
I think the CLI you suggested is not a good user experience. We were discussing some ideas internally about:
I can't promise anything but stay tuned! Of course as always any contributions are welcome. |
@matusmarhefka has implemented evaluating only a single rule in "oscap xccdf eval". Users can provide @matusmarhefka Does @mpreisler Is the SCAP Workbench feature planned? |
@jan-cerny Yes, |
It would be nice to handle this for more than just a singe rule as well.... Maybe something like a file with a listing of the rules to ignore the remediations on. |
Would it also be possible to add this --rule as an option to remediate the command? Something like It would make sense where one doesn't want to evaluate and remediate in one go but rather would like to do it in 2 steps, more like offline remediation. So remediation after scanning but only for particular rule |
Skipping certain fixes would be infinitely useful in our environment where the generated level 1 server fix script removed a few packages that we require for our particular usecase. A separate ignore file would certainly make it neater and trackable (e.g. in source control) with something like |
You can tailor-out any rule from a DS by deselecting it in a tailoring file. It would make more sense to get rid of both the check and the remediation at the same time. |
Add an option to skip specific remediations when runnning
oscap xccdf remediate
oroscap xccdf eval --remediate
. This is extremely helpful when certain checks may brick a system or using untailored XCCDF in kickstarts, etc. The option (--skip-remediation
or--skip-fix
) would need to handle multiple instances and/or shell expansion. For example:or
The text was updated successfully, but these errors were encountered: