-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ec2_key / setup_sshkey - fix integration tests (OpenSSH 9.5) (#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 #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
- Loading branch information
Showing
3 changed files
with
20 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
trivial: | ||
- setup_sshkey - fix SSH key generation post OpenSSH 9.5 changed default key type to ed25519 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters