zjncs opened a new pull request, #6572: URL: https://github.com/apache/rocketmq-dashboard/pull/6572
### What ChangePasswordDTO is the change-password request. It had no test. This pins: both secrets are required, the new password is bounded 8..256 on both sides (7 and 257 rejected, 8 and 256 accepted), and neither secret ever reaches toString() - the DTO travels through request logging and error reporting, so a lost @ToString.Exclude would leak live credentials into the logs. ### Verification - New tests on unmodified code: **4/4 green**, checkstyle clean. - Discriminating mutation: @ToString.Exclude removed from newPassword (red - the leak is caught). - Restored: green. Test-only change; no product code touched. -- 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]
