OpenCTI-Platform / opencti

Open Cyber Threat Intelligence Platform
https://opencti.io
Other
6.5k stars 958 forks source link

ELASTICSEARCH__NUMBER_OF_REPLICAS does not update the opencti-core-settings component template #9157

Open nino-filigran opened 2 days ago

nino-filigran commented 2 days ago

Description The opencti-core-settings Elasticsearch Component template seems not updated after its first initialization.

Environment OS (where OpenCTI server runs): Official docker image OpenCTI version: 6.4.0 OpenCTI client: N/A Other environment details: Reproducible Steps Steps to create the smallest reproducible scenario:

Initialize a new setup of OpenCTI, including Elasticsearch templates and indices Change the ELASTICSEARCH__NUMBER_OF_REPLICAS environment variable to 0 Expected Output The opencti-core-settings ES Component template updated to include number_of_replicas: "0". New indices have the set number of replicas (0)

Actual Output The opencti-core-settings ES Component template is unchanged. New indices have the default number of replicas (1)

Additional information Edit : Swapped Expected and Actual Output.

Screenshots (optional)

nino-filigran commented 2 days ago

After an internal discussion, seems like we need to ensure the core setting update in the elUpdateIndicesMappings function