Closed yaroslav-nakonechnikov closed 4 months ago
also, as it requires to create story, it fails again and again:
contentctl new --type story --path APP
? enter story name convert test
? enter author name yn
? select a category done ######################## there was a choice... why it writes done?
? select a use case Other
and as a result i see next:
story_name: convert test
story_author: yn
category: &id001 []
usecase: Other
name: convert test
id: fdb110c7-fb76-4e94-b144-e2c6cc0cfa6a
version: 1
date: '2024-05-28'
author: yn
description: UPDATE_DESCRIPTION
narrative: UPDATE_NARRATIVE
references: []
tags:
analytic_story: convert test
category: *id001
product:
- Splunk Enterprise
- Splunk Enterprise Security
- Splunk Cloud
usecase: Other
cve:
- UPDATE WITH CVE(S) IF APPLICABLE
so what is that id001
?
and validator is failing:
File: stories/convert_test.yml
Error: 2 validation errors for Story
tags.usecase
Input should be 'Fraud Detection', 'Compliance', 'Application Security', 'Security Monitoring' or 'Advanced Threat Detection' [type=enum, input_value='Other', input_type=str]
For further information visit https://errors.pydantic.dev/2.7/v/enum
tags.analytic_story
Extra inputs are not permitted [type=extra_forbidden, input_value='convert test', input_type=str]
For further information visit https://errors.pydantic.dev/2.7/v/extra_forbidden
why it gives option to use Other for usecase, but fails?
and same for analytic_story: why it fills it with wrong data?
and analytic_story: convert test
is also added in story file, where validator doesn't expect it.
Sorry for the delay in this!
We've got an update in #162 that fixes both the new detection issue, as well as the analytic story category issue, and a few other small sharp edges. It should be merged shortly.
Hello,
i've just cloned repository and in
main
branch did initial setup described there: https://github.com/splunk/contentctl?tab=readme-ov-file#from-source-advancedthen i tried to
init
it:it failed. and tried several other times, till i've got that:
which is not expected, but understandable.
later i've tried to create new content, and it is failing again:
why it asks for file which should be created by the
contenctl
? as i see, it needs directoryAPP/detections/TTP
, but why it doesn't create if it is not exist?