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
✨ Add SSH overrides for user, host, and port - N8N-3040 #2333
Conversation
@pemontto Thanks for your contribution
This seems to be an overlook.
Not sure if I fully understand what you want to do. But, to control what is shown within a collection based on a field in the root level you can https://github.com/n8n-io/n8n/blob/master/packages/nodes-base/nodes/Airtable/Airtable.node.ts#L423 With regards to adding those fields, let me discuss them with a coworker. Will keep you posted. |
045e56e
to
257624d
Compare
257624d
to
314b28d
Compare
@RicardoE105 thanks for the pointer! I've updated and tested the nested Will look at reviewing the creds in another PR. |
@pemontto ok, this is something that you can do using expressions in the credentials. Did you try that? Since this can already be done, and even if we included it, we would have to add it to other nodes as well (we try as much as we can to keep consistency in the nodes), sadly we are not going to merge it. We Appreciate the contribution. I hope that makes sense. Let me know if you have further questions. |
@RicardoE105 ahh I wasn't aware that was possible. While that's useful it doesn't actually let the node connect to multiple hosts, as the |
You have to provide the hosts as the input and process them one by one (you need the split batches node), then in the ssh node's credentials, you reference the hots using expressions. Why? because using expressions in the credentials only workss with the first item. |
Closing this PR as it is something that we can partially do, as explained above. Also, at some point, we will add a feature to be able to reference credentials dynamically without the current limitations. @pemontto feel free to open this PR at any time if you have further questions. And, thanks very much for the contribution. |
This PR adds the ability to override the SSH host, username, and port.
I'm not sure why SSH credentials are so tightly coupled to username, host, and port. Often one set of credentials can be used to access multiple hosts, especially with SSH keys.
A couple of questions:
options.fileName
to display based on thosedisplayOptions
I commented out, however we always want the new override options visible. SettingdisplayOptions
onoptions.fileName
directly causes errors in the browser.Result showing connection to multiple users, and gracefully handling errors when using
Continue On Fail
: