-
Notifications
You must be signed in to change notification settings - Fork 63
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
Disallow dangerous parameters in the config file #217
Comments
Concept ACK |
So, removing the parameters from the config file and allowing the user to use it only in cli? |
Yeah something like that. You might only disallow it by sanity checking that it's not set. Not that we have to remove it from the |
Got it. I will raise a pr when it's done. |
Just noticed there is actually nothing dangerous here because I think we can just note that in a comment in the template config file so that users don't expect something when setting these ignored parameters to Also, write a comment about it in Lines 206 to 207 in 1a89c5d
|
Oh damn 😮! I still think it may be worth reporting this to the user though instead of just commenting this on the config file. In general, if something is not supported, I think the user should be made aware of it explicitly. Even though I never finished it, a rework of the config to acknowledge where things come from may be good in the long run. |
Right now, the parameters
overwrite_key
(overwrites* the tower's key and gives it a new identity) andforce_update
(introduced in #216) are allowed to be set in the configuration file.Since they are more of a fail-safe and rather dangerous commands, we should assert that the user doesn't set them in the config file and only settable as command line flags.
The text was updated successfully, but these errors were encountered: