-
Notifications
You must be signed in to change notification settings - Fork 170
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
Provide config to set global policies #481
Comments
Any lua-yaml as a next-best option? |
The yaml ones I found require extra library which seems unfortunate and would complicate the build process and manual installation. |
So there is already a concept of an environment.
Those can be passed by CLI flag We could extend it on the policy list and add it there too. And start treating the environment as the global config file. We also could offer TOML version of that file that would be simple and more obvious than Lua. |
#450 implements policy chains that can be per service/global.
Service ones can be configured in service configuration.
Global ones have no configuration yet.
Ideally we could use lua-toml and provide nice human readable config in TOML.
However due to a licensing issue (jonstoler/lua-toml#15) we can't use it yet. It is released under MIT license, so is compatible.As an alternative we could try to extend the current JSON config with another global key for global configuration. But it is possible that would work only when loading configuration on boot.
It is possible to download configuration from network because we control the CLI and can make network calls. So the CLI start command can actually download the configuration to a temporary file.
Other proposals welcome.
The text was updated successfully, but these errors were encountered: