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
add templates
Adrian Kahalie74e231d6afc
diff --git a/.agents/skills/docs-style/SKILL.md b/.agents/skills/docs-style/SKILL.mdindex 3db2ef760b..485c34ace1 100644--- a/.agents/skills/docs-style/SKILL.md+++ b/.agents/skills/docs-style/SKILL.md@@ -13,6 +13,12 @@ Don't work from a summary, a diff, or your memory of the guide. Each rule in thewith an "Instead of" and "Write" example, and the examples show what the rule means betterthan any summary can.+## Templates++To check if the page you're documenting has a template to follow, start from the matching file in+[templates/](templates/README.md). The README says which template fits and how the snippets+shared between integration pages work.+## Before you writeAsk the engineer for the facts before you draft anything. Only the engineer knows how thediff --git a/.agents/skills/docs-style/templates/README.md b/.agents/skills/docs-style/templates/README.mdnew file mode 100644index 0000000000..e08dec0252--- /dev/null+++ b/.agents/skills/docs-style/templates/README.md@@ -0,0 +1,78 @@+# Docs page templates++Each template gives the section order, components, and fixed wording for one type of page.++| Template | Use for | Lives at |+| --- | --- | --- |+| [app-connection.mdx](app-connection.mdx) | An app connection guide | `docs/integrations/app-connections/{product}.mdx` |+| [secret-sync.mdx](secret-sync.mdx) | A secret sync guide | `docs/integrations/secret-syncs/{product}.mdx` |+| [secret-rotation.mdx](secret-rotation.mdx) | A secret rotation guide | `docs/documentation/platform/secret-rotation/{rotation}.mdx` |+| [quickstart.mdx](quickstart.mdx) | A quickstart or task guide that ends in a working result | Varies |+| [landing-page.mdx](landing-page.mdx) | The overview page at the top of a docs section | `{section}/overview.mdx` |+| [concept-page.mdx](concept-page.mdx) | A page about one concept and the tasks that involve it | Varies |++## How to read a template++Every template uses the same four kinds of markup:++| Markup | Meaning | What to do |+| --- | --- | --- |+| Plain text | Fixed wording | Keep the wording if the wording is true for this product. Check every claim in it against the product first |+| `{Description}` | A placeholder | Replace the whole placeholder with your own text. The placeholder describes what goes there; it never contains text to copy |+| `{/* IF: condition */}` ... `{/* END IF */}` | A conditional block | Keep the block, without the two markers, only if the condition is true. Otherwise delete the block |+| `{/* NOTE: ... */}` | Guidance for the writer | Follow the guidance, then delete the comment |++Braces inside a code span, such as `` `{{secretKey}}` ``, are literal text the product uses, not+placeholders.++Before you publish, delete every `{/* ... */}` comment and search the page for `{` to find any+placeholder you missed.++## How closely to follow a template++A template is the default structure for a page type, not a form to fill in:++- **Leave out what the product doesn't have.** If a sync has no destination fields, or a+ quickstart has no second sub-task, delete that part rather than writing filler for it+- **Add what the product needs.** If the product needs a step or a section the template doesn't+ have, add it where a reader would look for it (STYLE_GUIDE.md section 7)+- **Check the fixed wording.** Fixed wording is true for most products of the type, not all of+ them. Button labels, field names, and behavior claims such as "The name must be+ slug-friendly" come from one version of the product, so check each one against the frontend+ or backend before keeping it+- **Write your own sentences.** The templates contain no example sentences on purpose. For what+ a finished page looks like, read the example pages named at the top of each template, but+ don't copy their sentences, which are about a different product++## Shared snippets for an integration++An app connection page, a sync page, and a rotation page for the same product render the same+setup steps and form fields, so those live in snippets under+`docs/snippets/app-connections/{product}/`:++- `form-fields.mdx`: a bullet list of the connection form's fields, starting with **Name** and+ **Description** (optional)+- `{setup}.mdx`, named after the setup task in the third-party product: a `<Steps>` block for+ that setup, with screenshots+- `{setup}-for-rotation.mdx`: only when a rotation needs more setup than the connection does;+ import the base snippet and add the extra steps rather than copying the base steps++A link in `form-fields.mdx` to a step in the setup snippet resolves on whichever page renders+both snippets. Link to the `## Step 1:` heading that every page puts the setup snippet under,+and give that heading the same text on the connection, sync, and rotation pages. Linking to a+step title doesn't work, because steps don't have a `title` prop.++Links from a sync or rotation page to the organization-level connection steps use+`/integrations/app-connections/{product}#step-2-create-the-app-connection`.++## Where the example pages differ from the templates++The example pages each template names predate some of the style guide's rules. When you read+an example page, don't copy these:++- Titled steps (`<Step title="..." titleSize="h3">`); the guide says to leave out `title`+- Periods at the end of bullets+- Em dashes, such as "This guide doesn't configure any behavior—it just authenticates"+- Button labels in the 1Password and Databricks sync and rotation pages, which come from older+ versions of the wizards (**Next** instead of **Continue**, **Disable Secret Deletion**+ instead of **Prevent secret deletion**)diff --git a/.agents/skills/docs-style/templates/app-connection.mdx b/.agents/skills/docs-style/templates/app-connection.mdxnew file mode 100644index 0000000000..1a739a9f08--- /dev/null+++ b/.agents/skills/docs-style/templates/app-connection.mdx@@ -0,0 +1,115 @@+---+title: "{Product} connection"+sidebarTitle: "{Product}"+description: "Learn how to configure a {Product} connection for Infisical."+---++{/*+NOTE: Template for docs/integrations/app-connections/{product-slug}.mdx. Read templates/README.md+first for what each kind of markup means.++Example pages: integrations/app-connections/1password.mdx, integrations/app-connections/databricks.mdx.+The setup steps and the form fields go in snippets under docs/snippets/app-connections/{product-slug}/,+because the sync and rotation pages for the same product render the same two snippets.+*/}++import {SetupSnippetName} from "/snippets/app-connections/{product-slug}/{setup-snippet-file}.mdx";+import ConnectionFormFields from "/snippets/app-connections/{product-slug}/form-fields.mdx";++A {Product} connection authenticates Infisical to {Product} with {the credential type, linked to {Product}'s documentation for it}, so Infisical can {what the integrations that use this connection do}.++{/* IF: the credential determines something the reader must know before starting, such as which account Infisical writes to */}+{One sentence stating what the credential determines}+{/* END IF */}++<Note>+ This guide only authenticates Infisical with {Product}. Once the app connection is ready, you can [use it to set up integrations](#step-3-configure-integrations).+</Note>++## Prerequisites++- {The {Product} account or access the reader needs, asking for the least access that works, linked to where the reader gets it}++## Step 1: {The setup task in {Product}, as an imperative}++{One sentence stating what Infisical needs from {Product}}++<{SetupSnippetName} />++## Step 2: Create the app connection++Next, create the app connection in Infisical.++<Tip>+ To create the connection using the API, use the [Create {Product} Connection](/api-reference/endpoints/app-connections/{product-slug}/create) endpoint.+</Tip>++<View title="Organization-level">+ <Steps>+ <Step>+ In the sidebar, select **Organization Settings**, then open the **App Connections** tab.++ + </Step>+ <Step>+ Select **+ Add Connection** and choose **{Product} Connection**.++ + </Step>+ <Step>+ {/* IF: the connection form has more than one method */}+ Select the **{Method name}** method, then fill out the form's fields:+ {/* END IF */}+ {/* IF: the connection form has one method */}+ Fill out the form's fields:+ {/* END IF */}++ <ConnectionFormFields />++ Then, select **Connect to {Product}**.++ + </Step>+ </Steps>+</View>++<View title="Project-level">+ <Steps>+ <Step>+ In your Secrets Manager project, select **Integrations** from the sidebar, then open the **App Connections** tab.+ </Step>+ <Step>+ Select **Add Connection** and choose **{Product} Connection**.++ + </Step>+ <Step>+ {/* NOTE: Use the same first sentence as the organization-level step. */}+ {The same first sentence as the organization-level step}++ <ConnectionFormFields />++ Then, select **Connect to {Product}**.++ + </Step>+ </Steps>+</View>++{/* IF: the connection's validate function in backend/src/services/app-connection/{product-slug}/ checks something the reader should know about, such as a permission on the credential */}+{One sentence stating what Infisical checks when the reader submits the form}+{/* END IF */}++<Check>+ Your {Product} app connection is ready to use.+</Check>++## Step 3: Configure integrations++Now that your {Product} app connection is configured, you can use it to set up the following integrations:++{/* NOTE: One card per integration that uses this connection. Wrap two or more cards in <CardGroup cols={2}>. */}++<Card title="{Title of the integration page}" icon="{Lucide icon name}" href="{Path of the integration page}">+ {What the integration does, in one short sentence}+</Card>diff --git a/.agents/skills/docs-style/templates/concept-page.mdx b/.agents/skills/docs-style/templates/concept-page.mdxnew file mode 100644index 0000000000..d2f77a55a8--- /dev/null+++ b/.agents/skills/docs-style/templates/concept-page.mdx@@ -0,0 +1,56 @@+---+title: "{The concept's name, as it appears in the product}"+description: "{One sentence stating what the concept is, identical to the description on the concept's card on the section's landing page}"+---++{/*+NOTE: Template for a page about one concept in a product and the tasks that involve the+concept. Read templates/README.md first for what each kind of markup means.+Example pages: documentation/platform/agent-vault/services.mdx, sessions.mdx, access-bundles.mdx.++NOTE: The page states what the concept is, shows the concept, covers the tasks readers do with+the concept, then describes behavior readers need to know about. Keep the task sections next+to each other, before the behavior sections.+*/}++{One clause stating what the concept is, then one sentence stating how the concept relates to the other concepts in the product, with each concept linked}++{/* IF: a screenshot shows the concept more clearly than words */}+{One sentence describing a realistic use of the concept that the screenshot shows}++<Frame>+ <img src="/images/{image-path}.png" alt="{What the screenshot shows}" />+</Frame>+{/* END IF */}++## {The first task, as an imperative}++To {the task}:++<Steps>+ <Step>+ {The first action, starting with the verb}+ </Step>+ <Step>+ {The next action, starting with the verb}+ </Step>+</Steps>++{/* NOTE: Repeat the heading and steps for each other task readers do with the concept. */}++{/* IF: the concept has behavior readers need to know that the tasks don't show */}+## {The behavior, named in words a newcomer recognizes}++{Which system does what, and when}+{/* END IF */}++## Next steps++<CardGroup cols={2}>+ <Card title="{The linked page's sidebar label}" icon="{Lucide icon name}" href="{Path of the linked page}">+ {What the reader can do on the linked page}+ </Card>+ <Card title="{The linked page's sidebar label}" icon="{Lucide icon name}" href="{Path of the linked page}">+ {What the reader can do on the linked page}+ </Card>+</CardGroup>diff --git a/.agents/skills/docs-style/templates/landing-page.mdx b/.agents/skills/docs-style/templates/landing-page.mdxnew file mode 100644index 0000000000..0788c95325--- /dev/null+++ b/.agents/skills/docs-style/templates/landing-page.mdx@@ -0,0 +1,53 @@+---+title: "{The section's name, in sentence case}"+sidebarTitle: "{A shorter name for the sidebar, if the title is too long}"+description: "{One sentence, starting with a verb, that states what readers can do with the section's content}"+icon: "{Lucide icon name}"+---++{/*+NOTE: Template for the overview page at the top of a docs section. Read templates/README.md+first for what each kind of markup means. The rules for landing pages are in+STYLE_GUIDE.md section 10.+Example pages:+- self-hosting/overview.mdx, a card per page, because readers choose one deployment platform+- documentation/platform/secrets-mgmt/overview.mdx, one `##` heading per sidebar group+- documentation/platform/agent-vault/overview.mdx++NOTE: Organize the page the same way as the section's sidebar. For each sidebar group, use one+card for the group when the group's pages are steps or reference material for one topic, and+a card per page when the pages are alternatives the reader chooses between.++NOTE: Use cols={3} for five or more cards with short descriptions, and cols={2} for two to four+cards or for longer descriptions. If the section has only a few groups, use one <CardGroup>+and no `##` headings.+*/}++{One or two sentences stating a definition of the topic/what readers will find in the section/}++{/* IF: readers need reasons to choose this over an alternative */}+<Accordion title="Why {the choice this section covers}?">+ {The reasons, as a short list with a bold label on each}+</Accordion>+{/* END IF */}++## {The first sidebar group's name}++{One line introducing the group's cards, ending in a colon}++<CardGroup cols={2}>+ <Card title="{The linked page's sidebar label}" icon="{Lucide icon name}" href="{Path of the linked page}">+ {What the linked page covers, as a short phrase}+ </Card>+ <Card title="{The linked page's sidebar label}" icon="{Lucide icon name}" href="{Path of the linked page}">+ {What the linked page covers, as a short phrase}+ </Card>+</CardGroup>++{/* NOTE: Repeat the heading, lead-in, and card group for each remaining sidebar group. */}++{/* IF: the section needs more explanation than the opening sentences give */}+## {A heading that names the topic of the explanation}++{The explanation, after all the cards, so readers looking for a link don't have to scroll past it}+{/* END IF */}diff --git a/.agents/skills/docs-style/templates/quickstart.mdx b/.agents/skills/docs-style/templates/quickstart.mdxnew file mode 100644index 0000000000..c510859c20--- /dev/null+++ b/.agents/skills/docs-style/templates/quickstart.mdx@@ -0,0 +1,112 @@+---+title: "{The task the guide completes, in sentence case, starting with a verb}"+sidebarTitle: "{A short noun phrase for the sidebar}"+description: "{One sentence, starting with a verb, that states the result the reader ends up with}"+---++{/*+NOTE: Template for a quickstart or task guide that takes a first-time reader from nothing to a+working result. Read templates/README.md first for what each kind of markup means.+Example pages:+- documentation/platform/agent-vault/quickstart.mdx, a UI flow (the body is in snippets/agent-vault/QuickstartBody.mdx)+- documentation/guides/local-development.mdx, a CLI flow+- integrations/cicd/githubactions.mdx, one set of steps per auth method++NOTE: Choose the shape of each stage from the kind of work in the stage:+- Actions in the UI: a <Steps> block with no title prop+- Commands: a sentence and a code block per sub-task, with no <Steps>+- More than one way to do the whole setup, such as one per auth method: top-level <Tabs>,+ with the `### Step N:` headings inside each tab and a <Check> at the end of each tab++NOTE: Reuse these snippets for shared stages instead of rewriting them:+- snippets/documentation/platform/secrets-mgmt/configure-project.mdx: create a project and add secrets+- snippets/cli/install-cli.mdx: install the CLI+- snippets/cli/local-development/log-in.mdx, link-project.mdx, start-application.mdx+*/}++This guide shows you how to {the task}. You'll {each thing the reader creates, in order, with the first mention of each concept linked}.++## Prerequisites++{/* NOTE: Noun phrases with no trailing period. Link each one. Ask for the least access that works. If a first-time reader won't have something yet, create it in the steps instead of listing it here. */}++- An Infisical account on [Infisical Cloud](https://app.infisical.com) or a [self-hosted instance](/self-hosting/overview)+- {Each other requirement, linked to where the reader gets it}++## Step 1: {The first stage, as an imperative}++### {The first sub-task, as an imperative}++First, {create the first thing, with the concept linked}, which {what the thing does}.++<Steps>+ <Step>+ {The first action, starting with the verb}+ </Step>+ <Step>+ {The next action, starting with the verb}+ </Step>+</Steps>++{/* IF: the stage has more sub-tasks */}+### {The next sub-task, as an imperative}++Next, {create the next thing}, which {what the thing does}.++<Steps>+ <Step>+ {The first action, starting with the verb}+ </Step>+</Steps>+{/* END IF */}++{/* IF: a later step needs a value from this stage */}+Copy the {value}. You need the {value} in [Step 2](#step-2-{step-2-heading-slug}).+{/* END IF */}++## Step 2: {The next stage, as an imperative}++{A sentence stating what the command does}++```bash+{The command}+```++## Step 3: Verify it works++{How the reader confirms the result, with the command to run or the screen to check}++```bash+{The command}+```++<Check>+ {What the reader now has working, in one or two sentences}+</Check>++{/* IF: readers commonly do more tasks after the main path */}+## {A task readers do after the main path, as an imperative}++{The task}+{/* END IF */}++{/* IF: readers commonly hit problems on the way */}+## Troubleshooting++<AccordionGroup>+ <Accordion title="{The problem, described the way the reader would notice it}">+ {The cause of the problem, and how to fix it}+ </Accordion>+</AccordionGroup>+{/* END IF */}++## Next steps++<CardGroup cols={2}>+ <Card title="{The linked page's sidebar label}" icon="{Lucide icon name}" href="{Path of the linked page}">+ {What the reader can do on the linked page}+ </Card>+ <Card title="{The linked page's sidebar label}" icon="{Lucide icon name}" href="{Path of the linked page}">+ {What the reader can do on the linked page}+ </Card>+</CardGroup>diff --git a/.agents/skills/docs-style/templates/secret-rotation.mdx b/.agents/skills/docs-style/templates/secret-rotation.mdxnew file mode 100644index 0000000000..2551bdb5bf--- /dev/null+++ b/.agents/skills/docs-style/templates/secret-rotation.mdx@@ -0,0 +1,140 @@+---+title: "{Product} {credential name}"+description: "Learn how to automatically rotate {Product} {credential name, plural}."+---++{/*+NOTE: Template for docs/documentation/platform/secret-rotation/{rotation-slug}.mdx. Read+templates/README.md first for what each kind of markup means.++Example page: documentation/platform/secret-rotation/databricks-service-principal-secret.mdx.+That page uses labels from an older rotation wizard. The labels in this template come from+frontend/src/components/secret-rotations-v2/forms/; check them there again before publishing.++The rotation page creates a project-scoped app connection inline, like the sync page. If the+rotation needs more setup in {Product} than the connection does, put the setup in+{setup-snippet-file}-for-rotation.mdx, which imports the base snippet and adds the extra steps.+*/}++import {SetupSnippetName} from "/snippets/app-connections/{product-slug}/{setup-snippet-file}.mdx";+import ConnectionFormFields from "/snippets/app-connections/{product-slug}/form-fields.mdx";++Rotate {the credential} of {the {Product} resource that owns the credential} on a schedule.++{/* IF: the rotation is dual-phase in the backend */}+<Info>+ **Rotation Type: Dual-Phase**++ This rotation maintains two active credential sets with overlapping validity, ensuring zero-downtime during rotation cycles.+</Info>+{/* END IF */}+{/* IF: the rotation is not dual-phase */}+<Info>+ **Rotation Type: {The rotation type}**++ {What the rotation type means for downtime during a rotation}+</Info>+{/* END IF */}++<Note>+ This rotation needs a [{Product} app connection](/integrations/app-connections/{product-slug}). This guide walks you through creating a project-scoped app connection.+</Note>++## Prerequisites++- A [project with secrets configured](/documentation/platform/secrets-mgmt/quick-starts/deliver-first-secret)+- {The {Product} access needed to do the setup in Step 1, asking for the least access that works}++{/* IF: Infisical connects to {Product} over a network the reader controls */}+- Network access from Infisical to {Product}, if network restrictions apply+{/* END IF */}++## Step 1: {The same heading text as Step 1 on the app connection page}++{One sentence stating what Infisical needs in {Product}, including the permission that lets Infisical rotate the credential}++<{SetupSnippetName} />++## Step 2: Set up the rotation in Infisical++<Tip>+ To create the rotation using the API, use the [Create {Rotation name} Rotation](/api-reference/endpoints/secret-rotations/{rotation-slug}/create) endpoint.+</Tip>++<Steps>+ <Step>+ In your Secrets Manager project, open the dashboard and select **Add Secret Rotation** from the actions dropdown.++ ++ Then, select the **{Rotation option label}** option.+ </Step>+ <Step>+ Under **Configuration**, choose the app connection and when the rotation runs:++ {/* IF: the form shows an Environment field */}+ - **Environment**: The project environment the rotated secrets are stored in+ {/* END IF */}+ - **{Product} Connection**: The app connection the rotation uses+ - **Rotation Interval (In Days)**: The number of days between rotations+ - **Rotate At (Local Time)**: The time of day the rotation runs+ - **Auto-Rotation Enabled**: When enabled, the credential rotates on the schedule; turn it off to rotate manually only++ <Tabs>+ <Tab title="Create a new app connection">+ Under **{Product} Connection**, select **Create Connection** in the dropdown, then fill in:++ <ConnectionFormFields />++ Select **Connect to {Product}**. Infisical returns you to the rotation form with the new connection selected.++ <Note>+ This creates a connection scoped to the current project. To share the connection across other projects, [create it at the organization level](/integrations/app-connections/{product-slug}#step-2-create-the-app-connection) first, then select it here.+ </Note>+ </Tab>+ <Tab title="Use an existing connection">+ Under **{Product} Connection**, select the app connection you'd like to use.+ </Tab>+ </Tabs>++ ++ Then select **Continue**.+ </Step>+ <Step>+ Under **Parameters**, choose {the {Product} resource whose credential Infisical rotates}:++ {/* NOTE: One bullet per field in SecretRotationV2ParametersFields/ for this rotation. */}+ - **{Field label}**: {What the field selects in {Product}}++ ++ Then select **Continue**.+ </Step>+ <Step>+ Under **Mappings**, choose the names of the Infisical secrets that hold the rotated values:++ {/* NOTE: One bullet per field in SecretRotationV2SecretsMappingFields/ for this rotation. */}+ - **{Field label}**: The name of the secret that holds {the rotated value}++ ++ Then select **Continue**.+ </Step>+ <Step>+ Give the rotation a **Name** and an optional **Description**. The name must be slug-friendly.++ ++ Then select **Continue**.+ </Step>+ <Step>+ Review your {Rotation name} Rotation configuration, then select **Create secret rotation**.++ ++ <Check>+ The rotated credentials are now available through the mapped secrets. If auto-rotation is enabled, they rotate on your configured schedule.+ </Check>+ </Step>+</Steps>diff --git a/.agents/skills/docs-style/templates/secret-sync.mdx b/.agents/skills/docs-style/templates/secret-sync.mdxnew file mode 100644index 0000000000..933f555b42--- /dev/null+++ b/.agents/skills/docs-style/templates/secret-sync.mdx@@ -0,0 +1,196 @@+---+title: "{Product} sync"+sidebarTitle: "{Product}"+description: "Learn how to configure a {Product} sync for Infisical."+---++{/*+NOTE: Template for docs/integrations/secret-syncs/{product-slug}.mdx. Read templates/README.md+first for what each kind of markup means.++Example pages: integrations/secret-syncs/1password.mdx, integrations/secret-syncs/databricks.mdx.+Those pages use labels from an older sync wizard. The labels in this template come from+frontend/src/components/secret-syncs/forms/; check them there again before publishing.++Check every claim about the destination against backend/src/services/secret-sync/{product-slug}/:+whether import is supported (canImportSecrets), which secret names the destination accepts,+and which secrets the sync writes and deletes.++The page creates a project-scoped app connection inline, so don't list the app connection as a+prerequisite.+*/}++import {SetupSnippetName} from "/snippets/app-connections/{product-slug}/{setup-snippet-file}.mdx";+import ConnectionFormFields from "/snippets/app-connections/{product-slug}/form-fields.mdx";++A {Product} Secret Sync pushes secrets from Infisical into {the {Product} destination}, where {what reads the secrets in {Product}}. Each Infisical secret becomes {what a secret becomes in {Product}}, with the same name unless you customize key names to add a prefix or suffix.++<Note>+ The {Product} Secret Sync requires a [{Product} app connection](/integrations/app-connections/{product-slug}). This guide walks you through creating a project-scoped app connection.+</Note>++## Prerequisites++- A [project with secrets configured](/documentation/platform/secrets-mgmt/quick-starts/deliver-first-secret)+- {The same {Product} access that the app connection page's prerequisites ask for}++{/* IF: the reader must create a resource in {Product} before the sync can use it */}+- {The resource, linked to {Product}'s documentation for creating it}+{/* END IF */}++{/* NOTE: Use the same Step 1 heading as the app connection page, so the links in form-fields.mdx resolve on both pages. */}++## Step 1: {The same heading text as Step 1 on the app connection page}++{One sentence stating what Infisical needs from {Product}}++<{SetupSnippetName} />++## Step 2: Set up the sync in Infisical++<Tip>+ To create the sync using the API, use the [Create {Product} Sync](/api-reference/endpoints/secret-syncs/{product-slug}/create) endpoint.+</Tip>++<Steps>+ <Step>+ In your project, go to **Integrations** and open the **Secret Syncs** tab. Select **+ Add Sync**.++ ++ Then, select the **{Product}** sync.++ + </Step>+ <Step>+ Under **Source**, choose which secrets to sync from Infisical:++ - **Environment**: The project environment to retrieve secrets from+ - **Secret Path**: The folder path to retrieve secrets from++ {/* IF: the destination rejects some secret names */}+ <Note>+ {Which names {Product} accepts, and what happens to a sync that includes a name {Product} rejects}+ </Note>+ {/* END IF */}++ <Tip>+ If you need to sync secrets from multiple folder locations, use [secret imports](/documentation/platform/secret-reference#secret-imports).+ </Tip>++ Then select **Continue**.+ </Step>+ <Step>+ {/* IF: the destination has fields to fill in besides the connection */}+ Under **Destination**, create or select the {Product} app connection the sync will use, then choose where secrets go in {Product}.+ {/* END IF */}+ {/* IF: the connection alone decides where secrets go */}+ Under **Destination**, create or select the {Product} app connection the sync will use. {One sentence stating how the connection decides where secrets go}, so there's nothing else to configure on this screen.+ {/* END IF */}++ <Tabs>+ <Tab title="Create a new app connection">+ Under **{Product} Connection**, select **Create Connection** in the dropdown, then fill in:++ <ConnectionFormFields />++ Select **Connect to {Product}**. Infisical returns you to the sync form with the new connection selected.++ <Note>+ This creates a connection scoped to the current project. To share the connection across other projects, [create it at the organization level](/integrations/app-connections/{product-slug}#step-2-create-the-app-connection) first, then select it here.+ </Note>+ </Tab>+ <Tab title="Use an existing connection">+ Under **{Product} Connection**, select the app connection you'd like to use.+ </Tab>+ </Tabs>++ {/* IF: the destination has fields to fill in besides the connection */}+ - **{Field label from {Product}SyncFields.tsx}**: {What the field selects in {Product}}+ {/* END IF */}++ ++ Then select **Continue**.+ </Step>+ <Step>+ {/* IF: canImportSecrets is true for this destination */}+ Under **Initial Sync Behavior**, choose how Infisical handles secrets that already exist in {Product} on the first sync:++ - **Overwrite {Product}**: {What happens to {Product} secrets that aren't in Infisical}+ - **Import from {Product}, prioritize Infisical**: {What happens when a key exists in both places}+ - **Import from {Product}, prioritize {Product}**: {What happens when a key exists in both places}++ Then select **Continue**.+ {/* END IF */}+ {/* IF: canImportSecrets is false for this destination */}+ Under **Initial Sync Behavior**, select **Overwrite {Product}**, then select **Continue**.++ <Note>+ {Why Infisical can't import secrets from {Product}}, so this sync can't import existing {Product} secrets into Infisical. **Overwrite {Product}** is the only option.+ </Note>+ {/* END IF */}++ + </Step>+ <Step>+ Under **Sync Options**, choose how secrets are synced:++ - **Prevent secret deletion**: When enabled, Infisical adds and updates secrets in {Product} but never deletes them; enable this if you manage some {Product} secrets outside of Infisical+ - **Auto-sync on changes**: When enabled, secrets sync to {Product} automatically as the source changes; turn it off to sync manually only+ - **Customize key names**: Adds a prefix or suffix to every synced name, using `{{secretKey}}` for the original name and `{{environment}}` for the environment slug++ {/* IF: the destination has its own sync options in SecretSyncOptionsFields/ */}+ - **{Option label}**: {What the option does}+ {/* END IF */}++ {/* IF: the sync can write to or delete secrets in {Product} that Infisical didn't create. Check the sync's delete logic before keeping this block. */}+ <Warning>+ {What the secrets in {Product} belong to}, so a sync can change secrets that were created outside Infisical. If you don't customize key names, the sync treats every secret in {the destination} as one it manages:++ - A {Product} secret with the same name as an Infisical secret has its value overwritten+ - If **Prevent secret deletion** is off, every {Product} secret that isn't in Infisical is deleted++ With customized key names, the sync writes only names with your prefix or suffix, and deletes only {Product} secrets whose names match it.++ Before the first sync, customize key names or keep **Prevent secret deletion** on. **Prevent secret deletion** is on by default when you create the sync in the UI, but off unless you set `disableSecretDeletion` when you create it through the API.+ </Warning>+ {/* END IF */}++ ++ Then select **Continue**.+ </Step>+ <Step>+ Give the sync a **Name** and an optional **Description**. The name must be slug-friendly.++ ++ Then select **Continue**.+ </Step>+ <Step>+ Review your {Product} Sync configuration, then select **Create Sync**.++ ++ <Check>+ The sync is created. If **Auto-sync on changes** is enabled, it begins syncing secrets to {the destination} right away.+ </Check>+ </Step>+</Steps>++{/* IF: the reader has to do something in {Product} after the first sync */}+## Step 3: {The task in {Product}, as an imperative}++{Why the reader does the task, then <Steps> for the task}+{/* END IF */}++{/* IF: the destination behaves in a way that doesn't fit into the steps */}+## FAQ++<AccordionGroup>+ <Accordion title="{The question, as the reader would ask it}">+ {The answer}+ </Accordion>+</AccordionGroup>+{/* END IF */}