Skip to content

Commit 0baa31c

Browse files
authored
Merge pull request #97 from romanojd/working
Align Results to new Language Spec structure
2 parents f48509a + 77ac4d3 commit 0baa31c

File tree

2 files changed

+64
-76
lines changed

2 files changed

+64
-76
lines changed

oc2slpf.html

Lines changed: 41 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ <h1 id="table-of-contents">Table of Contents</h1>
176176
<ul>
177177
<li><a href="#221-common-results">2.2.1 Common Results</a></li>
178178
<li><a href="#222-slpf-results">2.2.2 SLPF Results</a></li>
179+
<li><a href="#223-response-status-codes">2.2.3 Response Status Codes</a></li>
179180
</ul></li>
180181
<li><a href="#23-openc2-commands">2.3 OpenC2 Commands</a>
181182
<ul>
@@ -806,66 +807,75 @@ <h2 id="22-openc2-response-components">2.2 OpenC2 Response Components</h2>
806807
<p>Response messages originate from the Actuator as a result of a Command.</p>
807808
<p>Responses associated with required Actions MUST be implemented. Implementations that include optional Actions MUST implement the RESPONSE associated with the implemented Action. Additional details regarding the Command and associated Response are captured in <a href="#23-openc2-commands">Section 2.3</a>. Examples are provided in <a href="#annex-a-sample-commands">Annex A</a>.</p>
808809
<h3 id="221-common-results">2.2.1 Common Results</h3>
809-
<p>Table 2.2.1-1 lists the Response properties defined in the <a href="#openc2-lang-v10">[OpenC2-Lang-v1.0]</a> that are applicable to SLPF.</p>
810-
<p><strong>Table 2.2.1-1. Results Applicable to SLPF</strong></p>
811-
<p><strong><em>Type: OpenC2-Response (Map)</em></strong></p>
810+
<p>Table 2.2.1-1 lists the Response Results properties defined in the <a href="#openc2-lang-v10">[OpenC2-Lang-v1.0]</a> that are applicable to SLPF.</p>
811+
<p><strong>Table 2.2.1-1. Response Results Applicable to SLPF</strong></p>
812+
<p><strong><em>Type: Results (Map [1..*])</em></strong></p>
812813
<table>
813814
<thead>
814815
<tr class="header">
815-
<th style="text-align: left;">ID</th>
816+
<th style="text-align: right;">ID</th>
816817
<th style="text-align: left;">Name</th>
817818
<th style="text-align: left;">Type</th>
818-
<th style="text-align: left;">#</th>
819+
<th style="text-align: right;">#</th>
819820
<th style="text-align: left;">Description</th>
820821
</tr>
821822
</thead>
822823
<tbody>
823824
<tr class="odd">
824-
<td style="text-align: left;">1</td>
825-
<td style="text-align: left;"><strong>status</strong></td>
826-
<td style="text-align: left;">Status-Code</td>
827-
<td style="text-align: left;">0..1</td>
828-
<td style="text-align: left;">An integer status code</td>
829-
</tr>
830-
<tr class="even">
831-
<td style="text-align: left;">2</td>
832-
<td style="text-align: left;"><strong>status_text</strong></td>
833-
<td style="text-align: left;">String</td>
834-
<td style="text-align: left;">0..1</td>
835-
<td style="text-align: left;">A free-form human-readable description of the Response status</td>
836-
</tr>
837-
<tr class="odd">
838-
<td style="text-align: left;">6</td>
825+
<td style="text-align: right;">1</td>
839826
<td style="text-align: left;"><strong>versions</strong></td>
840827
<td style="text-align: left;">Version</td>
841-
<td style="text-align: left;">0..n</td>
828+
<td style="text-align: right;">0..*</td>
842829
<td style="text-align: left;">List of OpenC2 language versions supported by this Actuator</td>
843830
</tr>
844831
<tr class="even">
845-
<td style="text-align: left;">7</td>
832+
<td style="text-align: right;">2</td>
846833
<td style="text-align: left;"><strong>profiles</strong></td>
847-
<td style="text-align: left;">Uname</td>
848-
<td style="text-align: left;">0..n</td>
834+
<td style="text-align: left;">ArrayOf(Nsid)</td>
835+
<td style="text-align: right;">0..1</td>
849836
<td style="text-align: left;">List of profiles supported by this Actuator</td>
850837
</tr>
851838
<tr class="odd">
852-
<td style="text-align: left;">8</td>
839+
<td style="text-align: right;">3</td>
853840
<td style="text-align: left;"><strong>pairs</strong></td>
854841
<td style="text-align: left;">Action-Targets</td>
855-
<td style="text-align: left;">0..n</td>
856-
<td style="text-align: left;">List of Targets applicable to each supported Action</td>
842+
<td style="text-align: right;">0..*</td>
843+
<td style="text-align: left;">List of targets applicable to each supported Action</td>
857844
</tr>
858845
<tr class="even">
859-
<td style="text-align: left;">9</td>
846+
<td style="text-align: right;">4</td>
860847
<td style="text-align: left;"><strong>rate_limit</strong></td>
861848
<td style="text-align: left;">Number</td>
862-
<td style="text-align: left;">0..1</td>
849+
<td style="text-align: right;">0..1</td>
863850
<td style="text-align: left;">Maximum number of requests per minute supported by design or policy</td>
864851
</tr>
865852
</tbody>
866853
</table>
867-
<p>Table 2.2.1-2 lists the Status Codes defined in the OpenC2 Language Specification that are applicable to SLPF.</p>
868-
<p><strong>Table 2.2.1-2. Status Codes</strong></p>
854+
<h3 id="222-slpf-results">2.2.2 SLPF Results</h3>
855+
<p>The list of common Response properties is extended to include the additional Response properties defined in this section and referenced with the slpf namespace.</p>
856+
<p><strong>Table 2.2.2-1. SLPF Results</strong></p>
857+
<p><strong><em>Type: OpenC2-Response (Map)</em></strong></p>
858+
<table>
859+
<thead>
860+
<tr class="header">
861+
<th style="text-align: left;">ID</th>
862+
<th style="text-align: left;">Name</th>
863+
<th style="text-align: left;">Type</th>
864+
<th style="text-align: left;">Description</th>
865+
</tr>
866+
</thead>
867+
<tbody>
868+
<tr class="odd">
869+
<td style="text-align: left;">1024</td>
870+
<td style="text-align: left;"><strong>rule_number</strong></td>
871+
<td style="text-align: left;">Rule-ID</td>
872+
<td style="text-align: left;">Rule identifier returned from allow or deny Command</td>
873+
</tr>
874+
</tbody>
875+
</table>
876+
<h3 id="223-response-status-codes">2.2.3 Response Status Codes</h3>
877+
<p>Table 2.2.1-2 lists the Response Status Codes defined in the OpenC2 Language Specification that are applicable to SLPF.</p>
878+
<p><strong>Table 2.2.1-2. Response Status Codes</strong></p>
869879
<p><strong><em>Type: Status-Code (Enumerated.ID)</em></strong></p>
870880
<table>
871881
<thead>
@@ -897,28 +907,6 @@ <h3 id="221-common-results">2.2.1 Common Results</h3>
897907
</tr>
898908
</tbody>
899909
</table>
900-
<h3 id="222-slpf-results">2.2.2 SLPF Results</h3>
901-
<p>The list of common Response properties is extended to include the additional Response properties defined in this section and referenced with the slpf namespace.</p>
902-
<p><strong>Table 2.2.2-1. SLPF Results</strong></p>
903-
<p><strong><em>Type: OpenC2-Response (Map)</em></strong></p>
904-
<table>
905-
<thead>
906-
<tr class="header">
907-
<th style="text-align: left;">ID</th>
908-
<th style="text-align: left;">Name</th>
909-
<th style="text-align: left;">Type</th>
910-
<th style="text-align: left;">Description</th>
911-
</tr>
912-
</thead>
913-
<tbody>
914-
<tr class="odd">
915-
<td style="text-align: left;">1024</td>
916-
<td style="text-align: left;"><strong>rule_number</strong></td>
917-
<td style="text-align: left;">Rule-ID</td>
918-
<td style="text-align: left;">Rule identifier returned from allow or deny Command</td>
919-
</tr>
920-
</tbody>
921-
</table>
922910
<h2 id="23-openc2-commands">2.3 OpenC2 Commands</h2>
923911
<p>An OpenC2 Command consists of an Action/Target pair and associated Specifiers and Arguments. This section enumerates the allowed Commands and presents the associated Responses.</p>
924912
<p>Table 2.3-1 defines the Commands that are valid in the context of the SLPF profile. An Action (the top row in Table 2.3-1) paired with a Target (the first column in Table 2.3-1) defines a valid Command. The subsequent subsections provide the property tables applicable to each OpenC2 Command.</p>

