Skip to main content
Prerequisites:
1

Add Sync

Navigate to Project > Integrations, select the Secret Syncs tab, and click Add Sync.Add Sync
2

Select Spacelift

Select Spacelift from the list of available secret syncs.Select Spacelift
3

Configure source

Configure the Source from where secrets should be retrieved, then click Next.
  • Environment: The project environment from which to retrieve secrets.
  • Secret Path: The folder path from which to retrieve secrets.
If you need to sync secrets from multiple folder locations, use secret imports.
Configure Source
4

Configure destination

Configure the Destination where secrets should be deployed, then click Next.
  • Spacelift Connection: Select the app connection to use for authentication.
  • Context: Select the Spacelift context that will receive the synced secrets.
  • Config Type: Choose how secrets are stored in the Spacelift context.
Secret keys are sanitized to conform to UNIX environment variable naming rules: any characters outside a-zA-Z0-9_ are stripped, and keys that start with a digit are prefixed with an underscore. Keys that become empty after sanitization are skipped.
Each secret is synced as an individual environment variable in the Spacelift context (default).Environment Variables Destination
5

Configure sync options

Configure the Sync Options, then click Next.
  • Initial Sync Behavior: Only Overwrite Destination Secrets is supported. Infisical cannot read secrets back from Spacelift because variables marked as secret in the Spacelift API are write-only, so importing is not possible.
  • Key Schema: A template that transforms secret names when syncing. Use {{secretKey}} for the original secret name and {{environment}} for the environment.
  • Auto-Sync Enabled: Automatically sync secrets from the source location when changes occur. Disable this to sync manually only.
  • Disable Secret Deletion: Prevents Infisical from removing secrets at the destination. Enable this when you intend to manage destination secrets outside Infisical.
  • Mark as Secret: When enabled, synced variables are marked as secrets in Spacelift. Secret values are only available to Runs and Tasks and are not accessible in the web GUI or through the API. Configure Sync Options
6

Configure details

Configure the details of your Spacelift Sync, then click Next.
  • Name: A slug-friendly name for the sync.
  • Description: An optional description for the sync. Configure Details
7

Review configuration

Review the Spacelift Sync configuration, then click Create Sync.Review Configuration
8

Sync created

If enabled, the Spacelift Sync begins syncing your secrets to the selected context.Sync Created