yyqdbngt opened a new pull request, #3401: URL: https://github.com/apache/rocketmq-dashboard/pull/3401
### Summary `CredentialUtils` encodes secrets as base64 before persistence and only partially reveals them in list views. The existing tests focused on `mask` boundaries and malformed UTF-8 decoding, but left `encodeBase64` entirely uncovered and did not exercise null or invalid plaintext handling in `decodeBase64`. ### Changes - `encodeBase64` round-trips ASCII secrets and multibyte (CJK + supplementary) text through `decodeBase64` - `encodeBase64` and `decodeBase64` preserve `null` inputs - `decodeBase64` returns non-base64 plaintext unchanged instead of corrupting it ### Testing `mvn test -Dtest=CredentialUtilsTest` passes: 12 tests, 0 failures (up from 7). -- 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]
