Skip to content

Commit

Permalink
Update Data Centers documentation (#96)
Browse files Browse the repository at this point in the history
* Update data-center documentation

* change for clarity
  • Loading branch information
Gabeblis authored and aj-stein-gsa committed Nov 12, 2024
1 parent f652fd7 commit 2b5f945
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions content/documentation/ssp/4-ssp-template-to-oscal-mapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ If SSP authors include these optional roles in the SSP, they should give conside

## Data Centers

Each system must define at least two data centers. There must be exactly one primary data center, and there must be at least one alternate data center. Additionally, the country specified in the data center's address must be the United States. It must be in [ISO 3166 Alpha-2 format](https://pages.nist.gov/OSCAL-Reference/models/v1.1.2/system-security-plan/xml-reference/#/system-security-plan/metadata/location/address/country) two-letter country code format (i.e., "US" in all upper case).
Each system must define at least two data centers. There must be exactly one primary data center, and there must be at least one alternate data center. Additionally, the country specified in a data center's address must be the United States. It must be in [ISO 3166 Alpha-2 format](https://pages.nist.gov/OSCAL-Reference/models/v1.1.2/system-security-plan/xml-reference/#/system-security-plan/metadata/location/address/country) two-letter country code format (i.e., "US" in all upper case).

#### OSCAL Representation
{{< highlight xml "linenos=table" >}}
Expand All @@ -689,7 +689,7 @@ Each system must define at least two data centers. There must be exactly one pri
<postal-code>00000</postal-code>
<country>US</country>
</address>
<prop name="data-center" value="some-location-value" class="primary"/>
<prop name="type" class="primary" value="data-center"/>
</location>
<location uuid="uuid-of-alternate-data-center">
<title>Secondary Data Center</title>
Expand All @@ -700,7 +700,7 @@ Each system must define at least two data centers. There must be exactly one pri
<postal-code>00000</postal-code>
<country>US</country>
</address>
<prop name="data-center" value="some-location-value" class="alternate"/>
<prop name="type" class="alternate" value="data-center"/>
</location>
<!-- party -->
</metadata>
Expand All @@ -709,13 +709,13 @@ Each system must define at least two data centers. There must be exactly one pri
#### XPath Queries
{{< highlight xml "linenos=table" >}}
Number of Data Centers:
count(/*/metadata/location[prop[@name eq 'data-center']]) > 1
count(/*/metadata/location[prop[@value eq 'data-center']]) > 1
Number of Primary Data Centers:
count(/*/metadata/location/prop[@name eq 'data-center'][@class eq 'primary']) = 1
count(/*/metadata/location/prop[@value eq 'data-center'][@class eq 'primary']) = 1
Number of Alternate Data Centers:
count(/*/metadata/location/prop[@name eq 'data-center'][@class eq 'alternate']) > 0
count(/*/metadata/location/prop[@value eq 'data-center'][@class eq 'alternate']) > 0
Data Center Country:
/*/metadata/location[prop[@name eq 'data-center']]/address/country eq 'US'
/*/metadata/location[prop[@value eq 'data-center']]/address/country eq 'US'
{{</ highlight >}}

---
Expand Down

0 comments on commit 2b5f945

Please sign in to comment.