-
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
Provide a warning when matching against a group #126
Comments
As @wendellpiez mentioned in usnistgov/OSCAL#1746, maybe it would even be cleaner to generalize a bit and throw a warning/error when an invalid control-id is specified. |
If the inability to include a group (as opposed to a control) is seen as desirable, then throwing an error is appropriate. This of course means that one cannot identify a group of controls in a profile resolution, and instead must identify each and every desired control within the group even when all are desired, further taking into account controls which are descendants of controls. So much for including all of group "PE", e.g., with a single imperative. Were group inclusion to be countenanced, the name of Possibly a consideration: the domain (and unique nature, namely "A human-oriented, locally unique identifier with instance scope that can be used to reference this control elsewhere in this and other OSCAL instances (e.g., profiles). This id should be assigned per-subject, which means it should be consistently used to identify the same control across revisions of the document") of |
😁 Most RL catalogs would support profiles selecting groups implicitly, by using the
The requirement to use glob matching (which has other uses too, e.g. |
To start, if we review the catalog, the ID So there are two issues at play here, one on model enhancements, and the other being
More to follow. |
Dave also reported a different but related issue that the updated I will need to follow up and open an issue in the OSCAL project next week. |
Reviewing previous comments, I believe instead of warning that a group is referenced, the better thing to do is to add an error constraint that checks if the id does not match a control id in the referenced catalog or profile. In this way, if a group is referenced, then an error would be raised indicating that the referenced id is not for a control in the referenced source or resolved catalog. |
User Story:
As a user, I would like a warning or error to be thrown when attempting to include a group.
As someone new to profile resolution, I would like explicit feedback that profile resolution cannot operate on groups.
As an example, consider the following excerpt:
The above profile excerpt will not yield a resolved catalog with all of the children of the group "s1". Instead, the current behavior is to fail silently and omit the import directive entirely:
For catalogs that rely on groups of groups (such as the above example) this can cause quite a bit of confusion.
Goals:
Dependencies:
N/A
Acceptance Criteria
The text was updated successfully, but these errors were encountered: