Skip to content

RANGER-5408: Make MasterKey size configurable for RangerHSM#865

Open
vikaskr22 wants to merge 1 commit intoapache:masterfrom
vikaskr22:master-RANGER-5408
Open

RANGER-5408: Make MasterKey size configurable for RangerHSM#865
vikaskr22 wants to merge 1 commit intoapache:masterfrom
vikaskr22:master-RANGER-5408

Conversation

@vikaskr22
Copy link
Contributor

What changes were proposed in this pull request?

MasterKey keySize was fixed to 128 for LunaHSM.
This PR makes the keySize configurable and sets the default size to 256.

This PR has also introduced following config prop that can be used to set the size.

Config file: dbks-site.xml

Config property: > ranger.kms.hsm.masterkey.size
Possible values: 128, 192, 256

How was this patch tested?

  • mvn clean install
  • Tested the generation of Key with default value 256 in LunaHSM
  • Tested the config property with 192 as value and it was also working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant