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 Vercel get apps response encoding
Tuan Dang2765f7e48884
diff --git a/backend/src/integrations/apps.ts b/backend/src/integrations/apps.tsindex 3d834d8768..d54486e175 100644--- a/backend/src/integrations/apps.ts+++ b/backend/src/integrations/apps.ts@@ -146,7 +146,8 @@ const getAppsVercel = async ({const res = (await axios.get(`${INTEGRATION_VERCEL_API_URL}/v9/projects`, {headers: {- Authorization: `Bearer ${accessToken}`+ Authorization: `Bearer ${accessToken}`,+ 'Accept-Encoding': 'application/json'},...( integrationAuth?.teamId ? {params: {@@ -155,7 +156,7 @@ const getAppsVercel = async ({} : {})})).data;-+apps = res.projects.map((a: any) => ({name: a.name}));@@ -185,7 +186,8 @@ const getAppsNetlify = async ({const res = (await axios.get(`${INTEGRATION_NETLIFY_API_URL}/api/v1/sites`, {headers: {- Authorization: `Bearer ${accessToken}`+ Authorization: `Bearer ${accessToken}`,+ 'Accept-Encoding': 'application/json'}})).data;diff --git a/backend/src/integrations/exchange.ts b/backend/src/integrations/exchange.tsindex 8650b31a09..1e08a701f6 100644--- a/backend/src/integrations/exchange.ts+++ b/backend/src/integrations/exchange.ts@@ -141,7 +141,7 @@ const exchangeCodeAzure = async ({new URLSearchParams({grant_type: 'authorization_code',code: code,- scope: 'https://vault.azure.net/.default openid offline_access', // TODO: do we need all these permissions?+ scope: 'https://vault.azure.net/.default openid offline_access',client_id: CLIENT_ID_AZURE,client_secret: CLIENT_SECRET_AZURE,redirect_uri: `${SITE_URL}/integrations/azure-key-vault/oauth2/callback`diff --git a/backend/src/integrations/sync.ts b/backend/src/integrations/sync.tsindex 8e44d591df..5cacc3cd1d 100644--- a/backend/src/integrations/sync.ts+++ b/backend/src/integrations/sync.ts@@ -355,7 +355,7 @@ const syncSecretsVercel = async ({...obj,[secret.key]: secret}), {});-+const updateSecrets: VercelSecret[] = [];const deleteSecrets: VercelSecret[] = [];const newSecrets: VercelSecret[] = [];diff --git a/frontend/src/pages/integrations/flyio/authorize.tsx b/frontend/src/pages/integrations/flyio/authorize.tsxindex 5b00e562a7..2822bd49cc 100644--- a/frontend/src/pages/integrations/flyio/authorize.tsx+++ b/frontend/src/pages/integrations/flyio/authorize.tsx@@ -46,7 +46,7 @@ export default function FlyioCreateIntegrationPage() {return (<div className="h-full w-full flex justify-center items-center"><Card className="max-w-md p-8 rounded-md">- <CardTitle className='text-center'>Render Integration</CardTitle>+ <CardTitle className='text-center'>Fly.io Integration</CardTitle><FormControllabel="Fly.io Access Token"errorText={accessTokenErrorText}