-
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
component-has-authentication-method
Constraint (#927)
* add constraint and tests * trim test data * add constraint and tests * trim test data * fix test data * change 'http' to 'https' * Remove extra word * Edit message --------- Co-authored-by: ~ . ~ <[email protected]>
- Loading branch information
Showing
7 changed files
with
98 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
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
68 changes: 68 additions & 0 deletions
68
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,68 @@ | ||
<?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="https://fedramp.gov/ns/oscal" name="nature-of-agreement" value="sla"/> | ||
<!-- <prop ns="https://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', explain why authentication is not applicable in the remarks.</p> | ||
</remarks> | ||
</prop> --> | ||
</component> | ||
<component uuid="11111111-2222-4000-8000-009000500002" type="service"> | ||
<prop name="implementation-point" value="external"/> | ||
<prop name="direction" value="outgoing"/> | ||
<prop ns="https://fedramp.gov/ns/oscal" name="still-supported" value="yes"/> | ||
<!-- <prop ns="https://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', 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="https://fedramp.gov/ns/oscal" name="nature-of-agreement" value="contract"/> | ||
<prop ns="https://fedramp.gov/ns/oscal" name="still-supported" value="yes"/> | ||
<!-- <prop ns="https://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', explain why authentication is not applicable in the remarks.</p> | ||
</remarks> | ||
</prop> --> | ||
</component> | ||
<component uuid="11111111-2222-4000-8000-009000500004" type="service"> | ||
<prop name="implementation-point" value="internal"/> | ||
<prop name="direction" value="outgoing"/> | ||
<!-- <prop ns="https://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', explain why authentication is not applicable in the remarks.</p> | ||
</remarks> | ||
</prop> --> | ||
</component> | ||
<component uuid="11111111-2222-4000-8000-009000300001" type="software"> | ||
<prop name="asset-type" value="cli"/> | ||
<prop name="implementation-point" value="internal"/> | ||
<prop name="direction" value="outgoing"/> | ||
<!-- <prop ns="https://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', 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 |