Skip to content
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

Yaml plugin - Allow authorized_keys to be list #429

Open
OwOchle opened this issue Aug 17, 2024 · 2 comments
Open

Yaml plugin - Allow authorized_keys to be list #429

OwOchle opened this issue Aug 17, 2024 · 2 comments

Comments

@OwOchle
Copy link

OwOchle commented Aug 17, 2024

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
@tg123
Copy link
Owner

tg123 commented Aug 19, 2024

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

@OwOchle
Copy link
Author

OwOchle commented Aug 19, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants