-
Notifications
You must be signed in to change notification settings - Fork 92
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
introduce user sensitivity level constraint + refactor #634
introduce user sensitivity level constraint + refactor #634
Conversation
src/validations/constraints/fedramp-external-allowed-values.xml
Outdated
Show resolved
Hide resolved
a946629
to
1b75d42
Compare
### Workflow | ||
- create a fork | ||
- branch from feature/external-constraints => feature/external-constraint-{constraint-group} | ||
- replace {constraint-group} with a short description of the constraints you will contribute | ||
- template the constraint in an XML file under <repo-root>/src/validations/constraints/fedramp-external-constraints-<constraint-group>.xml or where it makes sense to place | ||
- see fedramp-external-constraints.xml for example | ||
- create all constraints with well named ids | ||
- $`npm run constraint <constraint-id>` to scaffold unit tests | ||
- create or update sample content for your negative and positive unit tests | ||
- npm run test to see if your unit tests pass | ||
- once unit tests are passing submit your PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey this is good stuff, can you move this into the CONTRIBUTING.md
document? There may be stuff there from me, but it could be better. I would appreciate integrating it in this PR, just move it there.
(Inside baseball for you and the FedRAMP Auto Team: long-term I want this particular README to go away after the minor deprecation release.)
<allowed-values id="privilege-level" target="prop[@name='privilege-level']/@value" allow-other="no" level="ERROR"> | ||
<formal-name>Privilege Level</formal-name> | ||
<description>The privilege level of the user.</description> | ||
<enum value="read">Read</enum> | ||
<enum value="read-write">Read-Write</enum> | ||
<enum value="write">Write</enum> | ||
<enum value="no-access">No Access</enum> | ||
</allowed-values> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blocking: while working on docs, we diverge from upstream core OSCAL constraints. I am not sure this is a critical issue, I would like to discuss with the team and internal staff if we need to diverge or align with upstream or not.
<allowed-values id="user-sensitivity-level" target="prop[@name='sensitivity']/@value" allow-other="no" level="ERROR"> | ||
<formal-name>User Sensitvity Level</formal-name> | ||
<description>Sensitivity level of the user.</description> | ||
<enum value="high-risk">High Risk</enum> | ||
<enum value="severe">Severe</enum> | ||
<enum value="moderate">Moderate</enum> | ||
<enum value="limited">Limited</enum> | ||
<enum value="not-applicable">Not Applicable</enum> | ||
</allowed-values> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blocking: while working on docs, I realized this is a FedRAMP-specific constraint, this does not exist in core upstream OSCAL.
<allowed-values id="user-sensitivity-level" target="prop[@name='sensitivity']/@value" allow-other="no" level="ERROR"> | |
<formal-name>User Sensitvity Level</formal-name> | |
<description>Sensitivity level of the user.</description> | |
<enum value="high-risk">High Risk</enum> | |
<enum value="severe">Severe</enum> | |
<enum value="moderate">Moderate</enum> | |
<enum value="limited">Limited</enum> | |
<enum value="not-applicable">Not Applicable</enum> | |
</allowed-values> | |
<allowed-values id="user-sensitivity-level" target="prop[@ns='https://fedramp.gov/ns/oscal' and @name='sensitivity']/@value" allow-other="no" level="ERROR"> | |
<formal-name>User Sensitvity Level</formal-name> | |
<description>Sensitivity level of the user.</description> | |
<enum value="high-risk">High Risk</enum> | |
<enum value="severe">Severe</enum> | |
<enum value="moderate">Moderate</enum> | |
<enum value="limited">Limited</enum> | |
<enum value="not-applicable">Not Applicable</enum> | |
</allowed-values> |
c59e72c
to
f6d2009
Compare
Co-authored-by: Rene Tshiteya <[email protected]>
Co-authored-by: Rene Tshiteya <[email protected]>
Co-authored-by: Rene Tshiteya <[email protected]>
1b75d42
to
4fc75c8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @wandmagic, I rebased this to take a look where are at.
Can you split out the INVALID tests to individual fixture data files for negative tests per ADR 8 and then request re-review? Thanks.
closing this, just going to make a new branch |
Committer Notes
{Please provide a description of what this PR accomplishes. Be sure to reference any issues addressed. If the PR is a work-in-progress submitted for early review, please submit the PR as a draft PR using the "Draft pull request" dropdown.}
All Submissions:
By submitting a pull request, you are agreeing to provide this contribution under the CC0 1.0 Universal public domain dedication.