From b83767d2fc054c3602dbc7304c04a52c0dd70e7d Mon Sep 17 00:00:00 2001 From: "xncz8h (Ivo)" <33687608+xncz8h@users.noreply.github.com> Date: Thu, 4 Apr 2024 12:42:16 +0200 Subject: [PATCH] Change step signature to make externalreferences a list of references (#113) Co-authored-by: kroskinskiis --- .../en/docs/soarca-extensions/fin-protocol.md | 2 +- models/fin/fin.go | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/content/en/docs/soarca-extensions/fin-protocol.md b/docs/content/en/docs/soarca-extensions/fin-protocol.md index 348b3da0..bdc68ced 100644 --- a/docs/content/en/docs/soarca-extensions/fin-protocol.md +++ b/docs/content/en/docs/soarca-extensions/fin-protocol.md @@ -114,7 +114,7 @@ The message is used to register a fin to SOARCA. It has the following payload. |type |action |string |Action type |name |name |string |message id |description |description |string |Description of the step -|external_references| |[external reference](https://docs.oasis-open.org/cacao/security-playbooks/v2.0/cs01/security-playbooks-v2.0-cs01.html#_Toc152256542) |References to external recourses to further enhance the step also see CACAO V2 10.9. +|external_references| |list of [external reference](https://docs.oasis-open.org/cacao/security-playbooks/v2.0/cs01/security-playbooks-v2.0-cs01.html#_Toc152256542) |References to external recourses to further enhance the step also see CACAO V2 10.9. |command |command |string |Command to execute |target |UUID |string |Target UUID cto execute command against diff --git a/models/fin/fin.go b/models/fin/fin.go index 38178465..d98b8a69 100644 --- a/models/fin/fin.go +++ b/models/fin/fin.go @@ -54,12 +54,12 @@ type Capability struct { // Step structure as example to the executor type Step struct { - Type string `json:"type"` - Name string `json:"name"` - Description string `json:"description"` - ExternalReferences cacao.ExternalReferences `json:"external_references"` - Command string `json:"command"` - Target string `json:"target"` + Type string `json:"type"` + Name string `json:"name"` + Description string `json:"description"` + ExternalReferences []cacao.ExternalReferences `json:"external_references"` + Command string `json:"command"` + Target string `json:"target"` } // Unregister command structure