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

public-keys support #1

Open
vincentbernat opened this issue Nov 3, 2016 · 1 comment
Open

public-keys support #1

vincentbernat opened this issue Nov 3, 2016 · 1 comment

Comments

@vincentbernat
Copy link

Hey!

EC2 provides SSH keys through /public-keys/0/openssh-key. Is that possible to serve something similar with fakecloud?

@craig-sanders
Copy link
Owner

Certainly, just add a get '/public-keys/0/openssh-key' sub { ... }; subroutine that outputs the key in the right format (text/plain, probably - most of the cloud-init data is). That should be enough for a bare-minimum simple case.

I'd have to read the docs on that to know whether there were more complicated options or other kinds of data available under/public-keys/, but I doubt that it would be difficult to add. No more difficult than providing data for the various /user-data/* requests was, and that wasn't very difficult at all.

It should even be possible to somehow share the keys with the user-data authkeys so that they only have to be added once.

patches and merge requests are welcome.

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

2 participants