wangzhigang1999 opened a new pull request, #7843:
URL: https://github.com/apache/kyuubi/pull/7843

   ### Why are the changes needed?
   
   Non-ASCII credentials can be corrupted by byte-to-character conversion in 
SASL PLAIN and inconsistent HTTP Basic encoding in JDBC and the Web UI. The Web 
UI can also throw before sending the login request.
   
   Use UTF-8 consistently when decoding SASL PLAIN and generating HTTP Basic 
headers, including persisted Web UI credentials.
   
   Fixes #7842.
   
   ### How was this patch tested?
   
   - Added regressions: SASL suite 17/17, JDBC 9/9, Web UI authentication 
13/13. Relevant tests fail without the fixes.
   - All 93 Web UI unit tests, lint, type checking, and production build passed.
   - Validated one rebuilt image on Kubernetes with synthetic LDAPS: 10 
credential cases each through binary JDBC, HTTP JDBC, and browser login; TLS 
1.3, incorrect-password and certificate rejection checks; real Spark SQL 
queries.
   
   SQL validation used a real Spark local[2] engine with SERVER share level.
   
   ### Was this patch assisted by generative AI tooling?
   
   Assisted-by: Codex (GPT-6)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to