Open sabbyanandan opened 5 years ago
We have been working to upgrade our Spring Could Stream implementations to the latest version (3.1.1). I was wondering if there have been any updates regarding this and whether we still need to have the workaround in place or not?
@mraliagha commented on Sun Apr 21 2019
I am trying to use Spring Cloud Stream (which is based on Spring Boot) application with Confluent Schema Registry. The authentication method is SSL and I am not able to pass the connection step for some reason. Either the configuration parameters are incorrect or I am hitting a bug. I would appreciate it if you could help me to realize how to resolve this issue.
Exception:
@mraliagha commented on Wed Apr 24 2019
I have gone through more depth to understand what is going on. Please correct me if I am wrong, but it looks like being able to create an SSL connection with providing username and password have not been implemented in Spring Cloud Stream yet.
I could not find anything related to creating an SSL context in the following classes: SchemaRegistryClientConfiguration ConfluentSchemaRegistryClient DefaultSchemaRegistryClient
@olegz commented on Mon Apr 29 2019
That is correct. We need to do some work there on SSL side.
@mraliagha commented on Wed May 01 2019
@olegz Any idea when that will be added?
I can see that one of the constructors accepts RestTemplate. I have tried to see if I can add the SSL context via the RestTemplate customization. It works fine at first, but when it reaches the part that wants to send the msg to Kafka it wants to validate the message with Schema Registry and for that, it uses Confluent Schema Registry client. Unfortunately, the confluent package does not have any details on the SSL setup for the schema registry client. Therefore, I have got stuck and cannot proceed further.
@olegz commented on Wed May 01 2019
@mraliagha Unfortunately we had to push it to 2.3 which will be some time in August. We basically didn't have a chance to look into this for the upcoming release. However, if you can help out and contribute something that works in a form of PR, we can help you polish it and merge. We are currently targeting 2.2 release Monday May 6.
@mraliagha commented on Wed May 01 2019
@olegz I would submit a PR if I could manage to pass the issue that I am facing. I will do my best ...
@olegz commented on Wed May 01 2019
@mraliagha I understand, but what I am also trying to say is do what you think is necessary to make it work. We'll help you to make it right. So if you feel like modifying any code, go for it we can polish it later.
Thank you for volunteering with this!
@mraliagha commented on Tue Aug 13 2019
@olegz We have actually found a workaround for this, but just wondering if this is added to the code base.
@sobychacko commented on Wed Aug 14 2019
@mraliagha This is not yet addressed. Do you mind sharing details about the workaround?
@mraliagha commented on Wed Aug 14 2019
@sobychacko
Of course not. Please find it as follows. I think it might be useful to add it as an example or to the official document for the time being.
ConfluentSchemaRegistryClient
has a constructor that accepts arestTemplate
object.To make it work there are some extra configurations that should be passed in conjunction with this code as it looks like it goes beyond the scope of Spring Cloud Stream classes and looks into Spring-Kafka to find the required configurations.