You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by vishnu murali <vi...@gmail.com> on 2020/07/14 10:09:56 UTC
Kafka SFTP connector
Hi all,
I am using SFTP connector which that SFTP connection can be accessed by
using public key file.
How can I give this configuration in postman to start sftp connector?
Anyone have any suggestions?
Re: Kafka SFTP connector
Posted by vishnu murali <vi...@gmail.com>.
Thanks a lot Ricardo
I will try that 😊
On Wed, Jul 15, 2020, 19:11 Ricardo Ferreira <ri...@riferrei.com> wrote:
> The `tls.private.key` type is indeed modeled as a password but for the
> sake of how to assign values; it is just a string. Therefore, you can
> provide any valid string to it regardless if it is long or not.
>
> Regarding escaping, I understand how this can be a PITA. I would recommend
> either:
>
> 1. *Using Postman variables*: define a variable with the public key and
> then reference in the payload using the `{{$var.name}}` notation.
>
> 2. *Use a Bastion Server and cURL*: you can use a bastion server to SSH
> from your machine and then have access to the machine that hosts your Kafka
> Connect server. While in there; you can use cURL to execute the POST
> command along with the `--data-urlencode` parameter.
>
> Thanks,
>
> -- Ricardo
> On 7/14/20 11:30 PM, vishnu murali wrote:
>
> Hi Ricardo
>
> Thanks for the response
>
> But the tls.private.key type was a password and I am giving request
> through postman
>
> In this place how can we give that public key value in postman as a string
>
> That public key having so many characters which not included within that
> string double quotes..
>
> More escape sequence will be there in the public key
>
> In this situation do u know how can we use this??
>
> On Wed, Jul 15, 2020, 02:06 Ricardo Ferreira <ri...@riferrei.com>
> wrote:
>
>> Vishnu,
>>
>> A public key file can be specified via the property `tls.public.key`.
>> Thanks,
>>
>> -- Ricardo
>> On 7/14/20 6:09 AM, vishnu murali wrote:
>>
>> Hi all,
>>
>> I am using SFTP connector which that SFTP connection can be accessed by
>> using public key file.
>>
>> How can I give this configuration in postman to start sftp connector?
>>
>> Anyone have any suggestions?
>>
>>
>>
Re: Kafka SFTP connector
Posted by Ricardo Ferreira <ri...@riferrei.com>.
The `tls.private.key` type is indeed modeled as a password but for the
sake of how to assign values; it is just a string. Therefore, you can
provide any valid string to it regardless if it is long or not.
Regarding escaping, I understand how this can be a PITA. I would
recommend either:
1. *Using Postman variables*: define a variable with the public key and
then reference in the payload using the `{{$var.name}}` notation.
2. *Use a Bastion Server and cURL*: you can use a bastion server to SSH
from your machine and then have access to the machine that hosts your
Kafka Connect server. While in there; you can use cURL to execute the
POST command along with the `--data-urlencode` parameter.
Thanks,
-- Ricardo
On 7/14/20 11:30 PM, vishnu murali wrote:
> Hi Ricardo
>
> Thanks for the response
>
> But the tls.private.key type was a password and I am giving request
> through postman
>
> In this place how can we give that public key value in postman as a string
>
> That public key having so many characters which not included within
> that string double quotes..
>
> More escape sequence will be there in the public key
>
> In this situation do u know how can we use this??
>
> On Wed, Jul 15, 2020, 02:06 Ricardo Ferreira <riferrei@riferrei.com
> <ma...@riferrei.com>> wrote:
>
> Vishnu,
>
> A public key file can be specified via the property `tls.public.key`.
>
> Thanks,
>
> -- Ricardo
>
> On 7/14/20 6:09 AM, vishnu murali wrote:
>> Hi all,
>>
>> I am using SFTP connector which that SFTP connection can be accessed by
>> using public key file.
>>
>> How can I give this configuration in postman to start sftp connector?
>>
>> Anyone have any suggestions?
>>
Re: Kafka SFTP connector
Posted by vishnu murali <vi...@gmail.com>.
Hi Ricardo
Thanks for the response
But the tls.private.key type was a password and I am giving request through
postman
In this place how can we give that public key value in postman as a string
That public key having so many characters which not included within that
string double quotes..
More escape sequence will be there in the public key
In this situation do u know how can we use this??
On Wed, Jul 15, 2020, 02:06 Ricardo Ferreira <ri...@riferrei.com> wrote:
> Vishnu,
>
> A public key file can be specified via the property `tls.public.key`.
> Thanks,
>
> -- Ricardo
> On 7/14/20 6:09 AM, vishnu murali wrote:
>
> Hi all,
>
> I am using SFTP connector which that SFTP connection can be accessed by
> using public key file.
>
> How can I give this configuration in postman to start sftp connector?
>
> Anyone have any suggestions?
>
>
>
Re: Kafka SFTP connector
Posted by Ricardo Ferreira <ri...@riferrei.com>.
Vishnu,
A public key file can be specified via the property `tls.public.key`.
Thanks,
-- Ricardo
On 7/14/20 6:09 AM, vishnu murali wrote:
> Hi all,
>
> I am using SFTP connector which that SFTP connection can be accessed by
> using public key file.
>
> How can I give this configuration in postman to start sftp connector?
>
> Anyone have any suggestions?
>