-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Property name for profile-defined Targets #348
Comments
I always thought this was odd, I am not sure why we went this route, but I believe it was originally on purpose. Perhaps here we can revisit, I rather have uniformity if possible were it makes sense. I like approach one. |
Approach 1 is the correct structure for OpenC2 commands. The current odd command structure:
was originally done on purpose because we needed a name for targets to put in the query pairs response. But people didn't realize that JSON Pointer (RFC 6901) is the standard way to do that. So they used the same odd string as a property name as they did for the query response (https://docs.oasis-open.org/openc2/oc2ls/v1.0/cs02/oc2ls-v1.0-cs02.html#annex-c-design-elements)
The correct way is to define the command normally as in Approach 1, and then use a JSON Pointer string as the name of the target:
|
PR #349, referenced in the opening description of the issue has been merged. What other changes are needed to completely resolve this issue? |
Discussed at triage; @davaya will take action to review examples and see if they've been fixed. |
The Target property table in the CS 1.0 Language Spec Section 3.3.1.2 does not include an example SLPF target that was included in CSPRD 01, but it still has Actuator (3.3.1.3) and Results (3.3.2.2) SLPF examples. But Section 3.1.4 (Extensions) does contain an example Target that is inconsistent with the Args, Actuator, and Results examples contained in the same section.
As discussed in Issue #342, section 3.1.4 contains an incorrect description of NSIDs (which are prefixes used in Type references and have nothing to do with property names). The Target example in that section needs to be fixed, in one of two ways:
Pull Request #349 assumes that this approach is used, and updates the "pairs" example to use the JSON Pointer standard (RFC 6901) to refer to profile-defined targets.
The text was updated successfully, but these errors were encountered: