- Set up and add secrets to Infisical Cloud.
- Create a Spacelift Connection.
- Infisical UI
- API
1
Add Sync
Navigate to Project > Integrations, select the Secret Syncs tab, and click Add Sync.

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

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.

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.
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.- Environment Variables
- .env File
- One Secret Per File
Each secret is synced as an individual environment variable in the Spacelift context (default).

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.
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.
7
Review configuration
Review the Spacelift Sync configuration, then click Create Sync.

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


