-
Notifications
You must be signed in to change notification settings - Fork 14
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
Only one authorized_keys is uploaded when booting to rescue #112
Comments
Hmm, I'm pretty sure the module passes the keys on to the robot API. My guess is that the robot API (or some system it uses?) only uses the first key for whatever reason, but 🤷 Unfortunatley I cannot test the module myself currently, so I won't be able to debug this anytime soon. |
(I would begin with adding |
I already dived in this direction and the body looks like the following (each & was replaced by a new line):
The documentation is indeed lacking an example. I'll try to find the source of this bug. |
I checked how the request looked like from withtin the Hetzner Robot console, and the request looks like the following:
So I tried this array syntax, and I was able to configure multiple authorized keys on the rescue system. I'll open a PR to fix the rescue autorized_keys and check if I can find an answer for the rest of the array fields. |
SUMMARY
When activating the rescue system for a Robot server, only a single SSH key is uploaded to the rescue system
/root/.ssh/authorized_keys
.ISSUE TYPE
COMPONENT NAME
community.hrobot.boot
ANSIBLE VERSION
COLLECTION VERSION
STEPS TO REPRODUCE
EXPECTED RESULTS
The 3 ssh keys to be present in the
/root/ssh/.authorized_keys
files.ACTUAL RESULTS
Only one key is present in the
/root/ssh/.authorized_keys
files.The text was updated successfully, but these errors were encountered: