-
Notifications
You must be signed in to change notification settings - Fork 343
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
ec2_key / setup_sshkey - fix integration tests (OpenSSH 9.5) #2406
ec2_key / setup_sshkey - fix integration tests (OpenSSH 9.5) #2406
Conversation
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 5m 32s |
Build succeeded (gate pipeline). ✔️ ansible-galaxy-importer SUCCESS in 5m 54s |
5a9d6aa
into
ansible-collections:main
Backport to stable-9: 💚 backport PR created✅ Backport PR branch: Backported as #2407 🤖 @patchback |
SUMMARY With OpenSSH 9.5 the default format for SSH key generation was switched over to ed25519 (a good thing). However, some older OSes don't support ed25519 (eg the older image we use for testing ec2_metadata_facts python 2 compatibility). setup_sshkey now: Explicitly generates an 4096 bit RSA key (key_material) Generates the somewhat quirky md5sum based fingerprint AWS uses for RSA keys (fingerprint) Explicitly generates an ed25519 key (another_key_material) Pads the standard sha256 fingerprint to match the, technically correct, AWS format (another_fingerprint) ec2_key test now also checks the fingerprint of the second imported key. (Also fixes the issue seen in #2398 by switching ssh key generation back to the old 4096 bit RSA for key_material) ISSUE TYPE Bugfix Pull Request COMPONENT NAME tests/integration/targets/setup_sshkey tests/integration/targets/ec2_key ADDITIONAL INFORMATION Reviewed-by: Alina Buzachis (cherry picked from commit 5a9d6aa)
…2407) This is a backport of PR #2406 as merged into main (5a9d6aa). SUMMARY With OpenSSH 9.5 the default format for SSH key generation was switched over to ed25519 (a good thing). However, some older OSes don't support ed25519 (eg the older image we use for testing ec2_metadata_facts python 2 compatibility). setup_sshkey now: Explicitly generates an 4096 bit RSA key (key_material) Generates the somewhat quirky md5sum based fingerprint AWS uses for RSA keys (fingerprint) Explicitly generates an ed25519 key (another_key_material) Pads the standard sha256 fingerprint to match the, technically correct, AWS format (another_fingerprint) ec2_key test now also checks the fingerprint of the second imported key. (Also fixes the issue seen in #2398 by switching ssh key generation back to the old 4096 bit RSA for key_material) ISSUE TYPE Bugfix Pull Request COMPONENT NAME tests/integration/targets/setup_sshkey tests/integration/targets/ec2_key ADDITIONAL INFORMATION Reviewed-by: Alina Buzachis
…-collections#2406) SUMMARY With OpenSSH 9.5 the default format for SSH key generation was switched over to ed25519 (a good thing). However, some older OSes don't support ed25519 (eg the older image we use for testing ec2_metadata_facts python 2 compatibility). setup_sshkey now: Explicitly generates an 4096 bit RSA key (key_material) Generates the somewhat quirky md5sum based fingerprint AWS uses for RSA keys (fingerprint) Explicitly generates an ed25519 key (another_key_material) Pads the standard sha256 fingerprint to match the, technically correct, AWS format (another_fingerprint) ec2_key test now also checks the fingerprint of the second imported key. (Also fixes the issue seen in ansible-collections#2398 by switching ssh key generation back to the old 4096 bit RSA for key_material) ISSUE TYPE Bugfix Pull Request COMPONENT NAME tests/integration/targets/setup_sshkey tests/integration/targets/ec2_key ADDITIONAL INFORMATION Reviewed-by: Alina Buzachis
…-collections#2406) SUMMARY With OpenSSH 9.5 the default format for SSH key generation was switched over to ed25519 (a good thing). However, some older OSes don't support ed25519 (eg the older image we use for testing ec2_metadata_facts python 2 compatibility). setup_sshkey now: Explicitly generates an 4096 bit RSA key (key_material) Generates the somewhat quirky md5sum based fingerprint AWS uses for RSA keys (fingerprint) Explicitly generates an ed25519 key (another_key_material) Pads the standard sha256 fingerprint to match the, technically correct, AWS format (another_fingerprint) ec2_key test now also checks the fingerprint of the second imported key. (Also fixes the issue seen in ansible-collections#2398 by switching ssh key generation back to the old 4096 bit RSA for key_material) ISSUE TYPE Bugfix Pull Request COMPONENT NAME tests/integration/targets/setup_sshkey tests/integration/targets/ec2_key ADDITIONAL INFORMATION Reviewed-by: Alina Buzachis
SUMMARY
With OpenSSH 9.5 the default format for SSH key generation was switched over to ed25519 (a good thing). However, some older OSes don't support ed25519 (eg the older image we use for testing ec2_metadata_facts python 2 compatibility).
setup_sshkey now:
key_material
)fingerprint
)another_key_material
)another_fingerprint
)ec2_key test now also checks the fingerprint of the second imported key.
(Also fixes the issue seen in #2398 by switching ssh key generation back to the old 4096 bit RSA for
key_material
)ISSUE TYPE
COMPONENT NAME
tests/integration/targets/setup_sshkey
tests/integration/targets/ec2_key
ADDITIONAL INFORMATION