Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

[FEATURE] Support kop for v0 version of SASL_HANDSHAKE #676

Merged
merged 13 commits into from
Aug 27, 2021

Conversation

wenbingshen
Copy link
Contributor

Fixes #667

Motivation

If SaslHandshakeRequest version is v0, a series of SASL client and server tokens corresponding to the mechanism are sent as opaque packets without wrapping the messages with Kafka protocol headers. However, KoP always parses the header before a request is processed.

Modifications

Support sasl/plain tokens are sent without Kafka SaslAuthenticate request/responses and compatible with existing authenticate.

@wenbingshen wenbingshen marked this pull request as draft August 24, 2021 07:51
@wenbingshen wenbingshen marked this pull request as ready for review August 24, 2021 17:59
@wenbingshen
Copy link
Contributor Author

@BewareMyPower This pr is ready for review, PTAL :)

@wenbingshen wenbingshen changed the title [WIP] Support kop for v0 version of SASL_HANDSHAKE [FEATURE] Support kop for v0 version of SASL_HANDSHAKE Aug 24, 2021
@BewareMyPower
Copy link
Collaborator

Could you add the comments into the source code?

@wenbingshen
Copy link
Contributor Author

@BewareMyPower I updated the code, PTAL

@wenbingshen
Copy link
Contributor Author

@BewareMyPower Thanks for your patience review. :)

@BewareMyPower BewareMyPower merged commit 2b4f545 into streamnative:master Aug 27, 2021
BewareMyPower pushed a commit that referenced this pull request Aug 30, 2021
Fixes #667 

### Motivation
If SaslHandshakeRequest version is v0, a series of SASL client and server tokens corresponding to the mechanism are sent as opaque packets without wrapping the messages with Kafka protocol headers. However, KoP always parses the header before a request is processed.

### Modifications
Support sasl/plain tokens are sent without Kafka SaslAuthenticate request/responses and compatible with existing authenticate.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Kop needs to support the v0 version of SASL_HANDSHAKE
2 participants