configizer
configizer copied to clipboard
SSH keys configured in config.sh file are added to config.json, do not replace it
trafficstars
Currently, the update script explicitly adds any new keys specified in the config.sh file to the os.sshKeys entry of config.json. While it seems this is the desired behavior, it has undesirable effects.
- It becomes very difficult to keep a reference
config.shfor the group of field devices - It becomes very difficult to deprecate and replace ssh keys
To reproduce issue:
- check the
config.jsonfile on the target device. Check that the value for keyos.sshKeysis empty. - Add an ssh key in
config.shscript, e.g.SSHKEYS=("ssh-rsa AAAA ..... testKey") - Configure the key for the test unit in batch
- run the
run.shscript. - View the
config.jsonfile on the target device. It will now include the specified key - Change the key in
config.sh - Remove config.log and run
run.shagain - View the
config.jsonfile on the target device. It will now include two copies of the specified key
[saintaardvark] This issue has attached support thread https://jel.ly.fish/#/728a48e0-84fa-4209-9509-88f613cbafd2
issue addressed in https://github.com/etcetc/configizer