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:unauthorized response for app name
Sunil Kumard67e96507a41
diff --git a/backend/src/integrations/apps.ts b/backend/src/integrations/apps.tsindex 1b40695027..98b1f11700 100644--- a/backend/src/integrations/apps.ts+++ b/backend/src/integrations/apps.ts@@ -789,7 +789,7 @@ const getAppsWindmill = async ({ accessToken }: { accessToken: string }) => {const authCheckForApps = async (data: any) => {const allAppResponse = data.map(async (app: any) => {return standardRequest.get(- `${INTEGRATION_WINDMILL_API_URL}/w/${app.name}/users/whoami`,+ `${INTEGRATION_WINDMILL_API_URL}/w/${app.id}/users/whoami`,{headers: {Authorization: `Bearer ${accessToken}`,diff --git a/backend/src/integrations/sync.ts b/backend/src/integrations/sync.tsindex e8e382ed96..139f06ecb1 100644--- a/backend/src/integrations/sync.ts+++ b/backend/src/integrations/sync.ts@@ -2049,7 +2049,7 @@ const syncSecretsWindmill = async ({// get secrets stored in windmill workspaceconst { data: getSecretsRes } = await standardRequest.get(- `${INTEGRATION_WINDMILL_API_URL}/w/${integration.app}/variables/list`,+ `${INTEGRATION_WINDMILL_API_URL}/w/${integration.appId}/variables/list`,{headers: {Authorization: `Bearer ${accessToken}`,@@ -2091,7 +2091,7 @@ const syncSecretsWindmill = async ({// create new secrets in windmill workspacemodifiedFormatForCreateSecretInjection.forEach(async (secretObj: any) => {await standardRequest.post(- `${INTEGRATION_WINDMILL_API_URL}/w/${integration.app}/variables/create`,+ `${INTEGRATION_WINDMILL_API_URL}/w/${integration.appId}/variables/create`,secretObj,{headers: {@@ -2105,7 +2105,7 @@ const syncSecretsWindmill = async ({// update old secrets already present in windmill workspacemodifiedFormatForUpdateSecretInjection.forEach(async (secretObj: any) => {await standardRequest.post(- `${INTEGRATION_WINDMILL_API_URL}/w/${integration.app}/variables/update/${secretObj.path}`,+ `${INTEGRATION_WINDMILL_API_URL}/w/${integration.appId}/variables/update/${secretObj.path}`,secretObj,{headers: {@@ -2127,7 +2127,7 @@ const syncSecretsWindmill = async ({// delete all secrets from secretsToDelete ListsecretsToDelete.forEach(async (secret: string) => {await standardRequest.delete(- `${INTEGRATION_WINDMILL_API_URL}/w/${integration.app}/variables/delete/${secret}`,+ `${INTEGRATION_WINDMILL_API_URL}/w/${integration.appId}/variables/delete/${secret}`,{headers: {Authorization: `Bearer ${accessToken}`,