sshpiper icon indicating copy to clipboard operation
sshpiper copied to clipboard

Yaml plugin - Allow authorized_keys to be list

Open owochle opened this issue 1 year ago • 2 comments

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

owochle avatar Aug 17 '24 17:08 owochle

seems this is a breaking change to schema what about new name, authorized_keys_list

tg123 avatar Aug 19 '24 06:08 tg123

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

owochle avatar Aug 19 '24 06:08 owochle