crowdsec icon indicating copy to clipboard operation
crowdsec copied to clipboard

Improvement/Crowdsec & cscli : support configuration from environment variables

Open he2ss opened this issue 4 years ago • 2 comments

Following this post, it's maybe a good idea to support crowdsec configuration from environment variables.

Describe the solution you'd like we can get all env vars that matches CROWDSEC_* and the format would be something like :

CROWDSEC_SECTIONNAME_VARNAME

So we will be able to overwrite crowdsec and cscli configurations and especially for container environments.

he2ss avatar Oct 28 '21 12:10 he2ss

We already have environment variable settings in crowdsec (see here).

But we still need work on the config file so we'll have standard environment variables also can be used in the docker image.

he2ss avatar Dec 13 '21 10:12 he2ss

Think also of using a default values, in case the env get lost or missing… Just an advice, in case of…

erdoukki avatar Feb 01 '22 00:02 erdoukki

Following this post, it's maybe a good idea to support crowdsec configuration from environment variables.

Describe the solution you'd like we can get all env vars that matches CROWDSEC_* and the format would be something like :

CROWDSEC_SECTIONNAME_VARNAME

So we will be able to overwrite crowdsec and cscli configurations and especially for container environments.

Was this ever added?

aleksasiriski avatar Apr 18 '23 17:04 aleksasiriski