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: send current app settings with env sync update
Afrie Irham5ce67bf750a2
diff --git a/backend/src/integrations/sync.ts b/backend/src/integrations/sync.tsindex 7aa74112f5..28103b57f6 100644--- a/backend/src/integrations/sync.ts+++ b/backend/src/integrations/sync.ts@@ -2268,11 +2268,21 @@ const syncSecretsDigitalOceanAppPlatform = async ({secrets: any;accessToken: string;}) => {+ // get current app settings+ const appSettings = (+ await standardRequest.get(`${INTEGRATION_DIGITAL_OCEAN_API_URL}/v2/apps/${integration.appId}`, {+ headers: {+ Authorization: `Bearer ${accessToken}`,+ Accept: "application/json"+ }+ })+ ).data.app.spec;+await standardRequest.put(`${INTEGRATION_DIGITAL_OCEAN_API_URL}/v2/apps/${integration.appId}`,{spec: {- name: integration.app,+ ...appSettings,envs: Object.entries(secrets).map(([key, value]) => ({ key, value }))}},@@ -2283,7 +2293,7 @@ const syncSecretsDigitalOceanAppPlatform = async ({}});-}+};/*** Sync/push [secrets] to Windmill with name [integration.app]