Skip to content
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 preferred key algorithms #99

Merged
merged 3 commits into from
Apr 28, 2021
Merged

Conversation

somtochiama
Copy link
Member

@somtochiama somtochiama commented Apr 28, 2021

Ref: fluxcd/flux2#1320

Signed-off-by: Somtochi Onyekwere somtochionyekwere@gmail.com

Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
kexAlgoDHGEXSHA256 = "diffie-hellman-group-exchange-sha256"
)

var PreferredKexAlgos = []string{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would add a comment here that it is aligned with the preferredKeyAlgos from golang/crypto, but includes kexAlgoDHGEXSHA256.


import "golang.org/x/crypto/ssh"

const (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would add a comment here that points to the origin the strings were copied from so that it will be easier to sync them in the future.

ssh/kex.go Outdated Show resolved Hide resolved
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
Copy link
Member

@hiddeco hiddeco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another round of nitpicks, other than that LGTM.

ssh/kex.go Outdated Show resolved Hide resolved
ssh/kex.go Outdated Show resolved Hide resolved
ssh/kex.go Outdated Show resolved Hide resolved
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
@hiddeco hiddeco merged commit 716a45d into fluxcd:main Apr 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants