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
fix: resolved main ts error
=56cdec980cf0
diff --git a/backend/src/lib/crypto/blind-index.ts b/backend/src/lib/crypto/blind-index.tsindex 09925e4d4a..1f3b1ed7a5 100644--- a/backend/src/lib/crypto/blind-index.ts+++ b/backend/src/lib/crypto/blind-index.ts@@ -1,4 +1,4 @@-import crypto from "node:crypto";+import crypto, { webcrypto } from "node:crypto";const BLIND_INDEX_CONTEXT = "infisical-secret-value-blind-index-v1";@@ -30,7 +30,7 @@ export const deriveSecretValueBlindIndexKey = async (kmsDataKey: Buffer): Promisconst importBlindIndexKey = (blindIndexKey: Buffer) =>crypto.subtle.importKey("raw", blindIndexKey, { name: "HMAC", hash: "SHA-256" }, false, ["sign"]);-const signBlindIndex = async (secretValue: Buffer, cryptoKey: CryptoKey): Promise<string> => {+const signBlindIndex = async (secretValue: Buffer, cryptoKey: webcrypto.CryptoKey): Promise<string> => {const signature = await crypto.subtle.sign("HMAC", cryptoKey, secretValue);return Buffer.from(signature).toString("hex");@@ -56,7 +56,7 @@ export const generateSecretValueBlindIndexFromKmsKey = async (// import for each one adds threadpool work that changes nothing in the output. Lazy, because most// callers of a cipher pair never hash anything.export const createSecretValueBlindIndexer = (kmsDataKey: Buffer) => {- let cryptoKey: Promise<CryptoKey> | undefined;+ let cryptoKey: Promise<webcrypto.CryptoKey> | undefined;const getCryptoKey = () => {if (!cryptoKey) {