-
-
Notifications
You must be signed in to change notification settings - Fork 364
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
Unable to set array config options via environment variables #342
Comments
Ah yeah, I've struggled with this as well. I think the right way to do that is (in yaml):
|
I get the same response from Oathkeeper with that syntax unfortunately! |
Hm too bad, you could also try:
If none of these work it might be a better idea to mount a config volume. |
The approach I've gone for is to mount a config file - it's just a shame you can't seem to define everything via envars unless I'm missing something! |
Yeah, this has always been a problem with env vars. I'll keep this open to remind myself to check what the right syntax is actually |
Ok, I checked the syntax - |
needs ory/viper#14 |
Just for anyone curious: the correct syntax is comma separated values (standard csv) |
Describe the bug
There doesn't seem to be a way to provide the value for a configuration key that expects an array via an enrivonment variable.
Reproducing the bug
For example, with a docker-compose.yml like
the following error would be produced.
Server logs
Expected behavior
Some clear instructions of how to provide an array of values to these keys would be really helpful. Alternatively, if it's not possible to parse these from environment variables, a little note in the docs would be great :)
Environment
The text was updated successfully, but these errors were encountered: