Open jkufro opened 3 years ago
Update: I was able to test the TS version of the xccdf_results_mapper
and hit an error with the same test XCCDF file.
Need to validate that this works now
Probably a blocker for https://github.com/mitre/heimdall2/issues/343
If this fails, then it should be added as another sample to test against
Fixed by #2551
@Amndeep7 is this resolved by #2551 ?
@aaronlippold it might have been fixed when I did that pr for xxcdf2hdf but I have not tested yet so can't promise
@jrwhite17
XCCDF Issue - supporting files.zip
I realize that Heimdall Tools is being re-written in TS, but I figured it was worth documenting this issue because we have a use case that is currently blocked by the Ruby implementation and could possibly be present in the TS version as well.
The basic use case is:
We are currently blocked at step 2 of that workflow. I have run the SCAP Compliance Checker against an example RHEL7 VM with the
U_RHEL_7_V3R4_STIG_SCAP_1-2_Benchmark.xml
(attached in ZIP) and exported that from the SCAP tool in XCCDF format. When I run that XML file (example-rhel7-SCAP-scan.xml
- attached in ZIP) through the XCCDF mapper on themaster
branch, I get the following error:In my local testing I ended up revising the
to_hdf
method to the below code snippet and was able to produce theexample-rhel7-SCAP-scan.json
file (included in ZIP). It seems like theto_hdf
method just needs to be more flexible around fields that might not exist in the XCCDF file.Fixed by https://github.com/mitre/heimdall2/pull/2551