Closed andreasbrett closed 1 week ago
@andreasbrett: Thanks for opening an issue, it is currently awaiting triage.
In the meantime, you can:
Side note: other env var expands work. I furthermore assume this has to do with the following change https://github.com/crowdsecurity/crowdsec/pull/2012
What happened?
When using environment variables in
local_api_credentials.yaml
(in my caselocal_api_credentials.yaml.local
) these are not expanded and can thus not be used.What did you expect to happen?
I expected environment variables to be expanded as per https://docs.crowdsec.net/docs/configuration/crowdsec_configuration/#environment-variables. This is particularly useful for creating re-usable config files that can be controlled via environment variables when being deployed to different machines.
How can we reproduce it (as minimally and precisely as possible)?
CONNECT_URI
and point it at e.g.https://localhost:8080
url
definition inlocal_api_credentials.yaml
(url: ${CONNECT_URI}
)cscli config show
and see how it is not expandedcscli lapi status
and see how it is not interpretedAnything else we need to know?
No response
Crowdsec version
OS version
Enabled collections and parsers
Acquisition config
Config show
Prometheus metrics
Related custom configs versions (if applicable) : notification plugins, custom scenarios, parsers etc.