-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add constraint leveraged-authorization-has-authorized-users
- Loading branch information
Showing
6 changed files
with
80 additions
and
2 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
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> |
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
8 changes: 8 additions & 0 deletions
8
...validations/constraints/unit-tests/leveraged-authorization-has-authorized-users-FAIL.yaml
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,8 @@ | ||
test-case: | ||
name: Negative Test for leveraged-authorization-has-authorized-users | ||
description: >- | ||
This test case validates the behavior of constraint leveraged-authorization-has-authorized-users | ||
content: ../content/ssp-leveraged-authorization-has-authorized-users-INVALID.xml | ||
expectations: | ||
- constraint-id: leveraged-authorization-has-authorized-users | ||
result: fail |
9 changes: 9 additions & 0 deletions
9
...validations/constraints/unit-tests/leveraged-authorization-has-authorized-users-PASS.yaml
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,9 @@ | ||
test-case: | ||
name: Positive Test for leveraged-authorization-has-authorized-users | ||
description: >- | ||
This test case validates the behavior of constraint | ||
leveraged-authorization-has-authorized-users | ||
content: ../content/ssp-all-VALID.xml | ||
expectations: | ||
- constraint-id: leveraged-authorization-has-authorized-users | ||
result: pass |