Skip to content
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

OHDF reporter plugin for InSpec #5350

Open
wdower opened this issue Dec 18, 2023 · 0 comments
Open

OHDF reporter plugin for InSpec #5350

wdower opened this issue Dec 18, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@wdower
Copy link
Contributor

wdower commented Dec 18, 2023

Ergo:

inspec exec profile -t <target info> --reporter ohdf:scan-results.hdf

MITRE SAF needs the ability to control output from InSpec to make sure we can change the OHDF schema and still be able to populate an OHDF file from an InSpec scan.

  • We will need to be able to include Ohai data in an InSpec scan natively (Ohai is already in use for Chef Infra, but not in InSpec). We can likely use the ohai InSpec resource as part of the plugin. This will give us the ability to modify the OHDF schema to include target data about what a scan was run against using InSpec itself.
  • We can likely borrow the Chef Automate plugin's approach to doing this, where we just use the JSON reporter to fill out the bulk of the OHDF reporter format, then call Ohai to return target information, and then add a few more fields to the returned JSON reporter data object.
@wdower wdower added the enhancement New feature or request label Dec 18, 2023
@wdower wdower self-assigned this Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant