mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 01:52:22 +00:00
Remove storage of protected key
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import Aes256Gcm from '@app/components/utilities/cryptography/aes-256-gcm';
|
||||
import { deriveArgonKey } from '@app/components/utilities/cryptography/crypto';
|
||||
|
||||
import { KeyService } from '../services';
|
||||
|
||||
/**
|
||||
* @param {Object} obj
|
||||
* @param {Number} obj.encryptionVersion
|
||||
@@ -79,6 +81,7 @@ let privateKey;
|
||||
throw new Error('Failed to decrypt private key');
|
||||
}
|
||||
|
||||
KeyService.setPrivateKey(privateKey);
|
||||
return privateKey;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user