Skip to content

Use new Net:SSH host key verify values#8524

Merged
btm merged 3 commits intomasterfrom
btm/retry-fingerprint
May 13, 2019
Merged

Use new Net:SSH host key verify values#8524
btm merged 3 commits intomasterfrom
btm/retry-fingerprint

Conversation

@btm
Copy link
Copy Markdown
Contributor

@btm btm commented May 13, 2019

Fixes #8482 by prompting to continue if the host key is not recognized.

This attempts to tell Net:SSH to accept and write the key but it is only
temporarily accepting.

This changes the parameters of --ssh-verify-host-key (which is new) to
take the Net::SSH values, which get passed through by train. This allows
the user more options than only verifying or not.

Signed-off-by: Bryan McLellan btm@loftninjas.org

Fixes #8482 by prompting to continue if the host key is not recognized.

This attempts to tell Net:SSH to accept and write the key but it is only
temporarily accepting.

This changes the parameters of --ssh-verify-host-key (which is new) to
take the Net::SSH values, which get passed through by train. This allows
the user more options than only verifying or not.

Signed-off-by: Bryan McLellan <btm@loftninjas.org>
Comment thread lib/chef/knife/bootstrap.rb
Comment thread lib/chef/knife/bootstrap.rb
@tas50
Copy link
Copy Markdown
Contributor

tas50 commented May 13, 2019

@btm can you add the flag changes to the release notes

Copy link
Copy Markdown
Member

@marcparadise marcparadise left a comment

Choose a reason for hiding this comment

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

Comments inline.

In addition, we'll want to make sure we test the logic in the new rescue to ensure that the right thing is done when the human chooses yes/no.

Comment thread lib/chef/knife/bootstrap.rb Outdated
Comment thread lib/chef/knife/bootstrap.rb Outdated
Comment thread lib/chef/knife/bootstrap.rb Outdated
Comment thread lib/chef/knife/bootstrap.rb Outdated
Signed-off-by: Bryan McLellan <btm@loftninjas.org>
@btm btm force-pushed the btm/retry-fingerprint branch from f620543 to 1bd3c85 Compare May 13, 2019 18:19
Signed-off-by: Bryan McLellan <btm@loftninjas.org>
@btm btm force-pushed the btm/retry-fingerprint branch from 904d9be to 0a1a78f Compare May 13, 2019 19:08
@btm btm merged commit db18ba5 into master May 13, 2019
@chef-ci chef-ci deleted the btm/retry-fingerprint branch May 13, 2019 20:02
@lock
Copy link
Copy Markdown

lock Bot commented May 29, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock Bot locked as resolved and limited conversation to collaborators May 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bootstrap: If the SSH fingerprint is unknown offer to continue anyways

4 participants