From 016cf8259fb044069f0c4aea81caf6ef511cc74b Mon Sep 17 00:00:00 2001 From: Gabeblis Date: Thu, 16 Jan 2025 03:57:30 +0000 Subject: [PATCH] Add the interconnection-component-linked-has-protocol constraint --- features/fedramp_extensions.feature | 3 ++ .../ssp/xml/fedramp-ssp-example.oscal.xml | 48 +++++++++++++++++++ ...-component-linked-has-protocol-INVALID.xml | 14 ++++++ .../fedramp-external-constraints.xml | 12 +++++ ...on-component-linked-has-protocol-FAIL.yaml | 8 ++++ ...on-component-linked-has-protocol-PASS.yaml | 8 ++++ 6 files changed, 93 insertions(+) create mode 100644 src/validations/constraints/content/ssp-interconnection-component-linked-has-protocol-INVALID.xml create mode 100644 src/validations/constraints/unit-tests/interconnection-component-linked-has-protocol-FAIL.yaml create mode 100644 src/validations/constraints/unit-tests/interconnection-component-linked-has-protocol-PASS.yaml diff --git a/features/fedramp_extensions.feature b/features/fedramp_extensions.feature index a0622b610..305e46104 100644 --- a/features/fedramp_extensions.feature +++ b/features/fedramp_extensions.feature @@ -121,6 +121,7 @@ Examples: | information-type-has-integrity-impact | | information-type-system | | inter-boundary-component-has-information-type | + | interconnection-component-linked-has-protocol | | interconnection-direction | | interconnection-security | | inventory-item-allows-authenticated-scan | @@ -387,6 +388,8 @@ Examples: | information-type-system-PASS.yaml | | inter-boundary-component-has-information-type-FAIL.yaml | | inter-boundary-component-has-information-type-PASS.yaml | + | interconnection-component-linked-has-protocol-FAIL.yaml | + | interconnection-component-linked-has-protocol-PASS.yaml | | interconnection-direction-FAIL.yaml | | interconnection-direction-PASS.yaml | | interconnection-security-FAIL.yaml | diff --git a/src/content/rev5/examples/ssp/xml/fedramp-ssp-example.oscal.xml b/src/content/rev5/examples/ssp/xml/fedramp-ssp-example.oscal.xml index 00dc94a05..66d8db709 100644 --- a/src/content/rev5/examples/ssp/xml/fedramp-ssp-example.oscal.xml +++ b/src/content/rev5/examples/ssp/xml/fedramp-ssp-example.oscal.xml @@ -2319,6 +2319,54 @@ approved.

+ + Authorized Connection Information System Name + +

Describe the purpose of the external system or service.

+
+ + + +

If 'yes', describe the authentication method in the remarks.

+

If 'no', explain why no authentication is used in the remarks.

+

If 'not-applicable', attest explain why authentication is not applicable in the remarks.

+
+
+ + + + + + + + + + UUID of remote system + + + UUID of remote system + + + UUID of remote system + + + + 44444444-2222-4000-8000-004000000001 + + + 11111111-2222-4000-8000-004000000008 + + + 11111111-2222-4000-8000-004000000008 + + + + 11111111-2222-4000-8000-004000000010 + 11111111-2222-4000-8000-004000000011 + 11111111-2222-4000-8000-004000000012 + +
+ diff --git a/src/validations/constraints/content/ssp-interconnection-component-linked-has-protocol-INVALID.xml b/src/validations/constraints/content/ssp-interconnection-component-linked-has-protocol-INVALID.xml new file mode 100644 index 000000000..ee440c824 --- /dev/null +++ b/src/validations/constraints/content/ssp-interconnection-component-linked-has-protocol-INVALID.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + \ 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 3b5cb2d20..610bb4040 100644 --- a/src/validations/constraints/fedramp-external-constraints.xml +++ b/src/validations/constraints/fedramp-external-constraints.xml @@ -675,6 +675,18 @@ + + + + + + Linked Interconnection Component Has Protocol + + In a FedRAMP SSP, at least one of the interconnection "used-by" linked components MUST have at least one protocol assembly. + + + + diff --git a/src/validations/constraints/unit-tests/interconnection-component-linked-has-protocol-FAIL.yaml b/src/validations/constraints/unit-tests/interconnection-component-linked-has-protocol-FAIL.yaml new file mode 100644 index 000000000..486bafceb --- /dev/null +++ b/src/validations/constraints/unit-tests/interconnection-component-linked-has-protocol-FAIL.yaml @@ -0,0 +1,8 @@ +# Driver for the invalid interconnection-component-linked-has-protocol constraint unit test. +test-case: + name: The invalid interconnection-component-linked-has-protocol constraint unit test. + description: Test that the FedRAMP SSP interconnection "used-by" linked component does not have a protocol assembly. + content: ../content/ssp-interconnection-component-linked-has-protocol-INVALID.xml + expectations: + - constraint-id: interconnection-component-linked-has-protocol + result: fail \ No newline at end of file diff --git a/src/validations/constraints/unit-tests/interconnection-component-linked-has-protocol-PASS.yaml b/src/validations/constraints/unit-tests/interconnection-component-linked-has-protocol-PASS.yaml new file mode 100644 index 000000000..486e1de1a --- /dev/null +++ b/src/validations/constraints/unit-tests/interconnection-component-linked-has-protocol-PASS.yaml @@ -0,0 +1,8 @@ +# Driver for the valid interconnection-component-linked-has-protocol constraint unit test. +test-case: + name: The valid interconnection-component-linked-has-protocol constraint unit test. + description: Test that the FedRAMP SSP interconnection "used-by" linked component has a protocol assembly. + content: ../../../content/rev5/examples/ssp/xml/fedramp-ssp-example.oscal.xml + expectations: + - constraint-id: interconnection-component-linked-has-protocol + result: pass \ No newline at end of file