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
docs(vercel-sync): add clarification on team-scoped sync behavior for environment variables
Victor Hugo dos Santosa494a13a9854
diff --git a/docs/integrations/secret-syncs/vercel.mdx b/docs/integrations/secret-syncs/vercel.mdxindex 83f6c0c612..31d9a477de 100644--- a/docs/integrations/secret-syncs/vercel.mdx+++ b/docs/integrations/secret-syncs/vercel.mdx@@ -54,6 +54,13 @@ The short video below walks through configuring a Vercel Sync end-to-end.<Note>Vercel does not expose the values of [sensitive environment variables](https://vercel.com/docs/environment-variables/sensitive-environment-variables), so Infisical cannot import them during the initial sync. As a result, these secrets are created in Infisical with empty values. After the first sync, you'll need to manually re-enter their values in Infisical to ensure both platforms stay aligned.</Note>+ <Note>+ **Team-scoped sync — initial import scope matching**++ On the initial import, Infisical only imports Vercel shared environment variables whose scope exactly matches this sync's configuration (same target environments, target projects, and Apply to all Custom Environments flag). Variables covering a broader set of environments — or split across separate records per environment — will not be imported. The next sync will detach those records and create a new one for the sync's scope using the value from Infisical.++ Example: Vercel has a single shared variable `FOO` scoped to **Production and Preview**, but the sync targets only **Production**. `FOO` is not imported. On the next sync, the existing `FOO` is rescoped to Preview (value preserved) and a new `FOO` record is created for Production with the value from Infisical.+ </Note>- **Key Schema**: Template that determines how secret names are transformed when syncing, using `{{secretKey}}` as a placeholder for the original secret name and `{{environment}}` for the environment.<Note>We highly recommend using a Key Schema to ensure that Infisical only manages the specific keys you intend, keeping everything else untouched.diff --git a/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/SecretSyncOptionsFields.tsx b/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/SecretSyncOptionsFields.tsxindex 8f7ac7dc41..7e49b649f1 100644--- a/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/SecretSyncOptionsFields.tsx+++ b/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/SecretSyncOptionsFields.tsx@@ -187,6 +187,19 @@ export const SecretSyncOptionsFields = ({ hideInitialSync }: Props) => {only Overwrite Destination Secrets is supported.</p>)}+ {destination === SecretSync.Vercel &&+ !vercelSensitive &&+ currentSyncOption.initialSyncBehavior !==+ SecretSyncInitialSyncBehavior.OverwriteDestination && (+ <p className="-mt-2.5 mb-2.5 text-xs text-yellow">+ <FontAwesomeIcon className="mr-1" size="xs" icon={faTriangleExclamation} />+ For team-scoped syncs, only Vercel shared environment variables whose scope exactly+ matches this sync's configuration (target environments, target projects, and+ Apply to all Custom Environments) will be imported. Variables covering a broader+ scope, or split across separate records per environment, will not be imported on the+ initial sync.+ </p>+ )}{!vercelSensitive && !syncOption?.canImportSecrets && (<p className="-mt-2.5 mb-2.5 text-xs text-yellow"><FontAwesomeIcon className="mr-1" size="xs" icon={faTriangleExclamation} />