-
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 connection-security prop constraint for #931
- Loading branch information
1 parent
113c4f5
commit 72d26f5
Showing
6 changed files
with
54 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
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
25 changes: 25 additions & 0 deletions
25
...ations/constraints/content/ssp-network-component-has-connection-security-prop-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,25 @@ | ||
<?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="69988666-0000-4000-9000-000000100006" type="interconnection"> | ||
<title>External API Connection</title> | ||
<description> | ||
<p>Secure connection to an external API for data enrichment.</p> | ||
</description> | ||
<!--Error: connection-security property not defined for an interconnection component--> | ||
<!-- <prop name="connection-security" value="vpn" ns="https://fedramp.gov/ns/oscal"/> --> | ||
<prop name="direction" value="incoming" ns="https://fedramp.gov/ns/oscal"/> | ||
<status state="operational"/> | ||
<responsible-role role-id="system-admin"> | ||
<party-uuid>11111111-0000-4000-9000-000000000001</party-uuid> | ||
</responsible-role> | ||
<remarks> | ||
<p>This connection is used for secure data exchange with external systems.</p> | ||
</remarks> | ||
</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
...lidations/constraints/unit-tests/network-component-has-connection-security-prop-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 network-component-has-connection-security-prop | ||
description: >- | ||
This test case validates the behavior of constraint | ||
network-component-has-connection-security-prop | ||
content: ../content/ssp-network-component-has-connection-security-prop-INVALID.xml | ||
expectations: | ||
- constraint-id: network-component-has-connection-security-prop | ||
result: fail |
9 changes: 9 additions & 0 deletions
9
...lidations/constraints/unit-tests/network-component-has-connection-security-prop-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 network-component-has-connection-security-prop | ||
description: >- | ||
This test case validates the behavior of constraint | ||
network-component-has-connection-security-prop | ||
content: ../content/ssp-all-VALID.xml | ||
expectations: | ||
- constraint-id: network-component-has-connection-security-prop | ||
result: pass |