-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add prepared-by constraints * Add check for embedded address assembly in party * Fix messages to be less jargony * indent * Parenthesis to cleanup test expression * Add extra negative test case * undo workaround * Suggested improvements to constraint level and ssp-all-VALID
- Loading branch information
Showing
14 changed files
with
655 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/validations/constraints/content/ssp-responsible-party-prepared-by-INVALID.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<system-security-plan xmlns="http://csrc.nist.gov/ns/oscal/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://csrc.nist.gov/ns/oscal/1.0 https://github.com/usnistgov/OSCAL/releases/download/v1.1.2/oscal_ssp_schema.xsd" uuid="12345678-1234-4321-8765-123456789012"> | ||
<metadata> | ||
<role id="NOT-prepared-by"> | ||
<title>Prepared By</title> | ||
<description> | ||
<p>This organization prepared the SSP.</p> | ||
</description> | ||
</role> | ||
<responsible-party role-id="NOT-prepared-by"> | ||
<party-uuid>3360e343-9860-4bda-9dfc-ff427c3dfab6</party-uuid> | ||
</responsible-party> | ||
</metadata> | ||
</system-security-plan> |
18 changes: 18 additions & 0 deletions
18
...ations/constraints/content/ssp-responsible-party-prepared-by-location-valid-INVALID-1.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<system-security-plan xmlns="http://csrc.nist.gov/ns/oscal/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://csrc.nist.gov/ns/oscal/1.0 https://github.com/usnistgov/OSCAL/releases/download/v1.1.2/oscal_ssp_schema.xsd" uuid="12345678-1234-4321-8765-123456789012"> | ||
<metadata> | ||
<role id="prepared-by"> | ||
</role> | ||
<party uuid="3360e343-9860-4bda-9dfc-ff427c3dfab6" type="person"> | ||
<address type="work"> | ||
<addr-line>Suite 0000</addr-line> | ||
<addr-line>1234 Some Street</addr-line> | ||
<!-- missing city --> | ||
<state>ME</state> | ||
<postal-code>00000</postal-code> | ||
</address> | ||
</party> | ||
<responsible-party role-id="prepared-by"> | ||
<party-uuid>3360e343-9860-4bda-9dfc-ff427c3dfab6</party-uuid> | ||
</responsible-party> | ||
</metadata> | ||
</system-security-plan> |
22 changes: 22 additions & 0 deletions
22
...idations/constraints/content/ssp-responsible-party-prepared-by-location-valid-INVALID.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<system-security-plan xmlns="http://csrc.nist.gov/ns/oscal/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://csrc.nist.gov/ns/oscal/1.0 https://github.com/usnistgov/OSCAL/releases/download/v1.1.2/oscal_ssp_schema.xsd" uuid="12345678-1234-4321-8765-123456789012"> | ||
<metadata> | ||
<role id="prepared-by"> | ||
</role> | ||
<location uuid="27b78960-59ef-4619-82b0-ae20b9c709ac"> | ||
<title>CSP HQ</title> | ||
<address type="work"> | ||
<addr-line>Suite 0000</addr-line> | ||
<addr-line>1234 Some Street</addr-line> | ||
<!-- missing city --> | ||
<state>ME</state> | ||
<postal-code>00000</postal-code> | ||
</address> | ||
</location> | ||
<party uuid="3360e343-9860-4bda-9dfc-ff427c3dfab6" type="person"> | ||
<location-uuid>27b78960-59ef-4619-82b0-ae20b9c709ac</location-uuid> | ||
</party> | ||
<responsible-party role-id="prepared-by"> | ||
<party-uuid>3360e343-9860-4bda-9dfc-ff427c3dfab6</party-uuid> | ||
</responsible-party> | ||
</metadata> | ||
</system-security-plan> |
Oops, something went wrong.