-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
115 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
82 changes: 82 additions & 0 deletions
82
src/validations/constraints/content/ssp-component-has-authentication-method-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,82 @@ | ||
<?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> | ||
<component uuid="11111111-2222-4000-8000-009000100001" type="system"> | ||
<prop name="leveraged-authorization-uuid" value="11111111-2222-4000-8000-019000000001"/> | ||
<prop name="implementation-point" value="external"/> | ||
<prop ns="http://fedramp.gov/ns/oscal" name="nature-of-agreement" value="sla"/> | ||
<!-- <prop ns="http://fedramp.gov/ns/oscal" name="authentication-method" value="INVALID"> Missing authentication-method | ||
<remarks> | ||
<p>If 'yes', describe the authentication method.</p> | ||
<p>If 'no', explain why no authentication is used.</p> | ||
<p>If 'not-applicable', attest explain why authentication is not applicable in the remarks.</p> | ||
</remarks> | ||
</prop> --> | ||
</component> | ||
<component uuid="11111111-2222-4000-8000-009000500002" type="service"> | ||
<title>Service B</title> | ||
<description> | ||
<p>An non-authorized service provided by the Awesome Cloud leveraged authorization.</p> | ||
<p>Describe the service and what it is used for.</p> | ||
</description> | ||
<prop name="implementation-point" value="external"/> | ||
<prop name="direction" value="outgoing"/> | ||
<prop ns="http://fedramp.gov/ns/oscal" name="still-supported" value="yes"/> | ||
<!-- <prop ns="http://fedramp.gov/ns/oscal" name="authentication-method" value="INVALID"> Missing authentication-method | ||
<remarks> | ||
<p>If 'yes', describe the authentication method.</p> | ||
<p>If 'no', explain why no authentication is used.</p> | ||
<p>If 'not-applicable', attest explain why authentication is not applicable in the remarks.</p> | ||
</remarks> | ||
</prop> --> | ||
</component> | ||
<component uuid="11111111-2222-4000-8000-009000200001" type="interconnection"> | ||
<prop name="direction" value="incoming"/> | ||
<prop name="direction" value="outgoing"/> | ||
<prop ns="http://fedramp.gov/ns/oscal" name="nature-of-agreement" value="contract"/> | ||
<prop ns="http://fedramp.gov/ns/oscal" name="still-supported" value="yes"/> | ||
<!-- <prop ns="http://fedramp.gov/ns/oscal" name="authentication-method" value="INVALID"> Missing authentication-method | ||
<remarks> | ||
<p>If 'yes', describe the authentication method in the remarks.</p> | ||
<p>If 'no', explain why no authentication is used in the remarks.</p> | ||
<p>If 'not-applicable', attest explain why authentication is not applicable in the remarks.</p> | ||
</remarks> | ||
</prop> --> | ||
</component> | ||
<component uuid="11111111-2222-4000-8000-009000500004" type="service"> | ||
<title>Service C</title> | ||
<description> | ||
<p>A service provided by an external system other than the leveraged system.</p> | ||
<p>Describe the service and what it is used for.</p> | ||
</description> | ||
<prop name="implementation-point" value="internal"/> | ||
<prop name="direction" value="outgoing"/> | ||
<!-- <prop ns="http://fedramp.gov/ns/oscal" name="authentication-method" value="INVALID"> Missing authentication-method | ||
<remarks> | ||
<p>If 'yes', describe the authentication method in the remarks.</p> | ||
<p>If 'no', explain why no authentication is used in the remarks.</p> | ||
<p>If 'not-applicable', attest explain why authentication is not applicable in the remarks.</p> | ||
</remarks> | ||
</prop> --> | ||
</component> | ||
<component uuid="11111111-2222-4000-8000-009000300001" type="software"> | ||
<title>Management CLI</title> | ||
<description> | ||
<p>None</p> | ||
</description> | ||
<prop name="asset-type" value="cli"/> | ||
<prop name="implementation-point" value="internal"/> | ||
<prop name="direction" value="outgoing"/> | ||
<!-- <prop ns="http://fedramp.gov/ns/oscal" name="authentication-method" value="INVALID"> Missing authentication-method | ||
<remarks> | ||
<p>If 'yes', describe the authentication method in the remarks.</p> | ||
<p>If 'no', explain why no authentication is used in the remarks.</p> | ||
<p>If 'not-applicable', attest explain why authentication is not applicable in the remarks.</p> | ||
</remarks> | ||
</prop> --> | ||
</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
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/unit-tests/component-has-authentication-method-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,9 @@ | ||
test-case: | ||
name: Negative Test for component-has-authentication-method | ||
description: >- | ||
This test case validates the behavior of constraint | ||
component-has-authentication-method | ||
content: ../content/ssp-component-has-authentication-method-INVALID.xml | ||
expectations: | ||
- constraint-id: component-has-authentication-method | ||
result: fail |
9 changes: 9 additions & 0 deletions
9
src/validations/constraints/unit-tests/component-has-authentication-method-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 component-has-authentication-method | ||
description: >- | ||
This test case validates the behavior of constraint | ||
component-has-authentication-method | ||
content: ../content/ssp-all-VALID.xml | ||
expectations: | ||
- constraint-id: component-has-authentication-method | ||
result: pass |