TheHive-Project / Cortex

Cortex: a Powerful Observable Analysis and Active Response Engine
https://thehive-project.org
GNU Affero General Public License v3.0
1.28k stars 218 forks source link

Allowing parameterization of ES username, password and Index through environment variables #381

Open tl-Bruno-Braga opened 2 years ago

tl-Bruno-Braga commented 2 years ago

Request Type

Feature Request

Work Environment

Question Answer
Cortex version / git hash Latest
Package Type Docker

Problem Description

Currently, most of the relevant parameters for Cortex can be passed as environment variables. However, ES credentials need to be passed through configuration file which in a CI/CD pipeline may not be practical if we want to avoid custom containers.

It should also be possible to parameterize the index through environment variables so that the user can have a dev and prod env for Cortex. Otherwise, if i have two instances of Cortex, they will write to the same ES index.

Possible Solutions

Adjust Docker entrypoint code to allow the following variables: