-
-
Notifications
You must be signed in to change notification settings - Fork 139
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
feat: SSH-Agent Support #306
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @zoop-btc, thanks for contribution!
To be honest, I would skip Windows support for ssh agent for now and add it later if/when it will be requested.
Overall I think this change makes sense.
I've added some other comments, could you please take a look?
I think the pull request is in a good place. However I am unsure how to approach the ssh-host override as it's a per-node setting. Do you think it makes sense to define a map of proxmox-node names => proxmox ssh-hosts inside the provider configuration? |
I was thinking about it, but that doesn't looks great in the template though. |
Hey @zoop-btc, do you need a hand with this PR? I can help with testing / implementation of the last piece. Or we can do that in a separate PR. |
@bpg I can do it, but since I'm busy I'll only come around to it till late next week. If you want to do it though feel free :) |
@zoop-btc sorry about all that annoyance, I'm working on a new PVE cluster setup and the agent feature is really helpful for my case, so I used your branch for testing 😅 |
…vironmentClient creation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work @zoop-btc to put this together!
I've added agent_socket
argument and made a few minor tweaks to allow agent functionality on MacOS as well. Also, rebased on main
I'll add you as a co-author when merge the PR
Hi,
Since I cannot allow ssh password authentication I have added a quick and dirty ssh-agent support for linux and a ssh user override.
I have not implemented anything in windows since it would require multiple source files and I'm not familiar with go. This repo seems to do that so may be a good guideline for future implementation.
This draft is meant for discussion only.
Contributor's Note
Please mark the following items with an [x] if they apply to your PR.
Leave the [ ] if they are not applicable, or if you have not completed the item.
/docs
for any user-facing features or additions./examples
for any new or updated resources / data sources.make examples
to verify that the change works as expected.Community Note
Relates to #307