From d8267e344c4b75e14b6aca5fa763e177ec89ed3a Mon Sep 17 00:00:00 2001 From: DimitriZhurkin Date: Fri, 13 Dec 2024 08:39:27 -0700 Subject: [PATCH] Add inter-boundary-component-direction-incoming-has-ipv-uri constraint (#930) (#994) * Revise inter-boundary-component-has-direction constraint (#930) * replace http with https * apply comments * Add inter-boundary-component-direction-incoming-has-ipv-uri constraint --- features/fedramp_extensions.feature | 6 ++--- .../ssp/xml/fedramp-ssp-example.oscal.xml | 20 ++++++++++++++++ ...direction-incoming-has-ipv-uri-INVALID.xml | 23 +++++++++++++++++++ .../fedramp-external-constraints.xml | 5 ++++ ...t-direction-incoming-has-ipv-uri-FAIL.yaml | 8 +++++++ ...t-direction-incoming-has-ipv-uri-PASS.yaml | 8 +++++++ 6 files changed, 67 insertions(+), 3 deletions(-) create mode 100644 src/validations/constraints/content/ssp-inter-boundary-component-direction-incoming-has-ipv-uri-INVALID.xml create mode 100644 src/validations/constraints/unit-tests/inter-boundary-component-direction-incoming-has-ipv-uri-FAIL.yaml create mode 100644 src/validations/constraints/unit-tests/inter-boundary-component-direction-incoming-has-ipv-uri-PASS.yaml diff --git a/features/fedramp_extensions.feature b/features/fedramp_extensions.feature index b056baaed..0a7a115aa 100644 --- a/features/fedramp_extensions.feature +++ b/features/fedramp_extensions.feature @@ -92,7 +92,6 @@ Examples: | has-rules-of-behavior | | has-security-impact-level | | has-security-sensitivity-level | - | has-separation-of-duties-matrix | | has-system-id | | has-system-name-short | | has-user-guide | @@ -104,6 +103,7 @@ Examples: | information-type-has-confidentiality-impact | | information-type-has-integrity-impact | | information-type-system | + | inter-boundary-component-direction-incoming-has-ipv-uri | | inter-boundary-component-has-direction | | interconnection-direction | | interconnection-security | @@ -299,8 +299,6 @@ Examples: | has-security-impact-level-PASS.yaml | | has-security-sensitivity-level-FAIL.yaml | | has-security-sensitivity-level-PASS.yaml | - | has-separation-of-duties-matrix-FAIL.yaml | - | has-separation-of-duties-matrix-PASS.yaml | | has-system-id-FAIL.yaml | | has-system-id-PASS.yaml | | has-system-name-short-FAIL.yaml | @@ -323,6 +321,8 @@ Examples: | information-type-id-PASS.yaml | | information-type-system-FAIL.yaml | | information-type-system-PASS.yaml | + | inter-boundary-component-direction-incoming-has-ipv-uri-FAIL.yaml | + | inter-boundary-component-direction-incoming-has-ipv-uri-PASS.yaml | | inter-boundary-component-has-direction-FAIL.yaml | | inter-boundary-component-has-direction-PASS.yaml | | interconnection-direction-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 3486741d3..ffb073ec3 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 @@ -1196,6 +1196,12 @@ + + + + + + @@ -1781,6 +1787,14 @@ + + + + + + + + @@ -2192,6 +2206,12 @@

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

+ + + + + + diff --git a/src/validations/constraints/content/ssp-inter-boundary-component-direction-incoming-has-ipv-uri-INVALID.xml b/src/validations/constraints/content/ssp-inter-boundary-component-direction-incoming-has-ipv-uri-INVALID.xml new file mode 100644 index 000000000..adbd9b3ef --- /dev/null +++ b/src/validations/constraints/content/ssp-inter-boundary-component-direction-incoming-has-ipv-uri-INVALID.xml @@ -0,0 +1,23 @@ + + + + + + + Communication Service System + +

A network communication service system.

+
+ + + + + +
+ +
+ +
\ 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 105ff9006..918eab463 100644 --- a/src/validations/constraints/fedramp-external-constraints.xml +++ b/src/validations/constraints/fedramp-external-constraints.xml @@ -527,6 +527,11 @@ A FedRAMP SSP system implementation section MUST have at least two inventory items. + + Inter-Boundary Incoming Communication Direction Has an IPV Address or a URI + + Component {@uuid} ({path(.)}) MUST have at least one local ipv4 address, ipv6 address, or a URI to an API. + Inter-Boundary Component Has Direction diff --git a/src/validations/constraints/unit-tests/inter-boundary-component-direction-incoming-has-ipv-uri-FAIL.yaml b/src/validations/constraints/unit-tests/inter-boundary-component-direction-incoming-has-ipv-uri-FAIL.yaml new file mode 100644 index 000000000..f74dc0df8 --- /dev/null +++ b/src/validations/constraints/unit-tests/inter-boundary-component-direction-incoming-has-ipv-uri-FAIL.yaml @@ -0,0 +1,8 @@ +# Driver for the invalid inter-boundary-component-direction-incoming-has-ipv-uri constraint unit test. +test-case: + name: The invalid inter-boundary-component-direction-incoming-has-ipv-uri constraint unit test. + description: Test that the FedRAMP SSP inter-boundary incoming communication component does not have a local ipv4 address, ipv6 address, or a URI to an API. + content: ../content/ssp-inter-boundary-component-direction-incoming-has-ipv-uri-INVALID.xml + expectations: + - constraint-id: inter-boundary-component-direction-incoming-has-ipv-uri + result: fail \ No newline at end of file diff --git a/src/validations/constraints/unit-tests/inter-boundary-component-direction-incoming-has-ipv-uri-PASS.yaml b/src/validations/constraints/unit-tests/inter-boundary-component-direction-incoming-has-ipv-uri-PASS.yaml new file mode 100644 index 000000000..9c4fead39 --- /dev/null +++ b/src/validations/constraints/unit-tests/inter-boundary-component-direction-incoming-has-ipv-uri-PASS.yaml @@ -0,0 +1,8 @@ +# Driver for the valid inter-boundary-component-direction-incoming-has-ipv-uri constraint unit test. +test-case: + name: The valid inter-boundary-component-direction-incoming-has-ipv-uri constraint unit test. + description: Test that the FedRAMP SSP inter-boundary incoming communication component has at least one local ipv4 address, ipv6 address, or a URI to an API. + content: ../../../content/rev5/examples/ssp/xml/fedramp-ssp-example.oscal.xml + expectations: + - constraint-id: inter-boundary-component-direction-incoming-has-ipv-uri + result: pass \ No newline at end of file