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

Payload deserialization fails when basic auth is used with schema registry #95

Closed
robbavey opened this issue Jun 23, 2021 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@robbavey
Copy link
Contributor

Steps to reproduce:

  • Setup confluent schema registry using the same version included in the integration tests in this plugin
  • Add the following lines to schema-registry.properties:
authentication.method=BASIC
authentication.roles=admin,developer,user,sr-user
authentication.realm=SchemaRegistry-Props
  • Create a jaas.config file to enable password login on the schema registry:
SchemaRegistry-Props {
  org.eclipse.jetty.jaas.spi.PropertyFileLoginModule required
  file="/users/robbavey/code/plugins/logstash-integration-kafka/pwd"
  debug="true";
};
  • Create a password file to authenticate against:
barney: changeme,user,developer
input {
kafka {
'schema_registry_url' => 'http://localhost:8081'
'schema_registry_key' => 'barney'
'schema_registry_secret' => 'changeme'
'topics' => ['authed']
'codec' => 'plain'
'group_id' => 'xxxx'
'auto_offset_reset' => 'earliest'
 'enable_auto_commit' => 'true' }
}

Observed Behaviour
Once data starts flowing into the topic, the following error occurs:

org.apache.kafka.common.errors.SerializationException: Error deserializing key/value for partition authed-0 at offset 0. If needed, please seek past the record to continue consumption.
Caused by: org.apache.kafka.common.errors.SerializationException: Error retrieving Avro unknown schema for id 81
Caused by: io.confluent.kafka.schemaregistry.client.rest.exceptions.RestClientException: Unauthorized; error code: 401
@robbavey
Copy link
Contributor Author

robbavey commented Jul 9, 2021

Fixed by #94

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants