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(secret-sync): type lock key helper against the sync row
DimitrisStaratzisec44e558811e
diff --git a/backend/src/services/secret-sync/secret-sync-fns.ts b/backend/src/services/secret-sync/secret-sync-fns.tsindex 38c19d3247..848d9025e4 100644--- a/backend/src/services/secret-sync/secret-sync-fns.ts+++ b/backend/src/services/secret-sync/secret-sync-fns.ts@@ -28,7 +28,6 @@ import {TPreSaveTransformSyncOptionsFn,TPreSaveTransformSyncOptionsParams,TSecretMap,- TSecretSync,TSecretSyncListItem,TSecretSyncWithCredentials,TSyncSecretsResult@@ -757,9 +756,12 @@ const MAX_MESSAGE_LENGTH = 1024;// Cloudflare Workers variables are written as the Worker's full binding list, so two syncs writing to one// Worker at the same time would each drop what the other just wrote. Every write job on a Worker shares one// lock; other destinations only need the per-sync lock.-export const getSecretSyncWriteLockKeys = (- secretSync: Pick<TSecretSync, "id" | "destination" | "connectionId" | "destinationConfig">-) => {+export const getSecretSyncWriteLockKeys = (secretSync: {+ id: string;+ destination: string;+ connectionId: string;+ destinationConfig: unknown;+}) => {const keys: string[] = [KeyStorePrefixes.SecretSyncLock(secretSync.id)];if (secretSync.destination === SecretSync.CloudflareWorkers) {