yyqdbngt opened a new pull request, #3372: URL: https://github.com/apache/rocketmq-dashboard/pull/3372
## Summary Marks `Acl2PolicyContext.accessKey`/`secretKey` as `@ToString.Exclude` and adds `Acl2PolicyContextTest` locking the contract. Coverage: - `toString` keeps the non-secret fields (`policyName`, `boundType`) while omitting both credential field names and values; - `@Data` equality/hashCode still cover the keys, so a rotated secret is not equal. ## Why The context carries credentials between the controller and service layers during ACL 2.0 export/import and is logged along the way; exposing AK/SK through `toString` is a credential leak vector. ## Testing `mvn -B test -Dtest=Acl2PolicyContextTest` — 2/2 pass; checkstyle (validate) clean. -- 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]
