Skip to content

Commit

Permalink
authorized_key: Add support for additional key types
Browse files Browse the repository at this point in the history
Fixes: #134

Signed-off-by: Abhijeet Kasurde <[email protected]>
  • Loading branch information
Akasurde committed May 25, 2021
1 parent 1f15216 commit c985096
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/134_authorized_key.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- authorized_key - add a list of valid key types (https://github.com/ansible-collections/ansible.posix/issues/134).
15 changes: 15 additions & 0 deletions plugins/modules/authorized_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,13 +389,28 @@ def parsekey(module, raw_key, rank=None):

VALID_SSH2_KEY_TYPES = [
'[email protected]',
'[email protected]',
'[email protected]',
'ecdsa-sha2-nistp256',
'[email protected]',
'ecdsa-sha2-nistp384',
'[email protected]',
'ecdsa-sha2-nistp521',
'[email protected]',
'[email protected]',
'[email protected]',
'ssh-ed25519',
'[email protected]',
'ssh-dss',
'ssh-rsa',
'[email protected]',
'[email protected]',
'rsa-sha2-256',
'rsa-sha2-512',
'[email protected]',
'[email protected]',
'[email protected]',
'[email protected]',
]

options = None # connection options
Expand Down

0 comments on commit c985096

Please sign in to comment.