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 secret sync pagination
Daniel Hougaardcc0521a6864f
diff --git a/backend/src/lib/config/request.ts b/backend/src/lib/config/request.tsindex a78856ccf2..b8bd4b282b 100644--- a/backend/src/lib/config/request.ts+++ b/backend/src/lib/config/request.ts@@ -14,7 +14,10 @@ export function axiosResponseInterceptor(response: AxiosResponse, customLogger:megabyteSize = `Large payload: ${(responseSize / 1024 / 1024).toFixed(2)} MB`;}- customLogger.info({ url: response.config.url, responseSize }, `Intercepted axios response ${megabyteSize}`);+ customLogger.info(+ { url: `${response.config.method || "NO_METHOD"} ${response.config.url}`, responseSize },+ `Intercepted axios response ${megabyteSize}`+ );} catch (error) {customLogger.error(error, "Error intercepting axios response");}diff --git a/backend/src/services/secret-sync/vercel/vercel-sync-fns.ts b/backend/src/services/secret-sync/vercel/vercel-sync-fns.tsindex 0e950fc33b..730270f74d 100644--- a/backend/src/services/secret-sync/vercel/vercel-sync-fns.ts+++ b/backend/src/services/secret-sync/vercel/vercel-sync-fns.ts@@ -358,8 +358,8 @@ const listTeamSharedEnvVarsWithRetries = async (allEnvVars.push(...listResponse.data);- if (listResponse.pagination?.next) {- params = { ...params, since: listResponse.pagination.next };+ if (listResponse.pagination?.next && listResponse.data.length > 0) {+ params = { ...params, until: listResponse.pagination.next };} else {hasMore = false;}