mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-17 02:47:35 +00:00
smaller fixes
This commit is contained in:
@@ -1083,8 +1083,8 @@ export const kmsServiceFactory = ({
|
||||
|
||||
const isHsmActive = hsmStatus.isHsmConfigured;
|
||||
|
||||
logger.info("KMS: Generating new ROOT Key");
|
||||
const newRootKey = crypto.randomBytes(32);
|
||||
logger.info(`KMS: Generating new ROOT Key with ${isHsmActive ? "HSM" : "software"} encryption`);
|
||||
const newRootKey = isHsmActive ? await hsmService.randomBytes(32) : crypto.randomBytes(32);
|
||||
|
||||
const encryptionStrategy = isHsmActive ? RootKeyEncryptionStrategy.HSM : RootKeyEncryptionStrategy.Software;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user