Open wandmagic opened 1 month ago
@david-waltermire I had a conversation related to this request later in the afternoon with @wandmagic. Is it possible, given what I know about "the sandwich" of commands up through m-j, lo-j, and oscal-cli to validate the profile (I am not sure the full scope of the disabled feature, but it seems relevant per https://github.com/metaschema-framework/oscal-cli/blob/ef2fe6fef5b4e3a20370f24a5390b614daa156f5/src/main/java/gov/nist/secauto/oscal/tools/cli/core/commands/AbstractResolveCommand.java#L167-L198) and opt to validate with inline STDOUT/STDERR output and optionally SARIF? Paul sees a need in conjunction with the server work as a result in the https://github.com/GSA/fedramp-automation/issues/719.
Thoughts?
Yeah. We could add a --validate
switch for this. In the mean time, you can always resolve then validate in separate commands. We could also get fancy and have --validate-source
and --validate-output
. We would need a switch for the SARIF output. Maybe --sarif
or something similar?
Yeah. We could add a
--validate
switch for this. In the mean time, you can always resolve then validate in separate commands. We could also get fancy and have--validate-source
and--validate-output
. We would need a switch for the SARIF output. Maybe--sarif
or something similar?
@wandmagic sounds like Mikey likes it (to translate the TV show reference, Dave and I are Mikey 😆). I think we need to get through lower-level m-j release and update cycle and maybe this is up for grabs in a subsequent release then?
I like --validate or --sarif with just a simple doc available check for the desired item, but it would be interesting if when we have an unhandled exception during execution we can get sarif logs of that error as well, this might be a different issue but same line of thought that got me here.
I like --validate or --sarif with just a simple doc available check for the desired item, but it would be interesting if when we have an unhandled exception during execution we can get sarif logs of that error as well, this might be a different issue but same line of thought that got me here.
@wandmagic Handling and exposing profile resolution errors via SARIF is very different. I'd like to have a higher bandwidth conversation with you about this to better understand the use case. We should summarize that conversation here.
User Story: As a developer
I would like resolve functions to support optional SARIF format error output so that I can better track, analyze and integrate error reporting.
Goals:
Enable resolve functions to optionally output errors in SARIF (Static Analysis Results Interchange Format) format to provide standardized, detailed error reporting that can be consumed by various development tools.
Key requirements:
Dependencies:
Acceptance Criteria