-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add leveraged-authorization-has-component constraint * Update metapath expression for leveraged-authorization constraint * Add constraint leveraged-authorization-has-nature-of-agreement * Add constraint leveraged-authorization-has-information-type * Add constraint leveraged-authorization-has-implementation-point * Add constraint leveraged-authorization-has-authorized-users * Apply suggestions from code review Co-authored-by: Gabeblis <[email protected]> * Update sorting constraints alphabetically * Update refactoring leveraged authorization system component constraints * Add user-friendly error message for index-has-key constraint * Fix miscellaneous minor issues --------- Co-authored-by: Gabeblis <[email protected]>
- Loading branch information
Showing
25 changed files
with
557 additions
and
1 deletion.
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
40 changes: 40 additions & 0 deletions
40
...ons/constraints/content/leveraged-authorization-component-has-valid-reference-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,40 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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"> | ||
|
||
<system-implementation> | ||
<leveraged-authorization uuid="94d678fb-6d33-4eef-a17a-897bb4809487" > | ||
<title>Name of Underlying System</title> | ||
<!-- FedRAMP Package ID --> | ||
<prop name="leveraged-system-identifier" | ||
ns="https://fedramp.gov/ns/oscal" | ||
value="F9999999999" /> | ||
<prop ns="https://fedramp.gov/ns/oscal" name="authorization-type" | ||
value="fedramp-agency"/> | ||
<prop ns="https://fedramp.gov/ns/oscal" name="impact-level" value="moderate"/> | ||
<link href="//path/to/leveraged_system_legacy_crm.xslt" /> | ||
<link href="//path/to/leveraged_system_responsibility_and_inheritance.xml" /> | ||
<party-uuid>11111111-0000-4000-9000-000000000003</party-uuid> | ||
<date-authorized>2019-01-01</date-authorized> | ||
<remarks> | ||
<p>Sample leveraged authorization (e.g., underlying IaaS).</p> | ||
</remarks> | ||
</leveraged-authorization> | ||
|
||
<!-- Leveraged authorization has more than one associated service components --> | ||
<component uuid="7622fb94-ac33-498a-a955-fb3501f02d83" type="system"> | ||
<title>Name of Leveraged System</title> | ||
<description> | ||
<p>Briefly describe leveraged system.</p> | ||
</description> | ||
<prop name="leveraged-authorization-uuid" | ||
value="94d678fb-6d33-4eef-a17a-000000000000" /> | ||
<prop name="implementation-point" value="external"/> | ||
<status state="operational"/> | ||
</component> | ||
|
||
</system-implementation> | ||
|
||
</system-security-plan> |
43 changes: 43 additions & 0 deletions
43
...aints/content/ssp-leveraged-authorization-component-has-nature-of-agreement-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,43 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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"> | ||
|
||
<system-implementation> | ||
<leveraged-authorization uuid="94d678fb-6d33-4eef-a17a-897bb4809487" > | ||
<title>Name of Underlying System</title> | ||
<!-- FedRAMP Package ID --> | ||
<prop name="leveraged-system-identifier" | ||
ns="https://fedramp.gov/ns/oscal" | ||
value="F9999999999" /> | ||
<prop ns="https://fedramp.gov/ns/oscal" name="authorization-type" | ||
value="fedramp-agency"/> | ||
<prop ns="https://fedramp.gov/ns/oscal" name="impact-level" value="moderate"/> | ||
<link href="//path/to/leveraged_system_legacy_crm.xslt" /> | ||
<link href="//path/to/leveraged_system_responsibility_and_inheritance.xml" /> | ||
<party-uuid>11111111-0000-4000-9000-000000000003</party-uuid> | ||
<date-authorized>2019-01-01</date-authorized> | ||
<remarks> | ||
<p>Sample leveraged authorization (e.g., underlying IaaS).</p> | ||
</remarks> | ||
</leveraged-authorization> | ||
|
||
<!-- Leveraged authorization has associcated service component BUT with more than one "nature-of-agreement" prop--> | ||
<component uuid="7622fb94-ac33-498a-a955-fb3501f02d83" type="system"> | ||
<title>Name of Leveraged System</title> | ||
<description> | ||
<p>Briefly describe leveraged system.</p> | ||
</description> | ||
<prop name="leveraged-authorization-uuid" | ||
value="94d678fb-6d33-4eef-a17a-897bb4809487" /> | ||
<!-- componet missing "nature-of-agreement" prop--> | ||
<prop name="nature-of-agreement" ns="http://fedramp.gov/ns/oscal" value="EULA" /> | ||
<prop name="nature-of-agreement" ns="http://fedramp.gov/ns/oscal" value="Contract" /> | ||
<prop name="implementation-point" value="external"/> | ||
<status state="operational"/> | ||
</component> | ||
|
||
</system-implementation> | ||
|
||
</system-security-plan> |
42 changes: 42 additions & 0 deletions
42
...traints/content/ssp-leveraged-authorization-component-has-nature-of-agreement-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,42 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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"> | ||
|
||
<system-implementation> | ||
<leveraged-authorization uuid="94d678fb-6d33-4eef-a17a-897bb4809487" > | ||
<title>Name of Underlying System</title> | ||
<!-- FedRAMP Package ID --> | ||
<prop name="leveraged-system-identifier" | ||
ns="https://fedramp.gov/ns/oscal" | ||
value="F9999999999" /> | ||
<prop ns="https://fedramp.gov/ns/oscal" name="authorization-type" | ||
value="fedramp-agency"/> | ||
<prop ns="https://fedramp.gov/ns/oscal" name="impact-level" value="moderate"/> | ||
<link href="//path/to/leveraged_system_legacy_crm.xslt" /> | ||
<link href="//path/to/leveraged_system_responsibility_and_inheritance.xml" /> | ||
<party-uuid>11111111-0000-4000-9000-000000000003</party-uuid> | ||
<date-authorized>2019-01-01</date-authorized> | ||
<remarks> | ||
<p>Sample leveraged authorization (e.g., underlying IaaS).</p> | ||
</remarks> | ||
</leveraged-authorization> | ||
|
||
<!-- Leveraged authorization has associcated service component BUT without "nature-of-agreement" prop--> | ||
<component uuid="7622fb94-ac33-498a-a955-fb3501f02d83" type="system"> | ||
<title>Name of Leveraged System</title> | ||
<description> | ||
<p>Briefly describe leveraged system.</p> | ||
</description> | ||
<prop name="leveraged-authorization-uuid" | ||
value="94d678fb-6d33-4eef-a17a-897bb4809487" /> | ||
<!-- componet missing "nature-of-agreement" prop--> | ||
<!-- <prop name="nature-of-agreement" ns="http://fedramp.gov/ns/oscal" value="SLA" /> --> | ||
<prop name="implementation-point" value="external"/> | ||
<status state="operational"/> | ||
</component> | ||
|
||
</system-implementation> | ||
|
||
</system-security-plan> |
40 changes: 40 additions & 0 deletions
40
...constraints/content/ssp-leveraged-authorization-component-has-valid-reference-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,40 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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"> | ||
|
||
<system-implementation> | ||
<leveraged-authorization uuid="94d678fb-6d33-4eef-a17a-897bb4809487" > | ||
<title>Name of Underlying System</title> | ||
<!-- FedRAMP Package ID --> | ||
<prop name="leveraged-system-identifier" | ||
ns="https://fedramp.gov/ns/oscal" | ||
value="F9999999999" /> | ||
<prop ns="https://fedramp.gov/ns/oscal" name="authorization-type" | ||
value="fedramp-agency"/> | ||
<prop ns="https://fedramp.gov/ns/oscal" name="impact-level" value="moderate"/> | ||
<link href="//path/to/leveraged_system_legacy_crm.xslt" /> | ||
<link href="//path/to/leveraged_system_responsibility_and_inheritance.xml" /> | ||
<party-uuid>11111111-0000-4000-9000-000000000003</party-uuid> | ||
<date-authorized>2019-01-01</date-authorized> | ||
<remarks> | ||
<p>Sample leveraged authorization (e.g., underlying IaaS).</p> | ||
</remarks> | ||
</leveraged-authorization> | ||
|
||
<!-- Leveraged authorization component has invalid "leveraged-authorization-uuid" --> | ||
<component uuid="7622fb94-ac33-498a-a955-fb3501f02d83" type="system"> | ||
<title>Name of Leveraged System</title> | ||
<description> | ||
<p>Briefly describe leveraged system.</p> | ||
</description> | ||
<prop name="leveraged-authorization-uuid" | ||
value="94d678fb-6d33-4eef-a17a-897bb4800000" /> | ||
<prop name="implementation-point" value="external"/> | ||
<status state="operational"/> | ||
</component> | ||
|
||
</system-implementation> | ||
|
||
</system-security-plan> |
41 changes: 41 additions & 0 deletions
41
...idations/constraints/content/ssp-leveraged-authorization-has-authorized-users-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,41 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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"> | ||
|
||
<system-implementation> | ||
<leveraged-authorization uuid="94d678fb-6d33-4eef-a17a-897bb4809487" > | ||
<title>Name of Underlying System</title> | ||
<!-- FedRAMP Package ID --> | ||
<prop name="leveraged-system-identifier" | ||
ns="https://fedramp.gov/ns/oscal" | ||
value="F9999999999" /> | ||
<prop ns="https://fedramp.gov/ns/oscal" name="authorization-type" | ||
value="fedramp-agency"/> | ||
<prop ns="https://fedramp.gov/ns/oscal" name="impact-level" value="moderate"/> | ||
<link href="//path/to/leveraged_system_legacy_crm.xslt" /> | ||
<link href="//path/to/leveraged_system_responsibility_and_inheritance.xml" /> | ||
<party-uuid>11111111-0000-4000-9000-000000000003</party-uuid> | ||
<date-authorized>2019-01-01</date-authorized> | ||
<remarks> | ||
<p>Sample leveraged authorization (e.g., underlying IaaS).</p> | ||
</remarks> | ||
</leveraged-authorization> | ||
|
||
<!-- Leveraged authorization has associcated service component BUT missing "authorized users"--> | ||
<component uuid="7622fb94-ac33-498a-a955-fb3501f02d83" type="system"> | ||
<title>Name of Leveraged System</title> | ||
<description> | ||
<p>Briefly describe leveraged system.</p> | ||
</description> | ||
<prop name="leveraged-authorization-uuid" value="94d678fb-6d33-4eef-a17a-897bb4809487" /> | ||
<prop name="nature-of-agreement" ns="http://fedramp.gov/ns/oscal" value="eula" /> | ||
<prop name="implementation-point" value="external"/> | ||
<status state="operational"/> | ||
<!-- missing responsible-role / role-id to indidate "authorized users" --> | ||
</component> | ||
|
||
</system-implementation> | ||
|
||
</system-security-plan> |
42 changes: 42 additions & 0 deletions
42
...ions/constraints/content/ssp-leveraged-authorization-has-implementation-point-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,42 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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"> | ||
|
||
<system-implementation> | ||
<leveraged-authorization uuid="94d678fb-6d33-4eef-a17a-897bb4809487" > | ||
<title>Name of Underlying System</title> | ||
<!-- FedRAMP Package ID --> | ||
<prop name="leveraged-system-identifier" | ||
ns="https://fedramp.gov/ns/oscal" | ||
value="F9999999999" /> | ||
<prop ns="https://fedramp.gov/ns/oscal" name="authorization-type" | ||
value="fedramp-agency"/> | ||
<prop ns="https://fedramp.gov/ns/oscal" name="impact-level" value="moderate"/> | ||
<link href="//path/to/leveraged_system_legacy_crm.xslt" /> | ||
<link href="//path/to/leveraged_system_responsibility_and_inheritance.xml" /> | ||
<party-uuid>11111111-0000-4000-9000-000000000003</party-uuid> | ||
<date-authorized>2019-01-01</date-authorized> | ||
<remarks> | ||
<p>Sample leveraged authorization (e.g., underlying IaaS).</p> | ||
</remarks> | ||
</leveraged-authorization> | ||
|
||
<!-- Leveraged authorization has associcated service component BUT without "implementation-point" prop--> | ||
<component uuid="7622fb94-ac33-498a-a955-fb3501f02d83" type="system"> | ||
<title>Name of Leveraged System</title> | ||
<description> | ||
<p>Briefly describe leveraged system.</p> | ||
</description> | ||
<prop name="leveraged-authorization-uuid" | ||
value="94d678fb-6d33-4eef-a17a-897bb4809487" /> | ||
<prop name="nature-of-agreement" ns="http://fedramp.gov/ns/oscal" value="SLA" /> | ||
<!-- componet missing "implementation-point" prop--> | ||
<!-- <prop name="implementation-point" value="external" /> --> | ||
<status state="operational"/> | ||
</component> | ||
|
||
</system-implementation> | ||
|
||
</system-security-plan> |
43 changes: 43 additions & 0 deletions
43
...idations/constraints/content/ssp-leveraged-authorization-has-information-type-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,43 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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"> | ||
|
||
<system-implementation> | ||
<leveraged-authorization uuid="94d678fb-6d33-4eef-a17a-897bb4809487" > | ||
<title>Name of Underlying System</title> | ||
<!-- FedRAMP Package ID --> | ||
<prop name="leveraged-system-identifier" | ||
ns="https://fedramp.gov/ns/oscal" | ||
value="F9999999999" /> | ||
<prop ns="https://fedramp.gov/ns/oscal" name="authorization-type" | ||
value="fedramp-agency"/> | ||
<prop ns="https://fedramp.gov/ns/oscal" name="impact-level" value="moderate"/> | ||
<link href="//path/to/leveraged_system_legacy_crm.xslt" /> | ||
<link href="//path/to/leveraged_system_responsibility_and_inheritance.xml" /> | ||
<party-uuid>11111111-0000-4000-9000-000000000003</party-uuid> | ||
<date-authorized>2019-01-01</date-authorized> | ||
<remarks> | ||
<p>Sample leveraged authorization (e.g., underlying IaaS).</p> | ||
</remarks> | ||
</leveraged-authorization> | ||
|
||
<!-- Leveraged authorization has associcated service component BUT without "information-type" prop--> | ||
<component uuid="7622fb94-ac33-498a-a955-fb3501f02d83" type="system"> | ||
<title>Name of Leveraged System</title> | ||
<description> | ||
<p>Briefly describe leveraged system.</p> | ||
</description> | ||
<prop name="leveraged-authorization-uuid" | ||
value="94d678fb-6d33-4eef-a17a-897bb4809487" /> | ||
<prop name="nature-of-agreement" ns="http://fedramp.gov/ns/oscal" value="SLA" /> | ||
<!-- componet missing "information-type" prop--> | ||
<!-- <prop name="information-type" ns="http://fedramp.gov/ns/oscal" value="C.3.5.4" /> --> | ||
<prop name="implementation-point" value="external"/> | ||
<status state="operational"/> | ||
</component> | ||
|
||
</system-implementation> | ||
|
||
</system-security-plan> |
51 changes: 51 additions & 0 deletions
51
...ns/constraints/content/ssp-leveraged-authorization-has-one-system-component-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,51 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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"> | ||
|
||
<system-implementation> | ||
<leveraged-authorization uuid="94d678fb-6d33-4eef-a17a-897bb4809487" > | ||
<title>Name of Underlying System</title> | ||
<!-- FedRAMP Package ID --> | ||
<prop name="leveraged-system-identifier" | ||
ns="https://fedramp.gov/ns/oscal" | ||
value="F9999999999" /> | ||
<prop ns="https://fedramp.gov/ns/oscal" name="authorization-type" | ||
value="fedramp-agency"/> | ||
<prop ns="https://fedramp.gov/ns/oscal" name="impact-level" value="moderate"/> | ||
<link href="//path/to/leveraged_system_legacy_crm.xslt" /> | ||
<link href="//path/to/leveraged_system_responsibility_and_inheritance.xml" /> | ||
<party-uuid>11111111-0000-4000-9000-000000000003</party-uuid> | ||
<date-authorized>2019-01-01</date-authorized> | ||
<remarks> | ||
<p>Sample leveraged authorization (e.g., underlying IaaS).</p> | ||
</remarks> | ||
</leveraged-authorization> | ||
|
||
<!-- Leveraged authorization has more than one associated service components --> | ||
<component uuid="7622fb94-ac33-498a-a955-fb3501f02d83" type="system"> | ||
<title>Name of Leveraged System</title> | ||
<description> | ||
<p>Briefly describe leveraged system.</p> | ||
</description> | ||
<prop name="leveraged-authorization-uuid" | ||
value="94d678fb-6d33-4eef-a17a-897bb4809487" /> | ||
<prop name="implementation-point" value="external"/> | ||
<status state="operational"/> | ||
</component> | ||
|
||
<component uuid="58350560-dbf7-4f43-9d86-bd0e15555e50" type="system"> | ||
<title>Duplicated Leveraged System</title> | ||
<description> | ||
<p>Duplicate leveraged system.</p> | ||
</description> | ||
<prop name="leveraged-authorization-uuid" | ||
value="94d678fb-6d33-4eef-a17a-897bb4809487" /> | ||
<prop name="implementation-point" value="external"/> | ||
<status state="operational"/> | ||
</component> | ||
|
||
</system-implementation> | ||
|
||
</system-security-plan> |
Oops, something went wrong.