-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Add support for ed25519 keys in AWS #13304
Conversation
|
Welcome @aclevername! |
Hi @aclevername. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
pkg/pki/sshkey.go
Outdated
h := md5.Sum(der) | ||
return colonSeparatedHex(h[:]), nil | ||
case "ssh.ed25519PublicKey": | ||
return strings.TrimPrefix(ssh.FingerprintSHA256(sshPublicKey), "SHA256:"), nil |
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.
Is there a reason for using SHA256 for ed keys, but MD5 for RSA?
Perhaps use MD5 for both, optionally add a flag for hash type (like ssh-add -l
does).
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.
Just following the same method the AWS API use to calculate the fingerprint. I added an example in the PR description 😃
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.
Fair enough. I think we should keep the prefix so we know what hash algo is actually used.
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.
Done 😄
035a49c
to
191f54f
Compare
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.
Awesome. Thanks for this. Feel free to cherry-pick this to the 1.23 branch.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: olemarkus The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold |
already have @olemarkus 🤔
|
/retest |
Thanks, just to clarify you mean open an identical PR to merge into the |
You can always cherry-pick back to 1.21, but not sure if we will do another release. |
/hold cancel flake it seems |
…-upstream-release-1.23 Automated cherry pick of #13304: add support for ed25519 keys
…-upstream-release-1.22 Automated cherry pick of #13304: add support for ed25519 keys
…-upstream-release-1.21 Automated cherry pick of #13304: add support for ed25519 keys
AWS EC2 supports
ed25519
keys from the start of this year (blog), updating theComputeAWSKeyFingerprint
func to match this.Implementation notes
I trimmed the "SHA256" prefix that the

ssh.FingerprintSHA256
call adds to keep it consistent with the fingerprint format presented both in the console and the API. Happy to undo this if folks think this is incorrect 😄This issue was originally discovered here eksctl-io/eksctl#4779