Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema registry basic auth issues #136

Open
Bigsy opened this issue May 17, 2019 · 0 comments · Fixed by #157
Open

Schema registry basic auth issues #136

Bigsy opened this issue May 17, 2019 · 0 comments · Fixed by #157

Comments

@Bigsy
Copy link

Bigsy commented May 17, 2019

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 URL. A simple workaround is to create one yourself

(defn cached-schema-registry-cli []
  (let [rest-service (RestService. "https://user:pass@schema-reg.com:13584")]
    (CachedSchemaRegistryClient. rest-service 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)))

Minor points but it would also be nice to not require a url for the resolver and also the topic-metadata map insists on a default schema even if using it from the registry.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants