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
small changes
Matheus Nogueira9c71add02a0c
diff --git a/backend/src/services/secret-sync/spacelift/spacelift-sync-fns.ts b/backend/src/services/secret-sync/spacelift/spacelift-sync-fns.tsindex cee97e403a..ff07da9f47 100644--- a/backend/src/services/secret-sync/spacelift/spacelift-sync-fns.ts+++ b/backend/src/services/secret-sync/spacelift/spacelift-sync-fns.ts@@ -130,7 +130,7 @@ export const SpaceliftSyncFns = {if (configType === SpaceliftConfigType.FileMount) {const filePath = mountPath!;- const existingFile = existingElements.find((e) => e.id === filePath);+ const existingFile = existingElements.find((e) => e.id === filePath && e.type === "FILE_MOUNT");const hasSecrets = Object.keys(secretMap).length > 0;if (hasSecrets) {@@ -191,7 +191,7 @@ export const SpaceliftSyncFns = {if (configType === SpaceliftConfigType.FileMount) {const filePath = mountPath!;- const fileElement = existingElements.find((e) => e.id === filePath);+ const fileElement = existingElements.find((e) => e.id === filePath && e.type === "FILE_MOUNT");if (!fileElement || fileElement.writeOnly) return {};@@ -220,7 +220,7 @@ export const SpaceliftSyncFns = {if (configType === SpaceliftConfigType.FileMount) {const filePath = mountPath!;- const fileElement = existingElements.find((e) => e.id === filePath);+ const fileElement = existingElements.find((e) => e.id === filePath && e.type === "FILE_MOUNT");if (fileElement) {try {diff --git a/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/helpers/index.ts b/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/helpers/index.tsindex a7e9c55738..68e9527611 100644--- a/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/helpers/index.ts+++ b/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/helpers/index.ts@@ -290,8 +290,8 @@ export const getSecretSyncDestinationColValues = (secretSync: TSecretSync) => {secondaryText = "Stack";break;case SecretSync.Spacelift:- primaryText = "Context";- secondaryText = destinationConfig.contextName;+ primaryText = destinationConfig.contextName;+ secondaryText = destinationConfig.configType === "environment-variable" ? "environment variables" : "file mount";break;default:throw new Error(`Unhandled Destination Col Values ${destination}`);