-
Notifications
You must be signed in to change notification settings - Fork 437
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
feat(ec2): switch to using ed25519 to generate key pair #5637
Conversation
This pull request implements a feature or fix, so it must include a changelog entry. See CONTRIBUTING.md#changelog for instructions. |
packages/toolkit/.changes/next-release/Feature-3bebe8f2-b933-4104-8dd6-013d738bd6b5.json
Outdated
Show resolved
Hide resolved
const process = new ChildProcess(`ssh-keygen`, ['-vvv', '-l', '-f', keyPath]) | ||
const result = await process.run() | ||
// Check private key header for algorithm name | ||
assert.strictEqual(result.stdout.includes('[ED25519 256]'), true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Always great to see tests exercising actual reality instead of setting up mocks!
This might imply that we should check the version of aws-toolkit-vscode/packages/core/src/shared/utilities/pathFind.ts Lines 117 to 134 in 791ae55
|
Co-authored-by: Justin M. Keyes <[email protected]>
Problem
currently use RSA.
Solution
switch to ed25519
License: I confirm that my contribution is made under the terms of the Apache 2.0 license.