@@ -45,12 +45,83 @@ public List<ModuleRequirement> checkRequirements(Long serverId) throws Exception
4545 public List <ModuleConfigurationKey > getConfigurationKeys (Long groupId ) throws Exception {
4646 List <ModuleConfigurationKey > keys = new ArrayList <>();
4747
48+ keys .add (ModuleConfigurationKey .builder ()
49+ .withGroupId (groupId )
50+ .withConfKey ("utmstack.socai.provider" )
51+ .withConfName ("AI Provider" )
52+ .withConfDescription ("AI provider used by SOC AI." )
53+ .withConfDataType ("text" )
54+ .withConfValue ("openai" )
55+ .withConfRequired (true )
56+ .build ());
57+
58+ keys .add (ModuleConfigurationKey .builder ()
59+ .withGroupId (groupId )
60+ .withConfKey ("utmstack.socai.model" )
61+ .withConfName ("AI Model" )
62+ .withConfDescription ("AI model that SOC AI will use to analyze alerts (first option of active provider)." )
63+ .withConfDataType ("text" )
64+ .withConfValue ("gpt-4o" )
65+ .withConfRequired (true )
66+ .build ());
67+
68+ keys .add (ModuleConfigurationKey .builder ()
69+ .withGroupId (groupId )
70+ .withConfKey ("utmstack.socai.url" )
71+ .withConfName ("Provider URL" )
72+ .withConfDescription ("Endpoint URL for the provider (only set for azure / ollama / custom)." )
73+ .withConfDataType ("text" )
74+ .withConfValue ("" )
75+ .withConfRequired (false )
76+ .build ());
77+
78+ keys .add (ModuleConfigurationKey .builder ()
79+ .withGroupId (groupId )
80+ .withConfKey ("utmstack.socai.maxTokens" )
81+ .withConfName ("Max Tokens" )
82+ .withConfDescription ("Maximum number of tokens used per request." )
83+ .withConfDataType ("text" )
84+ .withConfValue ("4096" )
85+ .withConfRequired (true )
86+ .build ());
87+
88+ keys .add (ModuleConfigurationKey .builder ()
89+ .withGroupId (groupId )
90+ .withConfKey ("utmstack.socai.authType" )
91+ .withConfName ("Authentication Type" )
92+ .withConfDescription ("Authentication type used to reach the provider (none for ollama)." )
93+ .withConfDataType ("text" )
94+ .withConfValue ("custom-headers" )
95+ .withConfRequired (true )
96+ .build ());
97+
98+ keys .add (ModuleConfigurationKey .builder ()
99+ .withGroupId (groupId )
100+ .withConfKey ("utmstack.socai.customHeaders" )
101+ .withConfName ("Custom Headers" )
102+ .withConfDescription ("Custom headers (JSON object) sent with each request to the provider." )
103+ .withConfDataType ("password" )
104+ .withConfValue ("" )
105+ .withConfRequired (false )
106+ .build ());
107+
108+ keys .add (ModuleConfigurationKey .builder ()
109+ .withGroupId (groupId )
110+ .withConfKey ("utmstack.socai.autoAnalyze" )
111+ .withConfName ("Auto Analyze" )
112+ .withConfDescription ("If set to \" true\" , SOC AI will automatically analyze incoming alerts." )
113+ .withConfDataType ("text" )
114+ .withConfValue ("false" )
115+ .withConfRequired (false )
116+ .build ());
117+
48118 keys .add (ModuleConfigurationKey .builder ()
49119 .withGroupId (groupId )
50120 .withConfKey ("utmstack.socai.incidentCreation" )
51121 .withConfName ("Automatic Incident creation" )
52122 .withConfDescription ("If set to \" true\" , the system will create incidents based on analysis of alerts." )
53- .withConfDataType ("bool" )
123+ .withConfDataType ("text" )
124+ .withConfValue ("false" )
54125 .withConfRequired (false )
55126 .build ());
56127
@@ -60,37 +131,11 @@ public List<ModuleConfigurationKey> getConfigurationKeys(Long groupId) throws Ex
60131 .withConfName ("Change Alert Status" )
61132 .withConfDescription ("If set to \" true\" , SOC Ai will automatically change the status of alerts. " +
62133 "Analysts should investigate those with the status \" In Review\" ." )
63- .withConfDataType ("bool" )
134+ .withConfDataType ("text" )
135+ .withConfValue ("false" )
64136 .withConfRequired (false )
65137 .build ());
66138
67- keys .add (ModuleConfigurationKey .builder ()
68- .withGroupId (groupId )
69- .withConfKey ("utmstack.socai.model" )
70- .withConfName ("Select AI Model" )
71- .withConfDescription ("Choose the AI model that SOC AI will use to analyze alerts." )
72- .withConfDataType ("select" )
73- .withConfRequired (true )
74- .withConfOptions (
75- "[" +
76- "{\" value\" : \" gpt-4\" , \" label\" : \" GPT-4\" }," +
77- "{\" value\" : \" gpt-4-0613\" , \" label\" : \" GPT-4 (0613)\" }," +
78- "{\" value\" : \" gpt-4-32k\" , \" label\" : \" GPT-4 32K\" }," +
79- "{\" value\" : \" gpt-4-32k-0613\" , \" label\" : \" GPT-4 32K (0613)\" }," +
80- "{\" value\" : \" gpt-4-turbo\" , \" label\" : \" GPT-4 Turbo\" }," +
81- "{\" value\" : \" gpt-4o\" , \" label\" : \" GPT-4 Omni\" }," +
82- "{\" value\" : \" gpt-4o-mini\" , \" label\" : \" GPT-4 Omni Mini\" }," +
83- "{\" value\" : \" gpt-4.1\" , \" label\" : \" GPT-4.1\" }," +
84- "{\" value\" : \" gpt-4.1-mini\" , \" label\" : \" GPT-4.1 Mini\" }," +
85- "{\" value\" : \" gpt-4.1-nano\" , \" label\" : \" GPT-4.1 Nano\" }," +
86- "{\" value\" : \" gpt-3.5-turbo\" , \" label\" : \" GPT-3.5 Turbo\" }," +
87- "{\" value\" : \" gpt-3.5-turbo-0613\" , \" label\" : \" GPT-3.5 Turbo (0613)\" }," +
88- "{\" value\" : \" gpt-3.5-turbo-16k\" , \" label\" : \" GPT-3.5 Turbo 16K\" }," +
89- "{\" value\" : \" gpt-3.5-turbo-16k-0613\" , \" label\" : \" GPT-3.5 Turbo 16K (0613)\" }" +
90- "]"
91- )
92- .build ());
93-
94139 return keys ;
95140 }
96141
0 commit comments