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

   ### Why are the changes needed?
   
   Closes #7863. Kyuubi logs a multiline configuration value in cleartext when 
the command-line argument parser fails to recognize the `key=value` pair. Allow 
the argument pattern to match line breaks so both regex-based and explicit-key 
redaction mask the full value.
   
   ### How was this patch tested?
   
   Added regression tests to `UtilsSuite` and `CommandUtilsSuite` covering LF, 
CRLF, and CR. Both new tests failed before the fix. All 21 tests in the two 
suites passed with the fix.
   
   ```sh
   build/mvn test -pl kyuubi-common -am -Dtest=none \
     
-DwildcardSuites=org.apache.kyuubi.util.command.CommandUtilsSuite,org.apache.kyuubi.UtilsSuite
 \
     -Drat.skip=true -Pflink-provided,hive-provided,spark-provided
   ```
   
   ### Was this patch assisted by generative AI tooling?
   
   Assisted-by: OpenAI Codex (GPT-6.2 Astra)
   


-- 
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]

  • [PR] [KYUUBI #7863] Redact ... wangzhigang1999 (via GitHub) via notifications

Reply via email to