silly-apple-97303
09/04/2020, 9:53 PM- name: SPRING_KAFKA_PROPERTIES_BASIC_AUTH_CREDENTIALS_SOURCE
value: USER_INFO
- name: SPRING_KAFKA_PROPERTIES_BASIC_AUTH_USER_INFO
valueFrom:
secretKeyRef:
name: "kafka-schema-registry-credentials"
key: "user-info"
And the logs from both MAE/MCE look like:
16:21:26.721 [main] INFO i.c.k.s.KafkaAvroDeserializerConfig - KafkaAvroDeserializerConfig values:
schema.registry.url = [redacted]
<http://basic.auth.user.info|basic.auth.user.info> = [hidden]
auto.register.schemas = true
max.schemas.per.subject = 1000
basic.auth.credentials.source = USER_INFO
<http://schema.registry.basic.auth.user.info|schema.registry.basic.auth.user.info> = [hidden]
specific.avro.reader = false
value.subject.name.strategy = class io.confluent.kafka.serializers.subject.TopicNameStrategy
key.subject.name.strategy = class io.confluent.kafka.serializers.subject.TopicNameStrategy
16:21:26.857 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka version: 2.2.1-cp1
However, doing the same for the GMS is not working. Specifically I get these warn log messages on startup and the configs are not attached to the serializer:
16:20:23.481 [main] INFO i.c.k.s.KafkaAvroSerializerConfig - KafkaAvroSerializerConfig values:
schema.registry.url = [redacted]
max.schemas.per.subject = 1000
16:20:24.213 [main] WARN o.a.k.c.producer.ProducerConfig - The configuration '<http://basic.auth.user.info|basic.auth.user.info>' was supplied but isn't a known config.
16:20:24.215 [main] WARN o.a.k.c.producer.ProducerConfig - The configuration 'basic.auth.credentials.source' was supplied but isn't a known config.
16:20:24.217 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka version: 2.3.0
When digging into this I noticed the MAE/MCE are using kafka 2.2.1-cp1
(confluent platform version) while the GMS is using 2.3.0
(non-confluent platform version). I'm thinking regular non confluent platform clients might not support the same set of schema registry configurations.silly-apple-97303
09/04/2020, 9:56 PMbumpy-keyboard-50565
09/04/2020, 10:07 PMsilly-apple-97303
09/08/2020, 10:31 PMkafka-avro-serializer
that supported schema registry configuration while the GMS service was using a very old version that did not.silly-apple-97303
09/08/2020, 10:35 PMbumpy-keyboard-50565
09/08/2020, 11:19 PMsilly-apple-97303
09/09/2020, 2:39 PMsilly-apple-97303
09/09/2020, 7:27 PMbumpy-keyboard-50565
09/09/2020, 7:35 PMsilly-apple-97303
09/09/2020, 7:40 PMCOMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -p datahub build
built the images locally, pushed to dockerhub, deployed them to our k8s cluster, and verified GMS now connects to the schema registry with basic auth and processes events instead of crashing.
I tried validating nothing else broke, but I'm still new to datahub so not sure what sort of end to end testing you do.bumpy-keyboard-50565
09/09/2020, 10:06 PMbrash-airplane-35511
09/19/2020, 10:38 AMbumpy-keyboard-50565
09/19/2020, 1:02 PMsilly-apple-97303
09/21/2020, 3:20 PM