You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Vikas Kumar (Jira)" <ji...@apache.org> on 2025/11/05 10:18:00 UTC

[jira] [Resolved] (RANGER-5388) Actual calculated salt size should be updated into the DB

     [ https://issues.apache.org/jira/browse/RANGER-5388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vikas Kumar resolved RANGER-5388.
---------------------------------
    Resolution: Fixed

PR has been tested , reviewed and merged. hence marking this Resolved. Thanks.

> Actual calculated salt size should be updated into the DB
> ---------------------------------------------------------
>
>                 Key: RANGER-5388
>                 URL: https://issues.apache.org/jira/browse/RANGER-5388
>             Project: Ranger
>          Issue Type: Task
>          Components: kms
>            Reporter: Vikas Kumar
>            Assignee: Vikas Kumar
>            Priority: Major
>             Fix For: 3.0.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> In FIPS enabled cluster, FIPS providers ( like BouncyCastle) requires salt size being used 
> must be at least 128 bits, that is, at least 16 in length.
>  
> Default salt size is 8. This default size is not sufficient for FIPS env, and if the salt size is not configured sufficiently through config file, KMS boot up will fail.
>  
> *Current Behaviour:* 
> Instead of failing the KMS boot up , it increases the salt size by doubling it at runtime. Salt size gets updated into the DB. But it is updating the default/configured salt size into the DB, not the newly calculated size.
>  
> Same thing happens while reading back the encrypted content from DB, if it is 8, it will be doubled and will perform decryption.
>  
> *Expected behaviour:* 
>  
> It should update the actual calculated salt size that has been used to encrypt the content. It will remove the dependency to re-calculate the salt size while decrypting, provides clarity. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)