GitLab
How to sync secrets from Infisical to GitLab
Prerequisites:
- Set up and add envars to Infisical Cloud
Prerequisites:
- Set up and add envars to Infisical Cloud
Using the GitLab integration on a self-hosted instance of Infisical requires configuring an application in GitLab and registering your instance with it.
Create an OAuth application in GitLab
Navigate to your user Settings > Applications to create a new GitLab application.
Create the application. As part of the form, set the Redirect URI to https://your-domain.com/integrations/gitlab/oauth2/callback
.
If you have a GitLab group, you can create an OAuth application under it in your group Settings > Applications.
Add your OAuth application credentials to Infisical
Obtain the Application ID and Secret for your GitLab application.
Back in your Infisical instance, add two new environment variables for the credentials of your GitLab application:
CLIENT_ID_GITLAB
: The Client ID of your GitLab application.CLIENT_SECRET_GITLAB
: The Secret of your GitLab application.
Once added, restart your Infisical instance and use the GitLab integration.
Was this page helpful?