ChinmayHegde24 opened a new pull request, #1199: URL: https://github.com/apache/ranger/pull/1199
Currently, when the master key is migrated from the KMS DB to Luna HSM using the migration tool **(DB2HSMMKUtil)**, it silently overwrites any existing key present in the HSM. This overwrite should never happen, as it could lead to loss of data if the HSM already holds the active master key. The fix is added to check the presence of alias in HSM before writing to the HSM. If the alias is already present, the write is skipped and a warning is logged. This brings the behaviour in sync with how **HSM2DBMKUtil** works. (Note: This is also missing in **RangerSafenetKeySecure** side so added fix here too) -- 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]
