yyqdbngt opened a new pull request, #3348:
URL: https://github.com/apache/rocketmq-dashboard/pull/3348

   ## Summary
   
   Marks the persisted cloud credential's `accessKey` and `secretKey` as 
`@ToString.Exclude` so the entity's Lombok `toString` (used in 
logging/debugging paths) never emits the credentials, and adds 
`RmqCloudCredentialTest` locking the contract.
   
   Coverage:
   - `toString` keeps the non-secret fields (`name`, `vendor`) while omitting 
both the credential field names and their values;
   - `@Data` equality/hashCode still cover the credential keys, so a rotated 
secret is not equal.
   
   ## Why
   
   The entity is logged during credential lifecycle operations; exposing AK/SK 
through `toString` is a credential leak vector.
   
   ## Testing
   
   `mvn -B test -Dtest=RmqCloudCredentialTest` — 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]

Reply via email to