-
Notifications
You must be signed in to change notification settings - Fork 32
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
Command-line args instead of env vars #363
Comments
@guicassolato this caught my eye - just wondering if this implies that authorino can never pick up configuration changes at runtime ? i.e. would I always need to restart pods for config changes to be picked up ? are there cases where the application logic would need to handle a certain config param's value transition ? |
@gsaslis, this is true for things as they are today already. Authorino reads env vars at boot-time and then works with those values all along. So what we gain here with this issue is not really predictability about the execution itself, but rather the ability to read the state of the application as of when it was booted in the first place. By reading the env vars on the other hand, you know the current values, but not the original ones (at least not from within the environment). One could argue that in a containerised world, env vars are (should be) immutable and you should always redeploy the application when you want to modify the environment, like for example by editing a That all been said, what I did not say about this issue before is that it also has to do with:
As final thoughts, I would add that, for inter-process communication, there are better ways to exchange data than by modifying the global state of environment; while for intra-process using env vars is an indication of bad design IMO. All the freedom we deserve, but just as much so we don't hurt ourselves! 🙂 |
Authorino reads configuration for the executable from environment variables. This is not ideal as env vars usually belong to the global state of the operating system and, most importantly, are mutable. We should follow a better practice and read configuration options from command-line arguments instead.
This will require changes in https://github.com/kuadrant/authorino-operator as well.
The text was updated successfully, but these errors were encountered: