-
Notifications
You must be signed in to change notification settings - Fork 931
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
Always take the first declared SASL/PLAIN auth type #5990
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for fixing it.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #5990 +/- ##
============================================
- Coverage 61.12% 61.10% -0.03%
Complexity 23 23
============================================
Files 622 622
Lines 37035 37036 +1
Branches 5023 5024 +1
============================================
- Hits 22637 22629 -8
- Misses 11952 11957 +5
- Partials 2446 2450 +4 ☔ View full report in Codecov by Sentry. |
# 🔍 Description ## Issue References 🔗 #5185 changed the type of `kyuubi.authentication` from `Seq`(ordered) to `Set`(unordered), which break the assumption of ``` Note that: for SASL authentication, KERBEROS and PLAIN auth types are supported at the same time, and only the first specified PLAIN auth type is valid. ``` ## Describe Your Solution 🔧 Restore the type to Seq ## Types of changes 🔖 - [x] Bugfix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Test Plan 🧪 UT is updated --- # Checklist 📝 - [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html) **Be nice. Be informative.** Closes #5990 from pan3793/auth-plain. Closes #5990 acae25f [Cheng Pan] fix doc cef7dba [Cheng Pan] fix 87b370f [Cheng Pan] Always take the first declared SASL/PLAIN auth type Authored-by: Cheng Pan <[email protected]> Signed-off-by: Cheng Pan <[email protected]> (cherry picked from commit 3b2e674) Signed-off-by: Cheng Pan <[email protected]>
Thanks, merged to master/1.8 |
# 🔍 Description ## Issue References 🔗 apache#5185 changed the type of `kyuubi.authentication` from `Seq`(ordered) to `Set`(unordered), which break the assumption of ``` Note that: for SASL authentication, KERBEROS and PLAIN auth types are supported at the same time, and only the first specified PLAIN auth type is valid. ``` ## Describe Your Solution 🔧 Restore the type to Seq ## Types of changes 🔖 - [x] Bugfix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Test Plan 🧪 UT is updated --- # Checklist 📝 - [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html) **Be nice. Be informative.** Closes apache#5990 from pan3793/auth-plain. Closes apache#5990 acae25f [Cheng Pan] fix doc cef7dba [Cheng Pan] fix 87b370f [Cheng Pan] Always take the first declared SASL/PLAIN auth type Authored-by: Cheng Pan <[email protected]> Signed-off-by: Cheng Pan <[email protected]>
# 🔍 Description ## Issue References 🔗 apache#5185 changed the type of `kyuubi.authentication` from `Seq`(ordered) to `Set`(unordered), which break the assumption of ``` Note that: for SASL authentication, KERBEROS and PLAIN auth types are supported at the same time, and only the first specified PLAIN auth type is valid. ``` ## Describe Your Solution 🔧 Restore the type to Seq ## Types of changes 🔖 - [x] Bugfix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Test Plan 🧪 UT is updated --- # Checklist 📝 - [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html) **Be nice. Be informative.** Closes apache#5990 from pan3793/auth-plain. Closes apache#5990 acae25f [Cheng Pan] fix doc cef7dba [Cheng Pan] fix 87b370f [Cheng Pan] Always take the first declared SASL/PLAIN auth type Authored-by: Cheng Pan <[email protected]> Signed-off-by: Cheng Pan <[email protected]>
🔍 Description
Issue References 🔗
#5185 changed the type of
kyuubi.authentication
fromSeq
(ordered) toSet
(unordered), which break the assumption ofDescribe Your Solution 🔧
Restore the type to Seq
Types of changes 🔖
Test Plan 🧪
UT is updated
Checklist 📝
Be nice. Be informative.