Skip to content

Allow docker ENV vars in the online_api_credentials.yaml #4599

Description

@baragoon

What would you like to be added?

/kind enhancement

Please allow usage of the docker env vars in the online_api_credentials.yaml config file, like in the main config.yaml. Currently it's not parsing vars, and as result -
time="2026-08-11T07:53:04+03:00" level=fatal msg="api server init: unable to run local API: authenticate watcher (${CROWDSEC_ONLINE_API_LOGIN}): API error: Please register prior to login." if online_api_credentials.yaml looks like that:

url: https://api.crowdsec.net/
login: ${CROWDSEC_ONLINE_API_LOGIN}
password: ${CROWDSEC_ONLINE_API_PASSWORD}

Why is this needed?

convenience for docker users, no need to edit config files, just use env var

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions