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 checking and error handling for encrypted keys and pass_phrases #10

Closed
wants to merge 1 commit into from

Conversation

cfortier2
Copy link

this fixes #9

This is my first attempt at fixing this and want to start a discussion to make sure i'm going in the right direction. Any feedback is appreciated!

@chef-supermarket
Copy link

Hi. Your friendly Curry bot here. Just letting you know that there are commit authors in this Pull Request who appear to not have signed a Chef CLA.

The following GitHub users do not appear to have signed a CLA:

Please sign the CLA here.

format = nil
encrypted = nil

if key_contents.include?('ENCRYPTED')
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a more specific way to test for this? The key_contents could contain the phrase ENCRYPTED in the key itself. Maybe make sure it's on the first line?

@jkeiser
Copy link
Contributor

jkeiser commented Jul 15, 2014

I've fixed the main underlying issue here (thanks TONS for the pointer and the repro): 7abe8bb

Please do continue with this for the error message--I like what you are doing.

@jkeiser
Copy link
Contributor

jkeiser commented Aug 22, 2014

Hey @cfortier2: given the underlying issue fix, should this be merged or modified?

@jkeiser jkeiser added this to the 1.0 milestone Nov 6, 2014
@jkeiser
Copy link
Contributor

jkeiser commented Nov 26, 2014

Closing for now. Reopen if you'd like to do the error message!

@jkeiser jkeiser closed this Nov 26, 2014
@jkeiser jkeiser removed the ready label Nov 26, 2014
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.

encrypted ssh keys are overwritten if a pass_phrase is not defined
3 participants