-
Notifications
You must be signed in to change notification settings - Fork 24
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
Confluence cloud interop broken #368
Comments
I will share my analysis of this issue here. Confluent Cloud requires Basic Auth where the username is the api key and the password is the api secret. The error appears to be that a 401 http response is returned when making a request to the
The ktor client is instructed to send Basic Auth header when an apiKey and apiSecret are provided (See class SchemaRegistry.kt):
401 http responses are common for Basic Auth because it is the first response of the server; after this the client can send the Basi Auth header (see here). It may be that we are experiencing 401 errors caused by this first server response. According to the docs, we can instruct ktor with the sendWithoutRequest parameter to send the Basic Auth header immediately to prevent the 401 http response, like so:
This does not solve the issue with the registration of schemas to Confluent Cloud, however. I am certain failure to include Basic Auth headers is the cause of the error, because the error on the
As far as I can see, the root cause of this problem appears to be that ktor does not correctly include the Basic Auth headers, although instructed to do so in the config. |
Solved by #369 |
When upgrading from release v0.8.5 to v0.8.6, the catalog-server:kafka-init container is unable to connect to confluent cloud.
The error occurs during authentication:
The problem seems to originate here. I believe the issue was introduced in this commit aefea95
Debugging so far:
The text was updated successfully, but these errors were encountered: