-
Notifications
You must be signed in to change notification settings - Fork 378
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
OpenSCAP generates incomplete Ansible Playbooks #1963
Comments
So, in this scenario, when |
If there is no --profile provided,
I believe that the When |
Related PR: #1832 |
Thank you for opening this issue! We have discussed this internally. We realize that there are multiple concerns that we need to take into account. First problem is that we aren't consistent across different oscap submodules. We need to make sure that the options Also, we should keep in mind that the profile choice doesn't influence only selections of rules to be evaluated but it also has an influence over values of XCCDF Values. We can imagine multiple use-cases when a content author or user would like to run a specific rule with a specific value of an XCCDF value determined by the profile. Therefore, we should allow user to use We need to realize that the combination of With this in mind, we have reached a conclusion which is to keep the ability of the users to specify |
@matejak please submit your opinion |
@mildas @jan-cerny How actual this problem is nowadays? |
Description of Problem:
OpenSCAP
oscap xccdf generate fix
submodule can't generate Ansible Playbooks in the results oriented mode if the given ARF has been created byoscap
running in--rule
mode and the provided rule isn't a part of the profile provided in the--profile
argument.This situation can happen for example in Automatus when executing TSs that contain profile in their headers. This has been discovered during review of ComplianceAsCode/content#10348.
OpenSCAP Version:
openscap-1.3.7-1.fc37.x86_64
Operating System & Version:
F 37
Steps to Reproduce:
Actual Results:
Dummy playbook with no contents
Expected Results:
The generated Playbook contains tasks for remediation of rule xccdf_org.ssgproject.content_rule_sssd_ldap_configure_tls_ca_dir.
The reason for this expectation is that the ARF file contains a "fail" result for this rule. The rule has been also reported as a "fail" during the scan that created this ARF. The behavior of the results-oriented Playbook generator should be that it the generated Playbook contains remediations of failed rules.
Additional Information / Debugging Steps:
The text was updated successfully, but these errors were encountered: