From 924f7d2f577b3385471df40a4e41d7325156bf9e Mon Sep 17 00:00:00 2001 From: DimitriZhurkin Date: Thu, 9 Jan 2025 11:38:47 -0700 Subject: [PATCH] [DONOTMERGE] Add the interconnection-component-has-local-protocol constraint --- features/fedramp_extensions.feature | 3 ++ .../ssp/xml/fedramp-ssp-example.oscal.xml | 44 +++++++++++++++++ ...n-component-has-local-protocol-INVALID.xml | 48 +++++++++++++++++++ .../fedramp-external-constraints.xml | 5 ++ ...ion-component-has-local-protocol-FAIL.yaml | 8 ++++ ...ion-component-has-local-protocol-PASS.yaml | 8 ++++ 6 files changed, 116 insertions(+) create mode 100644 src/validations/constraints/content/ssp-interconnection-component-has-local-protocol-INVALID.xml create mode 100644 src/validations/constraints/unit-tests/interconnection-component-has-local-protocol-FAIL.yaml create mode 100644 src/validations/constraints/unit-tests/interconnection-component-has-local-protocol-PASS.yaml diff --git a/features/fedramp_extensions.feature b/features/fedramp_extensions.feature index 9305b7aaf..9363d5ce4 100644 --- a/features/fedramp_extensions.feature +++ b/features/fedramp_extensions.feature @@ -120,6 +120,7 @@ Examples: | information-type-has-integrity-impact | | information-type-system | | inter-boundary-component-has-information-type | + | interconnection-component-has-local-protocol | | interconnection-direction | | interconnection-security | | inventory-item-allows-authenticated-scan | @@ -382,6 +383,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-has-local-protocol-FAIL.yaml | + | interconnection-component-has-local-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 f1b3b3ce6..b4220f49c 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 @@ -2305,6 +2305,50 @@ approved.

+ + Authorized Connection Information System Name + +

Describe the purpose of the external system/service; specifically, provide reasons for connectivity (e.g., system monitoring, system alerting, download updates, etc.)

+
+ + + +

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.

+
+
+ + + + + + + + + + + + + + + 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-has-local-protocol-INVALID.xml b/src/validations/constraints/content/ssp-interconnection-component-has-local-protocol-INVALID.xml new file mode 100644 index 000000000..88916918f --- /dev/null +++ b/src/validations/constraints/content/ssp-interconnection-component-has-local-protocol-INVALID.xml @@ -0,0 +1,48 @@ + + + + + + Authorized Connection Information System Name + +

Describe the purpose of the external system/service; specifically, provide reasons for connectivity (e.g., system monitoring, system alerting, download updates, etc.)

+
+ + + +

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.

+
+
+ + + + + + + + + + + + + 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 + +
+
+
\ 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 116c62800..adfd680cd 100644 --- a/src/validations/constraints/fedramp-external-constraints.xml +++ b/src/validations/constraints/fedramp-external-constraints.xml @@ -616,6 +616,11 @@ An inter-boundary communication component {@uuid} ({path(.)}) MUST have at least one information-type property. + + Interconnection Component Has Local Protocols + + In a FedRAMP SSP, an interconnection component MUST have at least one local IPv4 Address, IPv6 Address, URI, or FQDN. + Inventory Item and Component Has Public diff --git a/src/validations/constraints/unit-tests/interconnection-component-has-local-protocol-FAIL.yaml b/src/validations/constraints/unit-tests/interconnection-component-has-local-protocol-FAIL.yaml new file mode 100644 index 000000000..cef810e15 --- /dev/null +++ b/src/validations/constraints/unit-tests/interconnection-component-has-local-protocol-FAIL.yaml @@ -0,0 +1,8 @@ +# Driver for the invalid interconnection-component-has-local-protocol constraint unit test. +test-case: + name: The invalid interconnection-component-has-local-protocol constraint unit test. + description: Test that the FedRAMP SSP interconnection component does not have local IPv4 Address, IPv6 Address, URI, or FQDN. + content: ../content/ssp-interconnection-component-has-local-protocol-INVALID.xml + expectations: + - constraint-id: interconnection-component-has-local-protocol + result: fail \ No newline at end of file diff --git a/src/validations/constraints/unit-tests/interconnection-component-has-local-protocol-PASS.yaml b/src/validations/constraints/unit-tests/interconnection-component-has-local-protocol-PASS.yaml new file mode 100644 index 000000000..5e4a05a77 --- /dev/null +++ b/src/validations/constraints/unit-tests/interconnection-component-has-local-protocol-PASS.yaml @@ -0,0 +1,8 @@ +# Driver for the valid interconnection-component-has-local-protocol constraint unit test. +test-case: + name: The valid interconnection-component-has-local-protocol constraint unit test. + description: Test that the FedRAMP SSP interconnection component has at least one local IPv4 Address, IPv6 Address, URI, or FQDN. + content: ../../../content/rev5/examples/ssp/xml/fedramp-ssp-example.oscal.xml + expectations: + - constraint-id: interconnection-component-has-local-protocol + result: pass \ No newline at end of file