From 9bcc47be16b31ee067343736187aada468fd25f7 Mon Sep 17 00:00:00 2001 From: Kylie Hunter Date: Mon, 25 Nov 2024 16:15:01 -0700 Subject: [PATCH] My progress so far-- constraint is likely done, test files still need work because I am still figuring out oscal syntax --- ...t-has-connection-security-prop-INVALID.xml | 22 +++++++++++++++++++ .../fedramp-external-constraints.xml | 5 +++++ ...ent-has-connection-security-prop-FAIL.yaml | 9 ++++++++ ...ent-has-connection-security-prop-PASS.yaml | 9 ++++++++ 4 files changed, 45 insertions(+) create mode 100644 src/validations/constraints/content/ssp-network-component-has-connection-security-prop-INVALID.xml create mode 100644 src/validations/constraints/unit-tests/network-component-has-connection-security-prop-FAIL.yaml create mode 100644 src/validations/constraints/unit-tests/network-component-has-connection-security-prop-PASS.yaml diff --git a/src/validations/constraints/content/ssp-network-component-has-connection-security-prop-INVALID.xml b/src/validations/constraints/content/ssp-network-component-has-connection-security-prop-INVALID.xml new file mode 100644 index 000000000..e0ab4ef61 --- /dev/null +++ b/src/validations/constraints/content/ssp-network-component-has-connection-security-prop-INVALID.xml @@ -0,0 +1,22 @@ + + + + External API Connection + +

Secure connection to an external API for data enrichment.

+
+ + + + + + 11111111-0000-4000-9000-000000000001 + + +

This connection is used for secure data exchange with external systems.

+
+
+ \ No newline at end of file diff --git a/src/validations/constraints/fedramp-external-constraints.xml b/src/validations/constraints/fedramp-external-constraints.xml index efdecb643..13babde08 100644 --- a/src/validations/constraints/fedramp-external-constraints.xml +++ b/src/validations/constraints/fedramp-external-constraints.xml @@ -542,6 +542,11 @@ Leveraged Authorization Has System Identifier A FedRAMP SSP MUST define exactly one system identifier for each leveraged authorization entry. + + + Network Component Has Connection Security Property + + All network components in a FedRAMP SSP system implementation MUST define at least one interconnection security property diff --git a/src/validations/constraints/unit-tests/network-component-has-connection-security-prop-FAIL.yaml b/src/validations/constraints/unit-tests/network-component-has-connection-security-prop-FAIL.yaml new file mode 100644 index 000000000..bfebea130 --- /dev/null +++ b/src/validations/constraints/unit-tests/network-component-has-connection-security-prop-FAIL.yaml @@ -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 diff --git a/src/validations/constraints/unit-tests/network-component-has-connection-security-prop-PASS.yaml b/src/validations/constraints/unit-tests/network-component-has-connection-security-prop-PASS.yaml new file mode 100644 index 000000000..b9987997d --- /dev/null +++ b/src/validations/constraints/unit-tests/network-component-has-connection-security-prop-PASS.yaml @@ -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