-
Notifications
You must be signed in to change notification settings - Fork 26
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
Regression between Rocky 9.1 and 9.2 with using of tailoring-path
#246
Comments
Unhelpful addition, but I can confirm I'm seeing the exact same issue on both Alma 9.2 and RHEL 9.2, so I do think this is an upstream change related to this addon and nothing Rocky specific. Like you, I'm writing my tailoring content into I notice that there were a bunch of changes in #237 to how content gets parsed including a bunch of changes to how the addon handles tailoring files, so I wonder if the regression is somewhere in that PR. Edit: Added clarification that this is definitely specifically 9.2 I'm seeing the issue on as well. |
@alexhaydock Actually quite helpful, glad to hear its not just my environment! |
In the mean time, trying to do a workaround in oscap xccdf eval --profile xccdf_org.ssgproject.content_profile_stig --results-arf /tmp/arf.xml --report/tmp/report.html --datastrream-id scap_org.open-scap_datastream_from_xccdf_ssg-rhel9.xccdf.xml /usr/share/xml/scap/ssg/content/ssg-rhel9-ds.xml And it starts with the error:
This is on an airgapped system, but if regular oscap is erroring out, how did the anaconda plugin ever work? Is there something I'm missing?
Edit: I needed to reference |
Thanks for opening the issue. It's helpful to see the ways how people use the project in reality. It was never supposed to work this way, so it's a pleasant surprise that it worked before, but consequently, we don't test this scenario. The tailoring file should be put in an RPM or a zip file together with the SCAP data stream. Regarding the "WARNING:", this is really a warning not an errpr, and affects only rule |
@jan-cerny Thank you for the follow up! Is there any documentation that can walk through how one generates the zip/rpm as described in:
i.e. what that folder structure looks like, where those files should exist, example I looked at (what I believe is) the official documentation page, and while it provides a good overview for those curious on the project, it's a bit light on the level of detail necessary for actually implementing OAA (esp. with any tailoring content). And while the tutorial on how to create your own tailoring content was helpful, it doesn't walk you though in detail on how to use that in OAA. Thank you for all you and the team do to support this project, it really is apprecaited! |
Hi @jan-cerny - thanks for the reply 😄 Is there a way that the tailoring file in an rpm/zip can be delivered to a kickstarted host via the The use-case here for using this methodology in my case is to deploy RHEL (& derivative) hosts without needing to modify & rebuild the upstream ISOs, without needing human interaction during the boot process (i.e. to change GRUB options), and with the ability to deploy on networks without internet access (so no ability to supply a tailoring file hosted on a URL). This is very easy to do by simply booting the unmodified upstream ISO with the kickstart stored on a secondary disk labeled If the tailoring file can be included as an RPM/zip file that might work just as well, though I've never really experimented with whether it can be incorporated into the entirely hands-free workflow that doesn't require the rebuilding of the upstream ISO. I wonder if it could be supplied on the |
We use the Anaconda OSCAP plugin for hardening our Rocky 9 systems. We recently took Rocky 9.2 for a spin and ran into some issues.
How we have it implemented in our kickstart:
For R9.1: successfully kicks and applies hardening with the tailoring file
R9.2: Fails with the errors. Specifically in syslog coming off of the anaconda environment:
We see a similar error in the Anaconda TUI in the console of the target system.
Now, this may be a hack/cheating, but it seemed to work with OAA included in the Rocky/RHEL 9.1 installer, but is no longer working in 9.2.
We verified that the tailoring file is in fact in /tmp/openscap_data and based on time stamps, is getting there before the addon looks for it.
Relevant anaconda versions
Rocky 9.1: 34.25.1.14
Rocky 9.2: 34.25.2.10
Not quite sure how to pull the plugin versions, but can run those commands if provided.
Possibly related to #40 and #199 ?
We're a little different from 199 in that we're pulling policy from the SSG but tailoring from file.
Any thoughts?
The text was updated successfully, but these errors were encountered: