Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement/Crowdsec & cscli : support configuration from environment variables #1032

Open
he2ss opened this issue Oct 28, 2021 · 3 comments
Assignees
Labels
kind/enhancement New feature or request needs/triage

Comments

@he2ss
Copy link
Member

he2ss commented Oct 28, 2021

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 he2ss added the kind/enhancement New feature or request label Oct 28, 2021
@he2ss
Copy link
Member Author

he2ss commented Dec 13, 2021

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.

@erdoukki
Copy link
Contributor

erdoukki commented Feb 1, 2022

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

@aleksasiriski
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request needs/triage
Projects
None yet
Development

No branches or pull requests

3 participants