oh0873 opened a new issue, #7863:
URL: https://github.com/apache/kyuubi/issues/7863

   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   
   
   ### Search before asking
   
   - [x] I have searched in the 
[issues](https://github.com/apache/kyuubi/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Describe the bug
   
   ### Describe the bug
   
   If a secret value contains multiple lines, Kyuubi does not redact it even 
when `kyuubi.server.redaction.regex` matches the config key (e.g. contains 
`password`).
   
   ### Example
   
   ```json
   "spark.example.password": 
"SHOULD_BE_REDACTED\nSHOULD_BE_REDACTED\nSHOULD_BE_REDACTED"
   
   ### Affects Version(s)
   
   1.12.0
   
   ### Kyuubi Server Log Output
   
   ```logtalk
   --conf spark.driverEnv.MULTI_LINE_ESCAPED_PRIVATE_KEY=*********(redacted) \ 
   --conf spark.driverEnv.MULTI_LINE_PRIVATE_KEY=SHOULD_BE_REDACTED_abc123 
   SHOULD_BE_REDACTED_abc456 
   SHOULD_BE_REDACTED_abc789 \ 
   --conf spark.driverEnv.SINGLE_LINE_PRIVATE_KEY=*********(redacted) \
   ```
   
   ### Kyuubi Engine Log Output
   
   ```logtalk
   
   ```
   
   ### Kyuubi Server Configurations
   
   ```yaml
   kyuubi.server.redaction.regex=(?i)private[._-]?key
   ```
   
   ### Kyuubi Engine Configurations
   
   ```yaml
   "spark.driverEnv.MULTI_LINE_ESCAPED_PRIVATE_KEY": 
"SHOULD_BE_REDACTED_abc123\\nSHOULD_BE_REDACTED_abc456\\nSHOULD_BE_REDACTED_abc789",
   "spark.driverEnv.MULTI_LINE_PRIVATE_KEY": 
"SHOULD_BE_REDACTED_abc123\nSHOULD_BE_REDACTED_abc456\nSHOULD_BE_REDACTED_abc789",
   "spark.driverEnv.SINGLE_LINE_PRIVATE_KEY": "SHOULD_BE_REDACTED_abc123",
   ```
   
   ### Additional context
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes. I would be willing to submit a PR with guidance from the Kyuubi 
community to fix.
   - [ ] No. I cannot submit a PR at this time.


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