-
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
Check information type categorization CIA impacts have a selected field #955
Comments
@aj-stein-gsa I don't believe we need to add the constraints in this issue. The following constraint already exists: <expect id="cia-impact-has-selected" target="system-information/information-type/(confidentiality-impact | integrity-impact | availability-impact)" test="selected" level="ERROR">
<formal-name>Cia Impact Has Selected</formal-name>
<prop namespace="https://docs.oasis-open.org/sarif/sarif/v2.1.0" name="help-url" value="https://automate.fedramp.gov/documentation/ssp/4-ssp-template-to-oscal-mapping/#system-information-and-information-types"/>
<message>A FedRAMP SSP information type confidentiality, integrity, or availability impact MUST specify the selected impact.</message>
</expect> Should I just tweak this one to test count(selected) = 1? |
I guess that was sloppy on my part, apologies. Does that pattern work elsewhere? I would have made it something like the following:
I just noticed when reviewing the epic if I took a valid SSP and removed selected it was still all valid. I am guessing that maybe how |
I just ran the tests on |
Le sigh, I will double check but I will have to try again, but I guess I cannot trust myself to run these things and do issue refinement anymore. 🤦 |
OK well then, yay for me. It would seem I ran |
Constraint Task
We had previously coded constraint checks in #689 to ensure base and selected CIA impact fields in
system-characterstics/system-information/categorization
are equivalent and otherwise provide a justification, but this can be avoided by not providing aselected
value and justbase
. We need to ensure that the schema optional selected is provided.Tests still passed if removing
selected
from the example valid SSP below, when it should in fact trigger becauseselected
is not present and the equivalence check should fail.fedramp-automation/src/validations/constraints/content/ssp-all-VALID.xml
Lines 196 to 200 in 7312686
We should have a separate check to be sure.
Intended Outcome
Check optional
selected
field is set before checkingbase
andselected
equivalence.Syntax Type
This is required core OSCAL syntax.
Allowed Values
There are no relevant allowed values.
Metapath(s) to Content
Purpose of the OSCAL Content
Ensure base and selected are present to determine equivalence or checked for justification text.
Dependencies
N/A
Acceptance Criteria
oscal-cli metaschema metapath eval -e "expression"
.Other information
This check is part of the #814.
The text was updated successfully, but these errors were encountered: