OpenSCAP / openscap_parser

MIT License
7 stars 14 forks source link

Add an SSG module for interacting with SSG #12

Closed akofink closed 5 years ago

akofink commented 5 years ago

Policies and Rules come from the SCAP Security Guide, generated from https://github.com/ComplianceAsCode/content. This adds rake tasks to download and unarchive released versions of SSG for a given application, and a shortcut rake task for all the RHEL SSG content.

rake ssg:sync_rhel
Archive:  scap-security-guide-0.1.46.zip
  inflating: scap-security-guide-0.1.46/ssg-rhel6-ds.xml  
  inflating: scap-security-guide-0.1.46/ssg-rhel7-ds.xml  
  inflating: scap-security-guide-0.1.46/ssg-rhel8-ds.xml

Todo:

It seems weird to namespace parts of this under OpenscapParser, such as the Downloader and Unarchiver, since they do no parsing of SCAP content.

@dLobatog I'd like a sanity check here before I go further with tests and docs. I plan on submitting another PR for any additional parsing code we need.

Signed-off-by: Andrew Kofink akofink@redhat.com

akofink commented 5 years ago

Added a Readme. @dLobatog no tests, really?

akofink commented 5 years ago

Added a couple simple tests. This should be ready for final review