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
misc: used set
Sheen Capadngan05ed00834af8
diff --git a/backend/src/services/secret/secret-service.ts b/backend/src/services/secret/secret-service.tsindex 7710798950..ec17f76643 100644--- a/backend/src/services/secret/secret-service.ts+++ b/backend/src/services/secret/secret-service.ts@@ -962,7 +962,7 @@ export const secretServiceFactory = ({// secret-override to handle duplicate keys from different import levels// this prioritizes secret values from direct imports- const importedKeys: Record<string, boolean> = {};+ const importedKeys = new Set<string>();const importedEntries = decryptedImportSecrets.reduce((accum: {@@ -981,8 +981,8 @@ export const secretServiceFactory = ({}[],sec) => {- if (!importedKeys[sec.secretKey]) {- importedKeys[sec.secretKey] = true;+ if (!importedKeys.has(sec.secretKey)) {+ importedKeys.add(sec.secretKey);return [...accum, sec];}return accum;