Other Integrations & Connections

How to connect GitLab On-Prem as an Integration

  • Updated

Gitlab allows customers to connect Vanta using OAuth2. For Gitlab Cloud, we have a pre-configured set of OAuth credentials for our application. This is read-only integration using the read_api scope. We support any version Gitlab officially supports. Currently, that is 13.0 and higher. 

 

Procedure

Navigate to the integrations page, search "Gitlab", click "Connect"

Screenshot_2023-05-09_at_11.56.36_AM.png

Under "How would you like to connect Gitlab", choose "Self-Managed" and click "Next"

Screenshot_2023-05-09_at_11.57.26_AM.png

 

Our GitLab On-Prem requires our customer to provide an IP CIDR allowlist to Vanta's IP address. In prod, this is 34.227.127.165/32.

As part of the linking flow, we require you to give us the URL to your Gitlab instance. This URL is the root URL at which your instance is hosted.

Begin by entering your Base URL: 

Screenshot_2023-05-09_at_11.47.29_AM.png

 

Next, you must also create an OAuth application for Vanta within your Gitlab instance. To do so, you'll need to use the Redirect URL

 

Screenshot_2023-05-09_at_11.49.40_AM.png

 

Navigate to your Gitlab Applications tab, enter the Name of the new application and the Redirect URL, ensure you select "read_api", and then "Save Application"

 

Screenshot_2023-05-09_at_11.52.11_AM.png

 

Once created, select the new application from your application list

 

Screenshot_2023-05-09_at_6.57.58_PM.png

 

Copy the Application ID and paste it into the Application ID field

 

Screenshot_2023-05-09_at_6.58.42_PM.png

 

 

Screenshot_2023-05-09_at_6.59.40_PM.png

Copy the Secret, paste it into the Secret field, and select "Done" (lower right corner)

 

Screenshot_2023-05-09_at_7.00.56_PM.png

 

Screenshot_2023-05-09_at_7.02.11_PM.png

Authorize "Application Chosen" to use your account

 

Screenshot_2023-05-09_at_7.04.31_PM.png

Select the Gitlab group you want Vanta to scan, then Link the GitLab account

Note: Vanta is only able to connect and fetch one group and the subgroups beneath that for GitLab:

Screenshot 2023-07-26 at 9.57.11 am.png

 

Congratulations! GitLab is now connected

 

Screenshot 2023-07-26 at 9.57.38 am.png

 

Once completed, the integration will function identically to a Cloud instance, running the same fetches, tests, etc.

Was this article helpful?

Have more questions? Submit a request