Learn how to configure a GitLab Sync for Infisical.
Prerequisites:
Navigate to Project > Integrations and select the Secret Syncs tab. Click on the Add Sync button.
Select the GitLab option.
Configure the Source from where secrets should be retrieved, then click Next.
If you need to sync secrets from multiple folder locations, check out secret imports.
Configure the Destination to where secrets should be deployed, then click Next.
The remaining fields are determined by the selected Scope:
Project
Group
Be aware that GitLab only allows to mark secrets as hidden for new secrets. If you try to mark an existing secret as hidden, it produces an error.
If you enable Mark secrets as Hidden, Infisical will not be able to unhide/unmask secrets from the sync destination if you disable the option later. This is because GitLab does not allow to unhide/unmask existing secrets.
Configure the Sync Options to specify how secrets should be synced, then click Next.
GitLab does not support importing secrets.
{{secretKey}}
as a placeholder for the original secret name and {{environment}}
for the environment.We highly recommend using a Key Schema to ensure that Infisical only manages the specific keys you intend, keeping everything else untouched.
Configure the Details of your GitLab Sync, then click Next.
Review your GitLab Sync configuration, then click Create Sync.
If enabled, your GitLab Sync will begin syncing your secrets to the destination endpoint.