syndesis icon indicating copy to clipboard operation
syndesis copied to clipboard

Public key authentication in SFTP connector

Open zregvart opened this issue 7 years ago • 12 comments

This is a...


[x] Feature request
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Documentation issue or request

The problem

For SFTP we support username and password authentication, we should also support public key authentication.

Expected behavior

Specify SSH private key instead of username and password to establish a connection to SFTP server.

Screenshot

Request and Response Data

API Endpoints and Schemas

Tasks involved / Steps to Reproduce

zregvart avatar May 15 '18 16:05 zregvart

First step is to verify the functionality exists at Camel level

paoloantinori avatar May 16 '18 10:05 paoloantinori

@zregvart do you mean by using the keyPair parameter in Camel-sftp component?

oscerd avatar May 16 '18 10:05 oscerd

Or using privateKey as bytes as camel-sftp provides?

oscerd avatar May 16 '18 10:05 oscerd

@oscerd I'm thinking of privateKey parameter for camel-sftp, we probably need a connector property that will accept the openssh format key and convert it to byte[] for the ftp2 component. I'd expect the users to provide the key in a text box by pasting something like:

-----BEGIN OPENSSH PRIVATE KEY-----
...
-----END OPENSSH PRIVATE KEY-----

zregvart avatar May 16 '18 11:05 zregvart

Understood, we'll need to set the preferredAuthentications in that case with public_key as first choice.

oscerd avatar May 16 '18 11:05 oscerd

@paoloantinori @heiko-braun I don't think this will go in this Sprint, I'll take care of this for the next one. Totally forget about it :-|

oscerd avatar Jun 25 '18 12:06 oscerd

Didn't have the time for this enhancement. Too much stuff also in sustaining team.

oscerd avatar Jul 13 '18 14:07 oscerd

This issue has been automatically marked as stale because it has not had any activity since 60 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions!

stale[bot] avatar Sep 14 '18 12:09 stale[bot]

Perhaps we should consider this in the next sprint. I think it makes sense for SFTP to support public key authentication.

zregvart avatar Oct 05 '18 10:10 zregvart

I completely forget about this again. Sorry.

oscerd avatar Oct 05 '18 12:10 oscerd

This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions!

stale[bot] avatar Jan 29 '19 10:01 stale[bot]

This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions!

stale[bot] avatar May 06 '19 21:05 stale[bot]