oc2slpf.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ The name "OASIS" is a trademark of [OASIS](https://www.oasis-open.org/), the own
9696
- [2.2 OpenC2 Response Components](#22-openc2-response-components)
9797
- [2.2.1 Common Results](#221-common-results)
9898
- [2.2.2 SLPF Results](#222-slpf-results)
99+
- [2.2.3 Response Status Codes](#223-response-status-codes)
99100
- [2.3 OpenC2 Commands](#23-openc2-commands)
100101
- [2.3.1 Allow](#231-allow)
101102
- [2.3.2 Deny](#232-deny)
@@ -544,24 +545,34 @@ Response messages originate from the Actuator as a result of a Command.
544545
Responses associated with required Actions MUST be implemented. Implementations that include optional Actions MUST implement the RESPONSE associated with the implemented Action. Additional details regarding the Command and associated Response are captured in [Section 2.3](#23-openc2-commands). Examples are provided in [Annex A](#annex-a-sample-commands).
545546

546547
### 2.2.1 Common Results
547-
Table 2.2.1-1 lists the Response properties defined in the [[OpenC2-Lang-v1.0]](#openc2-lang-v10) that are applicable to SLPF.
548+
Table 2.2.1-1 lists the Response Results properties defined in the [[OpenC2-Lang-v1.0]](#openc2-lang-v10) that are applicable to SLPF.
548549

549-
**Table 2.2.1-1. Results Applicable to SLPF**
550+
**Table 2.2.1-1. Response Results Applicable to SLPF**
550551

551-
**_Type: OpenC2-Response (Map)_**
552+
**_Type: Results (Map [1..*])_**
552553

553554
| ID | Name | Type | # | Description |
554-
| :--- | :--- | :--- | :--- | :--- |
555-
| 1 | **status** | Status-Code | 0..1 | An integer status code |
556-
| 2 | **status_text** | String | 0..1 | A free-form human-readable description of the Response status |
557-
| 6 | **versions** | Version | 0..n | List of OpenC2 language versions supported by this Actuator |
558-
| 7 | **profiles** |Uname | 0..n | List of profiles supported by this Actuator |
559-
| 8 | **pairs** | Action-Targets | 0..n | List of Targets applicable to each supported Action |
560-
| 9 | **rate_limit** | Number | 0..1 | Maximum number of requests per minute supported by design or policy |
555+
| ---: | :--- | :--- | ---: | :--- |
556+
| 1 | **versions** | Version | 0..* | List of OpenC2 language versions supported by this Actuator |
557+
| 2 | **profiles** | ArrayOf(Nsid) | 0..1 | List of profiles supported by this Actuator |
558+
| 3 | **pairs** | Action-Targets | 0..* | List of targets applicable to each supported Action |
559+
| 4 | **rate_limit** | Number | 0..1 | Maximum number of requests per minute supported by design or policy |
560+
561+
### 2.2.2 SLPF Results
562+
The list of common Response properties is extended to include the additional Response properties defined in this section and referenced with the slpf namespace.
563+
564+
**Table 2.2.2-1. SLPF Results**
565+
566+
**_Type: OpenC2-Response (Map)_**
567+
568+
| ID | Name | Type | Description |
569+
| :--- | :--- | :--- | :--- |
570+
| 1024 | **rule_number** | Rule-ID | Rule identifier returned from allow or deny Command |
561571

562-
Table 2.2.1-2 lists the Status Codes defined in the OpenC2 Language Specification that are applicable to SLPF.
572+
### 2.2.3 Response Status Codes
573+
Table 2.2.1-2 lists the Response Status Codes defined in the OpenC2 Language Specification that are applicable to SLPF.
563574

564-
**Table 2.2.1-2. Status Codes**
575+
**Table 2.2.1-2. Response Status Codes**
565576

566577
**_Type: Status-Code (Enumerated.ID)_**
567578

@@ -573,17 +584,6 @@ Table 2.2.1-2 lists the Status Codes defined in the OpenC2 Language Specificatio
573584
| 500 | Internal Error. For Response type complete, one of the following MAY apply:<br> * Cannot access file or path<br> * Rule number currently in use<br> * Rule not updated |
574585
| 501 | Not implemented. For Response type complete, one of the following MAY apply:<br> * Target not supported<br> * Option not supported<br> * Command not supported |
575586

576-
### 2.2.2 SLPF Results
577-
The list of common Response properties is extended to include the additional Response properties defined in this section and referenced with the slpf namespace.
578-
579-
**Table 2.2.2-1. SLPF Results**
580-
581-
**_Type: OpenC2-Response (Map)_**
582-
583-
| ID | Name | Type | Description |
584-
| :--- | :--- | :--- | :--- |
585-
| 1024 | **rule_number** | Rule-ID | Rule identifier returned from allow or deny Command |
586-
587587
## 2.3 OpenC2 Commands
588588

589589
An OpenC2 Command consists of an Action/Target pair and associated Specifiers and Arguments. This section enumerates the allowed Commands and presents the associated Responses.

0 commit comments

Comments
 (0)