This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-17
Channels
- # aws (3)
- # beginners (104)
- # boot (11)
- # calva (3)
- # clj-kondo (1)
- # cljdoc (6)
- # cljs-dev (23)
- # cljsrn (1)
- # clojure (144)
- # clojure-dev (54)
- # clojure-europe (6)
- # clojure-italy (2)
- # clojure-nl (26)
- # clojure-spec (6)
- # clojure-sweden (1)
- # clojure-uk (13)
- # clojurescript (38)
- # core-async (9)
- # cursive (14)
- # data-science (3)
- # datascript (22)
- # datomic (17)
- # figwheel (1)
- # fulcro (4)
- # graphql (6)
- # hoplon (59)
- # jackdaw (2)
- # jobs (6)
- # jobs-discuss (44)
- # juxt (14)
- # leiningen (1)
- # luminus (3)
- # nrepl (3)
- # off-topic (12)
- # re-frame (24)
- # reagent (7)
- # reitit (7)
- # rewrite-clj (1)
- # schema (1)
- # shadow-cljs (37)
- # spacemacs (4)
- # sql (25)
- # testing (12)
- # tools-deps (11)
- # utah-clojurians (1)
I got basic auth working with jackdaw but had to create my own registry client like so
(defn cached-schema-registry-cli []
(let [restService (RestService. "")]
(CachedSchemaRegistryClient. restService 10 (doto (new java.util.HashMap) (.put "basic.auth.credentials.source" "URL")))))
(def serde-resolver
(partial resolver/serde-resolver :schema-registry-url "" :schema-registry-client (cached-schema-registry-cli)))
I'm not sure if its how jackdaw creates its default client or not but I couldn't find a way to set or get it to pick up the piece of config to tell it to extract the basic auth creds from the URLAh interesting. Looks like this class https://github.com/confluentinc/schema-registry/blob/1bad204f73f54f6c1f124017406f092d0e9e5150/avro-serializer/src/main/java/io/confluent/kafka/serializers/AbstractKafkaAvroSerDe.java#L36 has seen a few changes since I last looked at it. Might be a few features missing as a result. Nice job finding a work-around. If you have time, please do create an issue and mention the work-around.