Skip to content

Commit

Permalink
Add connection-security constraint (issue #961) (#1021)
Browse files Browse the repository at this point in the history
* Add connection-security constraint (issue #961)

* change fedramp ns to http

* Add help-url
  • Loading branch information
DimitriZhurkin authored Jan 3, 2025
1 parent 1648871 commit d8a9ec9
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
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 @@ -214,6 +215,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
19 changes: 19 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,25 @@
<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='http://fedramp.gov/ns/oscal']/@value" allow-other="yes" level="WARNING">
<formal-name>Connection Security</formal-name>
<description>Identifies connection security value.</description>
<prop namespace="https://docs.oasis-open.org/sarif/sarif/v2.1.0" name="help-url" value="https://automate.fedramp.gov/documentation/ssp/4-ssp-template-to-oscal-mapping/#external-systems-and-services-not-having-fedramp-authorization"/>
<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

0 comments on commit d8a9ec9

Please sign in to comment.