-
Notifications
You must be signed in to change notification settings - Fork 96
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
Add LAYERS sheet to XLSX output for Docker scans uploaded to SCIO #926
Comments
@mjherzog Could you clarify what would you like to be imported from the LAYERS sheet? I'm not sure to get what's missing from the load_inventory pipeline import. |
I am looking for the same LAYERS data that we get in the XLSX output when you run a Docker image scan directly in SCIO with a docker pipeline instead of loading an SCIO Docker scan (json) run on a different SCIO instance.
The most important data are: created_by and the xref of layer_id to image_id. |
The LAYERS sheet is generated from the In the case of a JSON export, the integrality of that field is stored in the JSON and can be restored on load_inventory, but in the case of XLSX, most of the value is lost as we only keep the We could convert back the Example of
|
I am hoping to get this from a use case where the imported/loaded Scan is in json format. I am not expecting this to work from loading an XLSX scan file. |
The Now, when using the
To clarify, this pipeline is not a "Project importer" that would restore a full SCIO project state. This could be a new feature but would be limited to a single Project input for the "import" part. |
@tdruez Thank you for the detailed explanation. Adding this feature seems ultimately more complicated than beneficial at this time given all the variables including the fact that it would apply only to Docker data. |
@mjherzog @tdruez IMHO we should have a way to reload all the data from a scan in a project. May this this would not work if there are more than one scan loaded, but in the general case this should work. |
This makes sense... @mjherzog I do not think this would be a complex feature... this is basically loading the inventory as we do now, plus loading the project's extra data. |
I was worried that adding it only for Docker scans with a single image would add significant complexity in general. |
The complexity only exists when trying to load two, or more, projects into a single one. |
Signed-off-by: tdruez <[email protected]>
Signed-off-by: tdruez <[email protected]>
… (#1507) Signed-off-by: tdruez <[email protected]>
I've revisited this issue and added support for loading the extra_data value(s) from JSON input files in #1507 In the case of a single JSON file as input for the In the case of multiple JSON files as inputs for the
Content of the
|
It would be nice to get the LAYERS sheet in the XLSX output for a Docker scan added to the SCIO database with a load_inventory pipeline.
The text was updated successfully, but these errors were encountered: