sshpiper
sshpiper copied to clipboard
Yaml plugin - Allow authorized_keys to be list
Allow authorized_keys to be list in order to have for example common keys for every host + specific keys for certain hosts
- from:
- username: "sprigatito"
authorized_keys:
- "/etc/sshpiperd/keys/common_keys"
- "/etc/sshpiperd/keys/sprigatito_keys"
ignore_hostkey: true
to:
host: "192.168.1.10:2222"
username: "root"
private_key: "/etc/sshpiperd/keys/id_ed25519"
ignore_hostkey: true
seems this is a breaking change to schema
what about new name, authorized_keys_list
I was thinking more of a type union, either a list or a string, but I don't know if such union are possible in go (don't know much about it). A new name is the same in the end anyway