10000 Cleanup error handling for SSH dial · Issue #472 · weaveworks/ignite · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Dec 7, 2023. It is now read-only.

Cleanup error handling for SSH dial #472

Closed
stealthybox opened this issue Oct 7, 2019 · 0 comments · Fixed by #474
Closed

Cleanup error handling for SSH dial #472

stealthybox opened this issue Oct 7, 2019 · 0 comments · Fixed by #474
Labels
good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt.

Comments

@stealthybox
Copy link
Contributor

#469 introduced some quick error handling for the ssh.Dial result.

These conditionals work fine since this should almost always return an expected error, but some of the branches are incorrect.

The final return case is actually a success of the SSH connection. (This is unexpected, and should probably warn the user that an insecure password succeeded)

There may be a better way to auth this connection.
For instance, we could actually use the proper certs since we're going so far as to validate that the server is operating at a protocol level.

@stealthybox stealthybox added help wanted Extra attention is needed good first issue Good for newcomers kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. hacktoberfest labels Oct 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant
0