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 client : No Authentication header appearing in http request #3055

Open
pibou opened this issue Mar 21, 2024 · 1 comment
Open

Comments

@pibou
Copy link

pibou commented Mar 21, 2024

Hi,

i setup a kafka producer with these properties :

props.put("schema.registry.url", this.schemaRegistryUrl);
props.put(SchemaRegistryClientConfig.BASIC_AUTH_CREDENTIALS_SOURCE,basic_auth_cred_source);
props.put(SchemaRegistryClientConfig.USER_INFO_CONFIG,basic_auth_info);

They do appear during startup dump of kafka properties. That does not mean anything, so i added SchemaRegistryClientConfig.BEARER_AUTH_CREDENTIALS_SOURCE and got the ConfigException "Only one of '%s' and '%s' may be specified"

At least, BASIC_AUTH_CREDENTIALS_SOURCE reaches the Schema Registry Client.

Nevertheless, the HTTP request made to the server registry does not contain any Authentication header.

Any clue ?

The SR client version is 7.6

@pibou pibou changed the title Schema registry client : basic auth credentials source and user info config not appearing in http request Schema registry client : No Authentication header appearing in http request Mar 21, 2024
@pibou
Copy link
Author

pibou commented Mar 21, 2024

Debugging the valueSerializer, i do find in the config (KafkaAvroSerializerConfig) the originals Map with both keys having the right values. But they do not appear in the used Map of the config.

In the Rest Service of the CachedSchemaRegistry, the BasicAuthCredentialsProvider does hold a userinfo with the right value

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

No branches or pull requests

1 participant