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

Use SDK communicator to generate SSH key pair #39

Merged
merged 3 commits into from
Aug 3, 2022

Conversation

Feder1co5oave
Copy link
Contributor

I've added a communicator.StepSSHKeyGen to let the communicator pre-generate the SSH key pair, used that key and removed the code that creates a new RSA SSH key pair in stepCreateSSHKey.

This means the plugin now supports temporary_key_pair_type and temporary_key_pair_bits.

I used digitalocean/packer-plugin-digitalocean@e88d4df as a baseline.

I've run the acceptance test and it completes successfully, after adding the required ssh_username.
I don't think this needs any change to the docs.

* support ecdsa, ed25519 temporary key algos via `temporary_key_pair_type` config
* clean up unused properties
(OpenSSH>=8.2 deprecates `ssh-rsa` pub key algorithm,
see hashicorp/packer#10074 hashicorp/packer#8609),
change docs accordingly
@Feder1co5oave Feder1co5oave requested a review from a team as a code owner June 10, 2022 14:30
@hashicorp-cla
Copy link

hashicorp-cla commented Jun 10, 2022

CLA assistant check
All committers have signed the CLA.

@Feder1co5oave
Copy link
Contributor Author

I signed the CLA and am awaiting feedback on this PR

Copy link
Contributor

@nywilken nywilken left a comment

Choose a reason for hiding this comment

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

Apologies for the delayed review. This change looks good to go.

@nywilken nywilken merged commit a49b4ce into hetznercloud:main Aug 3, 2022
@nywilken
Copy link
Contributor

nywilken commented Aug 3, 2022

The missing documentation partial was added a follow to this change. Thanks for the contribution.

@Feder1co5oave
Copy link
Contributor Author

Cheers! I think this fixes #43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants