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

Automatically generate SSH key and add to metadata #104

Open
thumperward opened this issue Aug 21, 2021 · 0 comments
Open

Automatically generate SSH key and add to metadata #104

thumperward opened this issue Aug 21, 2021 · 0 comments

Comments

@thumperward
Copy link

πŸ—£οΈ Foreword

Thank for taking the time to fill this feature request fully. Without it we may not be able to , and the issue may be closed without resolution.

πŸ™ Problem Statement

The driver documentation explains how to add an SSH key to the project metadata, or else to configure the driver to inject an existing one into the VM metadata. However there is no reason that the driver couldn't create this key on-the-fly rather than it having to exist already. This is analogous to the way e.g. kitchen-ec2 can generate ephemeral keypairs.

❔ Possible Solution

Add a generate_key function somewhere above create_instance_object which creates an ephemeral SSH key (if username is not set) and adds it to instance_metadata.

‴️ Describe alternatives you've considered

Alternatively OSlogin could be used directly, but the Ruby bindings for OSlogin are auto-generated and documentation is nonexistent.

βž• Additional context

Analogous code path for kitchen-ec2

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

No branches or pull requests

1 participant