You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are facing some problems to continue the development of the Content Manager due to some missing pieces of code and missing features, such as the initialization of the snapshot link into the wazuh-context index.
Functional requirements
The Content Manager initializes the wazuh-context index on start.
The snapshot value is set to a valid link.
The offset value is set to 0.
The last_offset value is set to the offset value returned by the request to the CTI API.
Implementation restrictions
The wazuh-context index is initialized with the content returned by the CTI API, by performing an HTTP request.
Plan
Rename ContextConsumerCatalog to ConsumerInfo
Get the consumer info from the CTI API and index the data at onNodeStarted()
Remove all test-related code (endpoints). Move the logic inside the plugin or unit tests
Rename CTIclient::getConsumerInfo() to ConsumerInfo (a model representing the response from API Documentation)
Simplify methods in the ContentIndex class. Keep only the method ContextIndex::set(consumerInfo: ConsumerInfo): FutureComplete, which:
Writes consumerInfo into the index.
Stores the fields: context, name, last_offset, and last_snapshot_link
Reduce the model to only the fields that will be used; the rest can be ignored for now
Review, simplify, and unify the models
Remove Document, GenericDocument, Offset, Offsets / Unify them into a new model ContextChanges
Description
We are facing some problems to continue the development of the Content Manager due to some missing pieces of code and missing features, such as the initialization of the snapshot link into the
wazuh-context
index.Functional requirements
wazuh-context
index on start.snapshot
value is set to a valid link.offset
value is set to 0.last_offset
value is set to the offset value returned by the request to the CTI API.Implementation restrictions
wazuh-context
index is initialized with the content returned by the CTI API, by performing an HTTP request.Plan
ContextConsumerCatalog
toConsumerInfo
onNodeStarted()
CTIclient::getConsumerInfo()
toConsumerInfo
(a model representing the response from API Documentation)ContentIndex
class. Keep only the methodContextIndex::set(consumerInfo: ConsumerInfo): FutureComplete
, which:consumerInfo
into the index.context
,name
,last_offset
, andlast_snapshot_link
Document
,GenericDocument
,Offset
,Offsets
/ Unify them into a new modelContextChanges
Sample document:
The text was updated successfully, but these errors were encountered: