-
Notifications
You must be signed in to change notification settings - Fork 412
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
base: master
Are you sure you want to change the base?
Conversation
This pull request implements a feature or fix, so it must include a changelog entry. See CONTRIBUTING.md#changelog for instructions. |
@@ -0,0 +1,4 @@ | |||
{ | |||
"type": "Feature", | |||
"description": "use ed25519 to generate ec2 ssh key pair" |
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.
it's usually a good idea to prefix these items with a topic, that makes them easy to read in a list, and also makes it clear which part of the app they refer to. Other notes are here.
"description": "use ed25519 to generate ec2 ssh key pair" | |
"description": "EC2 connect: use ed25519 to generate ec2 ssh key pair" |
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
|
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.