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

backend/jupiterbrain: parse SSH key on backend init #214

Merged
merged 6 commits into from Oct 14, 2016

Conversation

sarahhodne
Copy link
Contributor

Instead of loading, parsing and decrypting the key on every SSH connect, this does it only once when the worker is first set up.

Gonna test this in staging once the build passes and I have a binary to test with.

Fixes #206.

Instead of loading, parsing and decrypting the key on every SSH connect,
this does it only once when the worker is first set up.

Fixes #206.
@sarahhodne sarahhodne self-assigned this Oct 12, 2016
@sarahhodne
Copy link
Contributor Author

Tested in staging by running a few jobs in parallel, and I observed no issues.

@sarahhodne
Copy link
Contributor Author

On second thought, it'd probably be best to port this over to the other providers too.

Copy link
Contributor

@meatballhat meatballhat left a comment

Choose a reason for hiding this comment

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

🎺

@sarahhodne
Copy link
Contributor Author

Will make some more changes to this tomorrow to port the changes over to the other backends too.

The different backends were doing a lot of common SSH logic that is more
or less the same across all packages. This extracts it to a subpackage
that they all can use without having to re-do all of the logic. This
also brings the recent improvements to the SSH logic in the jupiterbrain
backend over to the other backends.
@sarahhodne
Copy link
Contributor Author

Alright, I ported everything over to the other backends by extracting the functionality to an ssh subpackage.

Copy link
Contributor

@meatballhat meatballhat left a comment

Choose a reason for hiding this comment

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

YES 💯 🐑 🇮🇹

@sarahhodne sarahhodne merged commit 9aed935 into master Oct 14, 2016
@sarahhodne sarahhodne deleted the hh/ssh-jb-parse-key-once branch October 14, 2016 10:54
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.

None yet

2 participants