mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 23:27:14 +00:00
fix: handle empty string to allow clearing secret on update
This commit is contained in:
@@ -414,7 +414,8 @@ export const secretV2BridgeServiceFactory = ({
|
|||||||
type: KmsDataKey.SecretManager,
|
type: KmsDataKey.SecretManager,
|
||||||
projectId
|
projectId
|
||||||
});
|
});
|
||||||
const encryptedValue = secretValue
|
const encryptedValue =
|
||||||
|
typeof secretValue === "string"
|
||||||
? {
|
? {
|
||||||
encryptedValue: secretManagerEncryptor({ plainText: Buffer.from(secretValue) }).cipherTextBlob,
|
encryptedValue: secretManagerEncryptor({ plainText: Buffer.from(secretValue) }).cipherTextBlob,
|
||||||
references: getAllSecretReferences(secretValue).nestedReferences
|
references: getAllSecretReferences(secretValue).nestedReferences
|
||||||
|
|||||||
Reference in New Issue
Block a user