Open lucc opened 3 years ago
Well, I originally wrote the hetznerctl
tool as a debugging tool, but it turns out people are actually using it, who could have known?! :see_no_evil:
Nevertheless, I guess I can't undo it anymore, so let's move forward: Yes, such a password_cmd
could be useful, especially since I myself use something similar for other software, so the first point you're mentioning is more flexible.
However, I'd also do the same for the username
setting, so maybe it makes sense to implement this in a generic way, eg. by allowing {any_setting}_cmd
.
For me as a sysadmin the hetznerctl
command could be the complement to the hcloud
command. I was wondering before why Hetzner did only allow me to manage half of my servers via the cli. But luckily you are here :)
I will start a PR and we can discuss the implementation there.
Which python versions are you targeting? I did not find a specification in setup.py. I saw the try-block to import configparser and that looks like python2. What is the minimum version of py3 you want to support?
I am not happy with saving my Hetzner password to disk in plain text. So I was looking for a way to allow hetznerctl to query my password manager but did not see one (I could hack together a shell script that generates a temporary config file and calls hetznerctl, but that is ugly).
Would you be interested to support some kind of integration with password managers? I am interested in coding it.
Ideas
password_cmd
config option that can be set instead ofpassword
and use it as a shell command that will output the password that will be used. I would implement this option as it is little work and fixes the issue for me. Down side: not very integrated UI, every user who wants to use it has to write a shell command into the config.