Open enjoyear opened 3 years ago
@everesio could you suggest a workaround?
Could it be that the cipher TLS_AES_128_GCM_SHA256 not being supported? Or alternatively that the CA root certificate and the CA intermediate certificate should be imported into the truststore?
@jibanes @enjoyear Sorry for answering so late. Could you check the 0.3.0 version ?
Hi, I am trying to use the kafka-proxy as a way to do cross-VPC access for AWS MSK. First of all, I am trying to set up the proxy within the same VPC as the MSK. I am able to make it work with
--tls-enable
only. The proxy will be started as belowthen connect locally using
bin/kafka-console-consumer.sh --bootstrap-server ip-10-1-0-94.ec2.internal:3001 --topic AWSKafkaTutorialTopic2 --from-beginning
. Everything works fine.However, when I tried to add the TLS between client and proxy, things start to break. I have done 3 experiments, and I connect to all 3 using
bin/kafka-console-consumer.sh --bootstrap-server ip-10-1-0-94.ec2.internal:3001 --topic AWSKafkaTutorialTopic2 --from-beginning --consumer.config client.properties
, where theclient.properties
works fine when I connect directly to the AWS MSKbin/kafka-console-consumer.sh --bootstrap-server b-1.chen-guo-msk.abcdef.c3.kafka.us-east-1.amazonaws.com:9094 --topic AWSKafkaTutorialTopic2 --from-beginning --consumer.config client.properties
Experiment 1: using port 9094
Results
Experiment 2: using port 9092
Result:
Experiment 3: combine both
tls-enable
andproxy-listener-tls-enable
Result: exactly the same as Experiment2
I feel like there might be something wrong with how I generate the keys/certificates for the proxy, but I cannot figure out what. When I do
openssl s_client -connect ip-10-1-0-94.ec2.internal:3001
, the end of the response is like belowI checked your response in https://github.com/grepplabs/kafka-proxy/issues/40#issuecomment-644652136 and tried to disable
TLS1.3
, but it didn't help. It's always usingTLSv1.3
as I can tell through openssl. I am not sure whetherTLS1.3
is the problem. Also it seems that only tls13 is included in the binary.On the other hand, from the results in Experiment 1, we can actually tell that the TLS between client and proxy should already work. Otherwise, there shouldn't be any logs on the broker side.
Any suggestions would be great! Thank you!!