Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
patch encoding type for kms
Maidul Islamf075ff23a919
diff --git a/backend/src/services/kms/kms-service.ts b/backend/src/services/kms/kms-service.tsindex 24d9018677..97d2b29d67 100644--- a/backend/src/services/kms/kms-service.ts+++ b/backend/src/services/kms/kms-service.ts@@ -77,7 +77,7 @@ export const kmsServiceFactory = ({ kmsDAL, kmsRootConfigDAL, keyStore }: TKmsSe// This will switch to a seal process and HMS flow in futureconst encryptionKey = appCfg.ENCRYPTION_KEY || appCfg.ROOT_ENCRYPTION_KEY;// if root key its base64 encoded- const isBase64 = Boolean(appCfg.ROOT_ENCRYPTION_KEY);+ const isBase64 = !appCfg.ENCRYPTION_KEY;if (!encryptionKey) throw new Error("Root encryption key not found for KMS service.");const encryptionKeyBuffer = Buffer.from(encryptionKey, isBase64 ? "base64" : "utf8");