Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add connection-security constraint (issue #961) #1021

Merged
merged 3 commits into from
Jan 3, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add connection-security constraint (issue #961)
  • Loading branch information
DimitriZhurkin authored and U-INNOVATE\M34255 committed Jan 2, 2025
commit 20a41a7915fc1ceba0a5d63ae367c52e4d555a9a
3 changes: 3 additions & 0 deletions features/fedramp_extensions.feature
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Examples:
| component-has-provider-responsible-role |
| component-has-used-by-link |
| component-type |
| connection-security |
| control-implementation-status |
| data-center-alternate |
| data-center-count |
Expand Down Expand Up @@ -211,6 +212,8 @@ Examples:
| component-responsible-role-references-party-PASS.yaml |
| component-type-FAIL.yaml |
| component-type-PASS.yaml |
| connection-security-FAIL.yaml |
| connection-security-PASS.yaml |
| control-implementation-status-FAIL.yaml |
| control-implementation-status-PASS.yaml |
| data-center-alternate-FAIL.yaml |
Expand Down
18 changes: 18 additions & 0 deletions src/validations/constraints/fedramp-external-allowed-values.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,24 @@
<enum value="network">A physical or virtual network.</enum>
</allowed-values>

<allowed-values id="connection-security" target="system-implementation/component/prop[@name='connection-security' and @ns='https://fedramp.gov/ns/oscal']/@value" allow-other="yes" level="WARNING">
DimitriZhurkin marked this conversation as resolved.
Show resolved Hide resolved
<formal-name>Connection Security</formal-name>
<description>Identifies connection security value.</description>
DimitriZhurkin marked this conversation as resolved.
Show resolved Hide resolved
<enum value="ipsec-ikev1">Internet Protocol Security (IPSec) Internet Key Exchange (IKE) Version 1</enum>
<enum value="ipsec-ikev2">Internet Protocol Security (IPSec) Internet Key Exchange (IKE) Version 2</enum>
<enum value="ipsec">Internet Protocol Security (IPSec)</enum>
<enum value="ssh-1">Secure Shell 1 (SSH-1)</enum>
<enum value="ssh-2">Secure Shell 2 (SSH-2)</enum>
<enum value="ssl-1.0">Secure Sockets Layer (SSL) 1.0</enum>
<enum value="ssl-2.0">Secure Sockets Layer (SSL) 2.0</enum>
<enum value="ssl-3.0">Secure Sockets Layer (SSL) 3.0</enum>
<enum value="tls-1.0">Transport Layer Security (TLS) Version 1.0</enum>
<enum value="tls-1.1">Transport Layer Security (TLS) Version 1.1</enum>
<enum value="tls-1.2">Transport Layer Security (TLS) Version 1.2</enum>
<enum value="tls-1.3">Transport Layer Security (TLS) Version 1.3</enum>
<enum value="vpn">Virtual Private Network (VPN)</enum>
</allowed-values>

<allowed-values id="control-implementation-status" target="control-implementation/implemented-requirement/statement/by-component/prop[@name='implementation-status']/@value" allow-other="no" level="ERROR">
<formal-name>Control Implementation Status</formal-name>
<description>The implementation status of the control.</description>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Driver for the negative connection-security constraint unit test.
test-case:
name: The negative connection-security constraint unit test.
description: This test case suppresses the negative test for the connection-security "allowed-values" constraint because of its @allow-other="yes" attribute value.
content: ../../../content/rev5/examples/ssp/xml/fedramp-ssp-example.oscal.xml
expectations:
- constraint-id: connection-security
fail_count: 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Driver for the positive connection-security constraint unit test.
test-case:
name: The positive connection-security constraint unit test.
description: Test that the FedRAMP SSP connection-security properties contain FedRAMP-approved values.
content: ../../../content/rev5/examples/ssp/xml/fedramp-ssp-example.oscal.xml
expectations:
- constraint-id: connection-security
result: pass