-
Notifications
You must be signed in to change notification settings - Fork 21
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
OSCAL-CLI system-implementation/inventory/implemented-component (Cardinality) #184
Comments
@Telos-sa, I'll take a look. Just to confirm, reply with |
Also, I did not notice this in the OSCAL repository. As this is a report about processing of data instances with the CLI, I will transfer this to the oscal-cli repository. Thanks for your report. |
[ec2-user@ip-172-31-4-212 FedRAMP---Major-System-Boundary_OSCAL-export_20230823]$ oscal-cli --version A little out of step, I cant test on the newest CLI if needed. |
So I have looked at this preliminarily and it seems in 1.0.2 (the The XML/JSON schema constraints are designed to support zero or more That said, this highlights maybe a bug in the docs or some edge cases in the OSCAL schema docs and how they can be rendered. I cannot deny that, especially once I wrote the above paragraph. I will open a related issue today or later in the week. |
Here is an example of what we are posting. Tying to figure out what the structure should be: Wouldn't the asset-id for the component tie to the asset-id of the inventory? Didnt the presence of the implemented component do that by default? Attached two images that show the link between software and inventory. |
Hey @aj-stein-nist did you get a chance to look at the additional notes? Do we need to have an asset-id within the component when the asset id it tied to the inventory item? Want to confirm where the asset-id prop should be located within the model. |
Hi @Telos-sa, re #184 (comment), it seems there has not been any change to the upstream models. I will try to coordinate that request and open in issue, but until then this issue is blocked. Sorry for the delayed update. |
Describe the bug
Getting a cardinality error for implemented component:
[ERROR] [/system-security-plan/system-implementation[1]/inventory-item[1]/implemented-component[1]] The cardinality '0' is below the required minimum '1' for items matching the expression 'prop[has-oscal-namespace('http://csrc.nist.gov/ns/oscal') and @name='asset-id']'.
Which seems to conflict with the requirement in the model:
Please review, and let us know if we need to adjust. Attached is the SSP to review for evidence:
FedRAMP---Major-System-Boundary_OSCAL-export_20230823.zip
Who is the bug affecting
Resources that associate components with asset inventory.
What is affected by this bug
Tooling & API
How do we replicate this issue
Validate the OSCAL SSP provided using the OSCAL-CLI tool.
Expected behavior (i.e. solution)
Based on the model, there should not be any requirements for this, except to ensure the uuid of the component is included if the implemented-component is included.
Other comments
No response
Revisions
No response
The text was updated successfully, but these errors were encountered: