feat(kafka-queue): plain|scram-sha-256|scram-sha-512 mechanism config support#91
Open
wintbiit wants to merge 3 commits intozeromicro:masterfrom
Open
feat(kafka-queue): plain|scram-sha-256|scram-sha-512 mechanism config support#91wintbiit wants to merge 3 commits intozeromicro:masterfrom
wintbiit wants to merge 3 commits intozeromicro:masterfrom
Conversation
Author
|
支持了 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Greptile Summary
This review covers only the changes made since the last review (commit 8cce566), not the entire PR.
The latest changes address the critical issue identified in the previous review by adding a proper default case to the SASL mechanism switch statement. The developer has implemented a robust error handling approach that returns a descriptive error message when an unsupported mechanism is encountered, preventing the potential runtime panic that could have occurred from passing a nil mechanism to the Kafka dialer.
The implementation now properly validates all mechanism values at runtime, complementing the existing compile-time validation tags in the configuration struct. This change ensures that any configuration errors are caught early in the queue creation process with clear error messaging, maintaining the integrity of the Kafka connection establishment flow.
Confidence score: 5/5