Re: User ID / Password based authentication for Kafka Connect Source connector REST Interface

2020-05-22 Thread ashish sood
Thanks a lot Robin. You saved my weekend :)

I noticed that we would need to store the password in text format.
Similarly for SCRAM authentication I have also updated the kafka
infrastructure credentials in text format.
[producer.sasl.jaas.config=org.apache.kafka.common.security.scram.ScramLoginModule
required \
 username="x" \
 password="";
]

Is there a way both of these can be stored in encrypted/encoded format  ?

Regards

On Fri, May 22, 2020 at 3:49 PM Robin Moffatt  wrote:

> See here:
>
> https://docs.confluent.io/current/security/basic-auth.html#basic-auth-kconnect
>
>
> --
>
> Robin Moffatt | Senior Developer Advocate | ro...@confluent.io | @rmoff
>
>
> On Fri, 22 May 2020 at 15:42,  wrote:
>
> > Hi Team,
> >
> > I have configured a Kafka Connect source connector on Distributed worker
> > and I am using the REST Interface for administering it like for
> > starring/stopping/querying etc [curl https://host:port/connectors , curl
> > https://host:port/connectors/https://host:port
> /connectors/%3cname>>
> > etc].
> >
> > I need to configure a user-id/password based authentication for this so
> > that users must give the user-id & password to issue curl commands. Could
> > you please help on this on how to achieve this.
> >
> > Regards
> > Ashish Sood
> > +44 (0) 7440258835
> >
> > This e-mail and any files transmitted with it are for the sole use of the
> > intended recipient(s) and may contain confidential and privileged
> > information. If you are not the intended recipient(s), please reply to
> the
> > sender and destroy all copies of the original message. Any unauthorized
> > review, use, disclosure, dissemination, forwarding, printing or copying
> of
> > this email, and/or any action taken in reliance on the contents of this
> > e-mail is strictly prohibited and may be unlawful. Where permitted by
> > applicable law, this e-mail and other e-mail communications sent to and
> > from Cognizant e-mail addresses may be monitored. This e-mail and any
> files
> > transmitted with it are for the sole use of the intended recipient(s) and
> > may contain confidential and privileged information. If you are not the
> > intended recipient(s), please reply to the sender and destroy all copies
> of
> > the original message. Any unauthorized review, use, disclosure,
> > dissemination, forwarding, printing or copying of this email, and/or any
> > action taken in reliance on the contents of this e-mail is strictly
> > prohibited and may be unlawful. Where permitted by applicable law, this
> > e-mail and other e-mail communications sent to and from Cognizant e-mail
> > addresses may be monitored.
> >
>


Re: User ID / Password based authentication for Kafka Connect Source connector REST Interface

2020-05-22 Thread Robin Moffatt
See here:
https://docs.confluent.io/current/security/basic-auth.html#basic-auth-kconnect


-- 

Robin Moffatt | Senior Developer Advocate | ro...@confluent.io | @rmoff


On Fri, 22 May 2020 at 15:42,  wrote:

> Hi Team,
>
> I have configured a Kafka Connect source connector on Distributed worker
> and I am using the REST Interface for administering it like for
> starring/stopping/querying etc [curl https://host:port/connectors , curl
> https://host:port/connectors/https://host:port/connectors/%3cname>>
> etc].
>
> I need to configure a user-id/password based authentication for this so
> that users must give the user-id & password to issue curl commands. Could
> you please help on this on how to achieve this.
>
> Regards
> Ashish Sood
> +44 (0) 7440258835
>
> This e-mail and any files transmitted with it are for the sole use of the
> intended recipient(s) and may contain confidential and privileged
> information. If you are not the intended recipient(s), please reply to the
> sender and destroy all copies of the original message. Any unauthorized
> review, use, disclosure, dissemination, forwarding, printing or copying of
> this email, and/or any action taken in reliance on the contents of this
> e-mail is strictly prohibited and may be unlawful. Where permitted by
> applicable law, this e-mail and other e-mail communications sent to and
> from Cognizant e-mail addresses may be monitored. This e-mail and any files
> transmitted with it are for the sole use of the intended recipient(s) and
> may contain confidential and privileged information. If you are not the
> intended recipient(s), please reply to the sender and destroy all copies of
> the original message. Any unauthorized review, use, disclosure,
> dissemination, forwarding, printing or copying of this email, and/or any
> action taken in reliance on the contents of this e-mail is strictly
> prohibited and may be unlawful. Where permitted by applicable law, this
> e-mail and other e-mail communications sent to and from Cognizant e-mail
> addresses may be monitored.
>


User ID / Password based authentication for Kafka Connect Source connector REST Interface

2020-05-22 Thread Ashish.Sood
Hi Team,

I have configured a Kafka Connect source connector on Distributed worker and I 
am using the REST Interface for administering it like for 
starring/stopping/querying etc [curl https://host:port/connectors , curl 
https://host:port/connectors/https://host:port/connectors/%3cname>> etc].

I need to configure a user-id/password based authentication for this so that 
users must give the user-id & password to issue curl commands. Could you please 
help on this on how to achieve this.

Regards
Ashish Sood
+44 (0) 7440258835

This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted by applicable law, this e-mail 
and other e-mail communications sent to and from Cognizant e-mail addresses may 
be monitored. This e-mail and any files transmitted with it are for the sole 
use of the intended recipient(s) and may contain confidential and privileged 
information. If you are not the intended recipient(s), please reply to the 
sender and destroy all copies of the original message. Any unauthorized review, 
use, disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted by applicable law, this e-mail 
and other e-mail communications sent to and from Cognizant e-mail addresses may 
be monitored.


User ID / Password based authentication for Kafka Connect Source connector REST Interface

2020-05-22 Thread Sood Ashish (UK) - Cognizant
Hi Team,



I have configured a Kafka Connect source connector on Distributed worker and I 
am using the REST Interface for administering it like for 
starring/stopping/querying etc [curl https://host:port/connectors , curl 
https://host:port/connectors/https://host:port/connectors/%3cname>> etc].



I need to configure a user-id/password based authentication for this so that 
users must give the user-id & password to issue curl commands. Could you please 
help on this on how to achieve this.



Regards


This electronic message contains information from Telefónica UK Limited which 
may be privileged or confidential. The information is intended to be for the 
use of the individual(s) or entity named above. If you are not the intended 
recipient be aware that any disclosure, copying distribution or use of the 
contents of this information is prohibited. If you have received this 
electronic message in error, please notify us by telephone or email. 
Switchboard: +44 (0)113 272 2000 Contact: www.o2.co.uk/contactus Telefónica UK 
Limited, 260 Bath Road, Slough, Berkshire SL1 4DX. Registered in England and 
Wales: 1743099. VAT number: GB 778 6037 85