-
Notifications
You must be signed in to change notification settings - Fork 305
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
Add env variable support for configuration #339
base: main
Are you sure you want to change the base?
Conversation
This commit also makes possible to use json files as configuration files via `viper` configuration library. And contains breaking changes to configuration. Because of viper's limitations of detecting new map keys from env variables, a little procedure goes trough prefixed env variables and override viper settings by the parsed value of them. If the configuration file is in yaml format env variables can contain correct yaml strings and they will be parsed correctly. This behaviour is same for json files too.
…nto upstream # Conflicts: # auth_server/authn/github_auth.go # auth_server/authn/ldap_auth.go # auth_server/authn/static_auth.go # auth_server/authz/acl_mongo.go # auth_server/main.go # auth_server/mgo_session/mgo_session.go # auth_server/server/config.go
Thanks for picking up this PR @ewassef As you can imaging this will take some time to review, especially due to the breaking nature, however I can commit to you (haha, no pun intended 😉) to review this. |
Thanks for the follow-up.. I went ahead and fixed the tests and committed the change. |
@techknowlogick would you mind letting the checks kick off so I can fix anything that might come up/ |
@techknowlogick any guidance? |
@flaper87 @techknowlogick @karmi anyone? |
Hi there @techknowlogick @umurgdk @karmi @flaper87 any help is appreciated |
I've just tried pushing an update to see if that fixed the build |
@techknowlogick any help? |
Is there any chance that it could be completed? |
#225 updated to current HEAD
The original author is @Um
Tagging @techknowlogick frm the other PR https://github.com/techknowlogick