openscap
openscap copied to clipboard
[WIP] Compose SCAP 1.3 DataStreams
This is a very early and rough patch to update openscap to compose SCAP 1.3 compliant Data Streams.
What this PR does for now:
- When a
check-content-ref'shrefattribute is a supported URL (i.e.:http://orhttps://)- Add a
urientry in theBenchmarks component-ref catalog, but don't include its contents in DS - Add a
component-refto datastream's<ds:checks>
- Add a
What it needs to do:
- Get the path from the URL and generate the component
nameanduri. -
oscap_source_new_from_urlnot sure if makes sense to implement it.
Related to https://github.com/ComplianceAsCode/content/pull/4302
I think we will need a test for this.
We are not using OpenSCAP to compose DS anymore. Closing.