You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "vikaskr22 (via GitHub)" <gi...@apache.org> on 2026/02/25 12:53:08 UTC

[PR] RANGER-5498: Use provided saltSize parameter at all places in generat… [ranger]

vikaskr22 opened a new pull request, #860:
URL: https://github.com/apache/ranger/pull/860

   
   ## What changes were proposed in this pull request?
   
   RangerMasterKey has generateSalt(int saltSize) method. In case of FIPS, if user provided saltSize is small, then code calculates the compliant salt size and then generates the salt. The parameter of the method contains the new calculated size and this method is expected to use this size only.
   
   While copying the generated salt to target byte[], it was using the static member instance with the same variable name. Right now it is working because both has same value but it may create problem if static member and new calculated value starts containing different value. So to avoid such issues and as a good coding practice, code is updated to use the provided parameter only.
   
   
   ## How was this patch tested?
   
   - mvn build is successful
   - All KMS UTs passed.
   


-- 
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: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org